IAeadCipher Interface
A cipher mode that includes authenticated encryption with a streaming mode and optional
associated data.
Namespace: Org.BouncyCastle.Crypto.ModesAssembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public interface IAeadCipher
Public Interface IAeadCipher
public interface class IAeadCipher
Org.BouncyCastle.Crypto.Modes.IAeadCipher = function();
Org.BouncyCastle.Crypto.Modes.IAeadCipher.createInterface('Org.BouncyCastle.Crypto.Modes.IAeadCipher');
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.
DoFinal(SpanByte) | |
DoFinal(Byte, Int32) | |
GetMac | |
GetOutputSize | |
GetUpdateOutputSize | |
Init | Initialise the cipher. |
ProcessAadByte | Add 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).
|