Upraviť

Zdieľať cez


AesGcm Class

Definition

Represents an Advanced Encryption Standard (AES) key to be used with the Galois/Counter Mode (GCM) mode of operation.

public ref class AesGcm sealed : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public sealed class AesGcm : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public sealed class AesGcm : IDisposable
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
[System.Runtime.Versioning.SupportedOSPlatform("ios13.0")]
[System.Runtime.Versioning.SupportedOSPlatform("tvos13.0")]
public sealed class AesGcm : IDisposable
public sealed class AesGcm : IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type AesGcm = class
    interface IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type AesGcm = class
    interface IDisposable
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
[<System.Runtime.Versioning.SupportedOSPlatform("ios13.0")>]
[<System.Runtime.Versioning.SupportedOSPlatform("tvos13.0")>]
type AesGcm = class
    interface IDisposable
type AesGcm = class
    interface IDisposable
Public NotInheritable Class AesGcm
Implements IDisposable
Inheritance
AesGcm
Attributes
Implements

Constructors

AesGcm(Byte[])
Obsolete.

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

AesGcm(Byte[], Int32)

Initializes a new instance of the AesGcm class with a provided key and required tag size.

AesGcm(ReadOnlySpan<Byte>)
Obsolete.

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

AesGcm(ReadOnlySpan<Byte>, Int32)

Initializes a new instance of the AesGcm class with a provided key and required tag size.

Properties

IsSupported

Gets a value that indicates whether the algorithm is supported on the current platform.

NonceByteSizes

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

TagByteSizes

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

TagSizeInBytes

Gets the size of the tag, in bytes.

Methods

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>)

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

Dispose()

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

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>)

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

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to