IAeadCipher Interface

A cipher mode that includes authenticated encryption with a streaming mode and optional associated data.

Definition

Namespace: Org.BouncyCastle.Crypto.Modes
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public interface IAeadCipher

Remarks

Implementations of this interface may operate in a packet mode (where all input data is buffered and processed during the call to DoFinal, or in a streaming mode (where output data is incrementally produced with each call to ProcessByte or ProcessBytes. This is important to consider during decryption: in a streaming mode, unauthenticated plaintext data may be output prior to the call to DoFinal that results in an authentication failure. The higher level protocol utilising this cipher must ensure the plaintext data is handled appropriately until the end of data is reached and the entire ciphertext is authenticated.

Properties

AlgorithmNameThe name of the algorithm this cipher implements.

Methods

DoFinal(SpanByte) 
DoFinal(Byte, Int32) 
GetMac 
GetOutputSize 
GetUpdateOutputSize 
InitInitialise the cipher.
ProcessAadByteAdd a single byte to the associated data check.
ProcessAadBytes(ReadOnlySpanByte)Add a span of bytes to the associated data check.
ProcessAadBytes(Byte, Int32, Int32)Add a sequence of bytes to the associated data check.
ProcessByte(Byte, SpanByte) 
ProcessByte(Byte, Byte, Int32) 
ProcessBytes(ReadOnlySpanByte, SpanByte) 
ProcessBytes(Byte, Int32, Int32, Byte, Int32) 
Reset Reset the cipher to the same state as it was after the last init (if there was one).

See Also