AesCcm.Decrypt 메서드

정의

오버로드

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

인증 태그의 유효성을 검사할 수 있는 경우 제공된 대상 버퍼의 암호 텍스트를 해독합니다.

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

인증 태그의 유효성을 검사할 수 있는 경우 제공된 대상 버퍼의 암호 텍스트를 해독합니다.

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

인증 태그의 유효성을 검사할 수 있는 경우 제공된 대상 버퍼의 암호 텍스트를 해독합니다.

public void Decrypt (byte[] nonce, byte[] ciphertext, byte[] tag, byte[] plaintext, byte[]? associatedData = default);
public void Decrypt (byte[] nonce, byte[] ciphertext, byte[] tag, byte[] plaintext, byte[] associatedData = default);
member this.Decrypt : byte[] * byte[] * byte[] * byte[] * byte[] -> unit
Public Sub Decrypt (nonce As Byte(), ciphertext As Byte(), tag As Byte(), plaintext As Byte(), Optional associatedData As Byte() = Nothing)

매개 변수

nonce
Byte[]

이 메시지와 연결된 nonce로, 암호화 중에 제공된 값과 일치해야 합니다.

ciphertext
Byte[]

해독할 암호화된 콘텐츠입니다.

tag
Byte[]

암호화하는 동안 이 메시지용으로 생성된 인증 태그입니다.

plaintext
Byte[]

해독된 콘텐츠를 받을 바이트 배열입니다.

associatedData
Byte[]

이 메시지와 연결된 추가 데이터로, 암호화 중에 제공된 값과 일치해야 합니다.

예외

plaintext 매개 변수와 ciphertext의 길이가 같지 않습니다.

또는

nonce 매개 변수 길이가 NonceByteSizes에서 허용되지 않습니다.

또는

tag 매개 변수 길이가 TagByteSizes에서 허용되지 않습니다.

nonce, ciphertext, tag 또는 plaintext 매개 변수는 null입니다.

태그 값을 확인할 수 없거나 암호 해독 작업에 실패했습니다.

설명

키, 값 및 associatedData 값을 plaintext 사용하여 유효성을 검사할 수 없는 경우 tag ciphertext지워집니다. nonce

적용 대상

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

인증 태그의 유효성을 검사할 수 있는 경우 제공된 대상 버퍼의 암호 텍스트를 해독합니다.

public void Decrypt (ReadOnlySpan<byte> nonce, ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> tag, Span<byte> plaintext, ReadOnlySpan<byte> associatedData = default);
member this.Decrypt : ReadOnlySpan<byte> * ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * ReadOnlySpan<byte> -> unit
Public Sub Decrypt (nonce As ReadOnlySpan(Of Byte), ciphertext As ReadOnlySpan(Of Byte), tag As ReadOnlySpan(Of Byte), plaintext As Span(Of Byte), Optional associatedData As ReadOnlySpan(Of Byte) = Nothing)

매개 변수

nonce
ReadOnlySpan<Byte>

이 메시지와 연결된 nonce로, 암호화 중에 제공된 값과 일치해야 합니다.

ciphertext
ReadOnlySpan<Byte>

해독할 암호화된 콘텐츠입니다.

tag
ReadOnlySpan<Byte>

암호화하는 동안 이 메시지용으로 생성된 인증 태그입니다.

plaintext
Span<Byte>

해독된 콘텐츠를 받을 바이트 범위입니다.

associatedData
ReadOnlySpan<Byte>

이 메시지와 연결된 추가 데이터로, 암호화 중에 제공된 값과 일치해야 합니다.

예외

plaintext 매개 변수와 ciphertext의 길이가 같지 않습니다.

또는

nonce 매개 변수 길이가 NonceByteSizes에서 허용되지 않습니다.

또는

tag 매개 변수 길이가 TagByteSizes에서 허용되지 않습니다.

태그 값을 확인할 수 없거나 암호 해독 작업에 실패했습니다.

설명

키, 값 및 associatedData 값을 plaintext 사용하여 유효성을 검사할 수 없는 경우 tag ciphertext지워집니다. nonce

적용 대상