Click or drag to resize

Aead Class

Provides generic authenticated encryption.
Inheritance Hierarchy
SystemObject
  CryptoSysAPIAead

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public class Aead : IDisposable

The Aead type exposes the following members.

Properties
 NameDescription
Public propertyErrCode Last error code (object-related only)
Top
Methods
 NameDescription
Public methodAddAAD Add a chunk of additional authenticated data (in incremental mode)
Public methodStatic memberAuthenticate Authenticate additional data using tag
Public methodStatic memberDecrypt Decrypt and authenticate input using specified AEAD algorithm in one-off operation
Public methodStatic memberDecryptWithTag(Byte, Byte, Byte, AeadAlgorithm) Decrypt data using specified AEAD algorithm in one-off operation. The authentication tag is expected to be appended to the input ciphertext.
Public methodStatic memberDecryptWithTag(Byte, Byte, Byte, Byte, AeadAlgorithm, AeadOpts) Decrypt data using specified AEAD algorithm in one-off operation with AAD and options. The authentication tag is expected to be appended to the input ciphertext.
Public methodDispose Dispose of this object and clear any key schedules
Public methodStatic memberEncrypt Encrypt input using specified AEAD algorithm in one-off operation.
Public methodStatic memberEncryptWithTag(Byte, Byte, Byte, AeadAlgorithm) Encrypt data using specified AEAD algorithm in one-off operation. The authentication tag is appended to the output.
Public methodStatic memberEncryptWithTag(Byte, Byte, Byte, Byte, AeadAlgorithm, AeadOpts) Encrypt data using specified AEAD algorithm in one-off operation with AAD and options. The authentication tag is appended to the output.
Public methodFinishDecrypt Finishes the authenticated decryption (in incremental mode)
Public methodFinishEncrypt Finishes the authenticated encryption (in incremental mode)
Public methodCode exampleInitKey Initializes the context with the key and algorithm ready for repeated incremental operations
Public methodStatic memberInstance Create the one and only instance
Public methodStatic memberMac Compute Message Authentication Code (tag) over input data
Public methodSetNonce Set the nonce (in incremental mode)
Public methodStartDecrypt Start authenticated decryption (in incremental mode)
Public methodStartEncrypt Start authenticated encryption (in incremental mode)
Public methodUpdate Encrypts or decrypts a chunk of input (in incremental mode)
Top
Fields
 NameDescription
Public fieldStatic memberTagMaxSize Maximum size of tag in bytes
Top
See Also