12 references to SymmetricPadding
System.Security.Cryptography (12)
System\Security\Cryptography\UniversalCryptoDecryptor.cs (3)
39
if (
SymmetricPadding
.DepaddingRequired(PaddingMode))
116
unpaddedLength =
SymmetricPadding
.GetPaddingLength(decryptedBytes, PaddingMode, InputBlockSize);
135
if (
SymmetricPadding
.DepaddingRequired(PaddingMode))
System\Security\Cryptography\UniversalCryptoEncryptor.cs (2)
37
int padWritten =
SymmetricPadding
.PadBlock(inputBuffer, outputBuffer, PaddingSizeBytes, PaddingMode);
49
int ciphertextLength =
SymmetricPadding
.GetCiphertextLength(inputCount, PaddingSizeBytes, PaddingMode);
System\Security\Cryptography\UniversalCryptoOneShot.cs (7)
23
bool depaddingRequired =
SymmetricPadding
.DepaddingRequired(paddingMode);
50
bytesWritten =
SymmetricPadding
.GetPaddingLength(transformBuffer, paddingMode, cipher.BlockSizeInBytes);
87
int depaddedLength =
SymmetricPadding
.GetPaddingLength(
138
int depaddedLength =
SymmetricPadding
.GetPaddingLength(
183
int unpaddedLength =
SymmetricPadding
.GetPaddingLength(decryptedBuffer, paddingMode, cipher.BlockSizeInBytes); // validates padding
210
int ciphertextLength =
SymmetricPadding
.GetCiphertextLength(input.Length, cipher.PaddingSizeInBytes, paddingMode);
221
int padWritten =
SymmetricPadding
.PadBlock(input, output, cipher.PaddingSizeInBytes, paddingMode);