AuthenticatedEncryptionProvider Class

Definition

Provides authenticated encryption and decryption services.

public class AuthenticatedEncryptionProvider : IDisposable
type AuthenticatedEncryptionProvider = class
    interface IDisposable
Public Class AuthenticatedEncryptionProvider
Implements IDisposable
Inheritance
AuthenticatedEncryptionProvider
Implements

Constructors

AuthenticatedEncryptionProvider(SecurityKey, String)

Initializes a new instance of the AuthenticatedEncryptionProvider class used for encryption and decryption.

Properties

Algorithm

Gets the encryption algorithm that is being used.

Context

Gets or sets a user context for a AuthenticatedEncryptionProvider.

Key

Gets the SecurityKey that is being used.

Methods

Decrypt(Byte[], Byte[], Byte[], Byte[])

Decrypts ciphertext into plaintext.

Dispose()

Calls Dispose(Boolean) and SuppressFinalize(Object)

Dispose(Boolean)

Releases managed resources.

Encrypt(Byte[], Byte[], Byte[])

Encrypts the specified plaintext.

Encrypt(Byte[], Byte[])

Encrypts the specified plaintext.

GetKeyBytes(SecurityKey)

Called to obtain the byte[] needed to create a KeyedHashAlgorithm.

IsSupportedAlgorithm(SecurityKey, String)

Checks if the key/algorithm pair is supported.

ValidateKeySize(SecurityKey, String)

Checks that the key has sufficient length.

Applies to