NormalNonceStrategy

Deprecated

This nonce strategy is no longer used in any supported encryption mode. 'NonceStrategy' is no longer a strategy of choosing encryption mode at runtime and the API will be changing in the near future.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val nonceLength: Int = 0

The amount of bytes this nonce will take up.

Functions

Link copied to clipboard
open override fun append(nonce: ByteArrayView, cursor: MutableByteArrayCursor)

Writes the nonce to cursor in the correct relative position.

Link copied to clipboard
open override fun generate(header: () -> ByteArrayView): ByteArrayView

Generates a nonce, may use the provided information.

Link copied to clipboard
open override fun strip(packet: RTPPacket): ByteArrayView

Reads the nonce from this packet (also removes it if it resides in the payload), and returns a ByteArrayView of it.