AesCcm AesCcm AesCcm AesCcm Class

Definition

Represents an Advanced Encryption Standard (AES) key to be used with the Counter with CBC-MAC (CCM) mode of operation.

public ref class AesCcm sealed : IDisposable
public sealed class AesCcm : IDisposable
type AesCcm = class
    interface IDisposable
Public NotInheritable Class AesCcm
Implements IDisposable
Inheritance
AesCcmAesCcmAesCcmAesCcm
Implements

Constructors

AesCcm(Byte[]) AesCcm(Byte[]) AesCcm(Byte[]) AesCcm(Byte[])

Initializes a new instance of the AesCcm class with a provided key.

AesCcm(ReadOnlySpan<Byte>) AesCcm(ReadOnlySpan<Byte>) AesCcm(ReadOnlySpan<Byte>) AesCcm(ReadOnlySpan<Byte>)

Initializes a new instance of the AesCcm class with a provided key.

Properties

NonceByteSizes NonceByteSizes NonceByteSizes NonceByteSizes

Gets the nonce sizes, in bytes, supported by this instance.

TagByteSizes TagByteSizes TagByteSizes TagByteSizes

Gets the tag sizes, in bytes, supported by this instance.

Methods

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

Decrypts the ciphertext into the provided destination buffer if the authentication tag can be validated.

Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>) Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>) Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>) Decrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

Decrypts the ciphertext into the provided destination buffer if the authentication tag can be validated.

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the current instance of the AesCcm class.

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

Encrypts the plaintext into the ciphertext destination buffer and generates the authentication tag into a separate buffer.

Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>) Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>) Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>) Encrypt(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, Span<Byte>, ReadOnlySpan<Byte>)

Encrypts the plaintext into the ciphertext destination buffer and generates the authentication tag into a separate buffer.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to