Microsoft.IdentityModel.Tokens.AuthenticatedEncryptionProvider
Provides authenticated encryption and decryption services.
Gets the encryption algorithm that is being used.
Gets or sets a user context for a AuthenticatedEncryptionProvider.
Gets the SecurityKey that is being used.
Initializes a new instance of the AuthenticatedEncryptionProvider class used for encryption and decryption.
public virtual byte[] Decrypt(byte[] ciphertext, byte[] authenticatedData, byte[] iv, byte[] authenticationTag)
Decrypts ciphertext into plaintext.
Calls Dispose and SuppressFinalize
Releases managed resources.
Encrypts the specified plaintext.
public virtual AuthenticatedEncryptionResult Encrypt(byte[] plaintext, byte[] authenticatedData, byte[] iv)
Encrypts the specified plaintext.
Called to obtain the byte[] needed to create a KeyedHashAlgorithm.
Checks if the key/algorithm pair is supported.
Checks that the key has sufficient length.