AesGcm 생성자

정의

오버로드

AesGcm(Byte[])
사용되지 않음.

제공된 키를 사용하여 AesGcm 클래스의 새 인스턴스를 초기화합니다.

AesGcm(ReadOnlySpan<Byte>)
사용되지 않음.

제공된 키를 사용하여 AesGcm 클래스의 새 인스턴스를 초기화합니다.

AesGcm(Byte[], Int32)

제공된 키와 필수 태그 크기를 사용하여 클래스의 AesGcm 새 instance 초기화합니다.

AesGcm(ReadOnlySpan<Byte>, Int32)

제공된 키와 필수 태그 크기를 사용하여 클래스의 AesGcm 새 instance 초기화합니다.

AesGcm(Byte[])

Source:
AesGcm.cs
Source:
AesGcm.cs
Source:
AesGcm.cs

주의

AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size.

제공된 키를 사용하여 AesGcm 클래스의 새 인스턴스를 초기화합니다.

public:
 AesGcm(cli::array <System::Byte> ^ key);
public AesGcm (byte[] key);
[System.Obsolete("AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size.", DiagnosticId="SYSLIB0053", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public AesGcm (byte[] key);
new System.Security.Cryptography.AesGcm : byte[] -> System.Security.Cryptography.AesGcm
[<System.Obsolete("AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size.", DiagnosticId="SYSLIB0053", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.AesGcm : byte[] -> System.Security.Cryptography.AesGcm
Public Sub New (key As Byte())

매개 변수

key
Byte[]

이 인스턴스에 사용할 비밀 키입니다.

특성

예외

key 매개 변수가 null인 경우

key 매개 변수 길이는 16, 24 또는 32바이트 이외의 길이입니다(128, 192 또는 256비트).

적용 대상

AesGcm(ReadOnlySpan<Byte>)

Source:
AesGcm.cs
Source:
AesGcm.cs
Source:
AesGcm.cs

주의

AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size.

제공된 키를 사용하여 AesGcm 클래스의 새 인스턴스를 초기화합니다.

public:
 AesGcm(ReadOnlySpan<System::Byte> key);
public AesGcm (ReadOnlySpan<byte> key);
[System.Obsolete("AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size.", DiagnosticId="SYSLIB0053", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public AesGcm (ReadOnlySpan<byte> key);
new System.Security.Cryptography.AesGcm : ReadOnlySpan<byte> -> System.Security.Cryptography.AesGcm
[<System.Obsolete("AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size.", DiagnosticId="SYSLIB0053", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Security.Cryptography.AesGcm : ReadOnlySpan<byte> -> System.Security.Cryptography.AesGcm
Public Sub New (key As ReadOnlySpan(Of Byte))

매개 변수

key
ReadOnlySpan<Byte>

이 인스턴스에 사용할 비밀 키입니다.

특성

예외

key 매개 변수 길이는 16, 24 또는 32바이트 이외의 길이입니다(128, 192 또는 256비트).

적용 대상

AesGcm(Byte[], Int32)

Source:
AesGcm.cs
Source:
AesGcm.cs

제공된 키와 필수 태그 크기를 사용하여 클래스의 AesGcm 새 instance 초기화합니다.

public:
 AesGcm(cli::array <System::Byte> ^ key, int tagSizeInBytes);
public AesGcm (byte[] key, int tagSizeInBytes);
new System.Security.Cryptography.AesGcm : byte[] * int -> System.Security.Cryptography.AesGcm
Public Sub New (key As Byte(), tagSizeInBytes As Integer)

매개 변수

key
Byte[]

이 인스턴스에 사용할 비밀 키입니다.

tagSizeInBytes
Int32

암호화 및 암호 해독에서 사용해야 하는 태그의 크기(바이트)입니다.

예외

key 매개 변수가 null인 경우

key 매개 변수 길이는 16, 24 또는 32바이트 이외의 길이입니다(128, 192 또는 256비트).

매개 변수는 tagSizeInBytes 로 표시된 TagByteSizes지원되지 않는 태그 크기입니다.

현재 플랫폼은 AES-GCM을 지원하지 않습니다.

설명

tagSizeInBytes 매개 변수는 또는 Decrypt 의 태그 매개 변수 Encrypt 가 정확히 이 크기여야 함을 나타내는 데 사용됩니다. 필요한 태그 크기를 표시하면 의 Decrypt 호출자가 태그를 입력으로 제공할 수 있고 입력이 예기치 않은 크기로 잘리는 문제를 방지합니다.

적용 대상

AesGcm(ReadOnlySpan<Byte>, Int32)

Source:
AesGcm.cs
Source:
AesGcm.cs

제공된 키와 필수 태그 크기를 사용하여 클래스의 AesGcm 새 instance 초기화합니다.

public:
 AesGcm(ReadOnlySpan<System::Byte> key, int tagSizeInBytes);
public AesGcm (ReadOnlySpan<byte> key, int tagSizeInBytes);
new System.Security.Cryptography.AesGcm : ReadOnlySpan<byte> * int -> System.Security.Cryptography.AesGcm
Public Sub New (key As ReadOnlySpan(Of Byte), tagSizeInBytes As Integer)

매개 변수

key
ReadOnlySpan<Byte>

이 인스턴스에 사용할 비밀 키입니다.

tagSizeInBytes
Int32

암호화 및 암호 해독에서 사용해야 하는 태그의 크기(바이트)입니다.

예외

key 매개 변수 길이는 16, 24 또는 32바이트 이외의 길이입니다(128, 192 또는 256비트).

매개 변수는 tagSizeInBytes 로 표시된 TagByteSizes지원되지 않는 태그 크기입니다.

현재 플랫폼은 AES-GCM을 지원하지 않습니다.

설명

tagSizeInBytes 매개 변수는 또는 Decrypt 의 태그 매개 변수 Encrypt 가 정확히 이 크기여야 함을 나타내는 데 사용됩니다. 필요한 태그 크기를 표시하면 의 Decrypt 호출자가 태그를 입력으로 제공할 수 있고 입력이 예기치 않은 크기로 잘리는 문제를 방지합니다.

적용 대상