AesGcm Klass

Definition

Representerar en AES-nyckel (Advanced Encryption Standard) som ska användas med GCM-läget (Galois/Counter Mode).

public ref class AesGcm sealed : IDisposable
[System.Runtime.Versioning.SupportedOSPlatform("ios13.0")]
[System.Runtime.Versioning.SupportedOSPlatform("tvos13.0")]
[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")]
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
public sealed class AesGcm : IDisposable
[<System.Runtime.Versioning.SupportedOSPlatform("ios13.0")>]
[<System.Runtime.Versioning.SupportedOSPlatform("tvos13.0")>]
[<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")>]
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
type AesGcm = class
    interface IDisposable
Public NotInheritable Class AesGcm
Implements IDisposable
Arv
AesGcm
Attribut
Implementeringar

Konstruktorer

Name Description
AesGcm(Byte[], Int32)

Initierar en ny instans av AesGcm klassen med en angivet nyckel och nödvändig taggstorlek.

AesGcm(Byte[])
Föråldrad.

Initierar en ny instans av AesGcm klassen med en angivet nyckel.

AesGcm(ReadOnlySpan<Byte>, Int32)

Initierar en ny instans av AesGcm klassen med en angivet nyckel och nödvändig taggstorlek.

AesGcm(ReadOnlySpan<Byte>)
Föråldrad.

Initierar en ny instans av AesGcm klassen med en angivet nyckel.

Egenskaper

Name Description
IsSupported

Hämtar ett värde som anger om algoritmen stöds på den aktuella plattformen.

NonceByteSizes

Hämtar nonce-storlekarna i byte som stöds av den här instansen.

TagByteSizes

Hämtar taggstorlekarna i byte som stöds av den här instansen.

TagSizeInBytes

Hämtar taggens storlek i byte.

Metoder

Name Description
Decrypt(Byte[], Byte[], Byte[], Byte[], Byte[])

Dekrypterar chiffertexten till den angivna målbufferten om autentiseringstaggen kan verifieras.

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

Dekrypterar chiffertexten till den angivna målbufferten om autentiseringstaggen kan verifieras.

Dispose()

Frigör de resurser som används av den aktuella instansen AesGcm av klassen.

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

Krypterar klartexten till chiffertextens målbuffert och genererar autentiseringstaggen till en separat buffert.

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

Krypterar klartexten till chiffertextens målbuffert och genererar autentiseringstaggen till en separat buffert.

Equals(Object)

Avgör om det angivna objektet är lika med det aktuella objektet.

(Ärvd från Object)
GetHashCode()

Fungerar som standard-hash-funktion.

(Ärvd från Object)
GetType()

Hämtar den aktuella instansen Type .

(Ärvd från Object)
MemberwiseClone()

Skapar en ytlig kopia av den aktuella Object.

(Ärvd från Object)
ToString()

Returnerar en sträng som representerar det aktuella objektet.

(Ärvd från Object)

Gäller för