SymmetricAlgorithm.GetCiphertextLengthCbc(Int32, PaddingMode) 메서드

정의

CBC 모드에서 지정된 패딩 모드 및 일반 텍스트 길이가 있는 암호 텍스트의 길이를 가져옵니다.

public int GetCiphertextLengthCbc (int plaintextLength, System.Security.Cryptography.PaddingMode paddingMode = System.Security.Cryptography.PaddingMode.PKCS7);
member this.GetCiphertextLengthCbc : int * System.Security.Cryptography.PaddingMode -> int
Public Function GetCiphertextLengthCbc (plaintextLength As Integer, Optional paddingMode As PaddingMode = System.Security.Cryptography.PaddingMode.PKCS7) As Integer

매개 변수

plaintextLength
Int32

일반 텍스트 길이(바이트)입니다.

paddingMode
PaddingMode

일반 텍스트를 알고리즘의 블록 크기에 패딩하는 데 사용되는 패딩 모드입니다.

반환

Int32

패딩이 있는 암호 텍스트의 길이(바이트)입니다.

예외

plaintextLength가 음수입니다.

또는

plaintextLength 패딩이 너무 커서 부 서명된 32비트 정수로 나타낼 수 없습니다.

또는

paddingMode 가 유효한 패딩 모드가 아닙니다.

BlockSize 가 양의 정수가 아닙니다.

또는

BlockSize 은 정수 바이트가 아닙니다. 8까지 나눌 수 있어야 합니다.

패딩 모드 None 가 사용되었지만 plaintextLength 정수 블록은 아닙니다.

적용 대상