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