Share via


IAuthenticatedEncryptor.Decrypt 메서드

정의

의 인증 태그의 유효성을 검사하고 암호화된 데이터의 Blob을 암호 해독합니다.

public:
 cli::array <System::Byte> ^ Decrypt(ArraySegment<System::Byte> ciphertext, ArraySegment<System::Byte> additionalAuthenticatedData);
public byte[] Decrypt (ArraySegment<byte> ciphertext, ArraySegment<byte> additionalAuthenticatedData);
abstract member Decrypt : ArraySegment<byte> * ArraySegment<byte> -> byte[]
Public Function Decrypt (ciphertext As ArraySegment(Of Byte), additionalAuthenticatedData As ArraySegment(Of Byte)) As Byte()

매개 변수

ciphertext
ArraySegment<Byte>

암호 해독할 암호 텍스트(인증 태그 포함)입니다.

additionalAuthenticatedData
ArraySegment<Byte>

인증 태그를 계산하는 동안 사용된 보조 데이터입니다. 'Encrypt'에 대한 해당 호출에서 동일한 AAD를 지정해야 합니다.

반환

Byte[]

원래 일반 텍스트 데이터입니다(인증 태그의 유효성을 검사하고 암호 해독에 성공한 경우).

설명

모든 암호화 관련 예외는 CryptographicException으로 균질화되어야 합니다.

적용 대상