SymmetricAlgorithm.GetCiphertextLengthEcb(Int32, PaddingMode) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 패딩 모드와 ECB 모드의 일반 텍스트 길이가 있는 암호 텍스트의 길이를 가져옵니다.
public:
int GetCiphertextLengthEcb(int plaintextLength, System::Security::Cryptography::PaddingMode paddingMode);
public int GetCiphertextLengthEcb(int plaintextLength, System.Security.Cryptography.PaddingMode paddingMode);
member this.GetCiphertextLengthEcb : int * System.Security.Cryptography.PaddingMode -> int
Public Function GetCiphertextLengthEcb (plaintextLength As Integer, paddingMode As PaddingMode) As Integer
매개 변수
- plaintextLength
- Int32
일반 텍스트 길이(바이트)입니다.
- paddingMode
- PaddingMode
일반 텍스트를 알고리즘의 블록 크기에 패딩하는 데 사용되는 패딩 모드입니다.
반품
패딩이 있는 암호 텍스트의 길이(바이트)입니다.
예외
plaintextLength 는 음수입니다.
-또는-
plaintextLength 패딩이 너무 커서 부제 32비트 정수로 나타낼 수 없습니다.
-또는-
paddingMode 가 유효한 패딩 모드가 아닌 경우
패딩 모드 None 가 사용되었지만 plaintextLength 정수 블록은 아닙니다.