160 references to PaddingMode
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
146retVal.Padding = PaddingMode.PKCS7;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
898[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PaddingMode))]
netstandard (1)
netstandard.cs (1)
1900[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PaddingMode))]
System.Security.Cryptography (146)
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
59public override PaddingMode Padding
System\Security\Cryptography\AesImplementation.cs (6)
48PaddingMode paddingMode, 69PaddingMode paddingMode, 91PaddingMode paddingMode, 113PaddingMode paddingMode, 135PaddingMode paddingMode, 160PaddingMode paddingMode,
System\Security\Cryptography\AesImplementation.OpenSsl.cs (1)
12PaddingMode paddingMode,
System\Security\Cryptography\AesManaged.cs (1)
57public override PaddingMode Padding
System\Security\Cryptography\DESCryptoServiceProvider.Unix.cs (1)
82public override PaddingMode Padding
System\Security\Cryptography\DesImplementation.cs (6)
99PaddingMode paddingMode, 120PaddingMode paddingMode, 142PaddingMode paddingMode, 164PaddingMode paddingMode, 186PaddingMode paddingMode, 211PaddingMode paddingMode,
System\Security\Cryptography\DesImplementation.OpenSsl.cs (1)
12PaddingMode paddingMode,
System\Security\Cryptography\RC2CryptoServiceProvider.Unix.cs (1)
102public override PaddingMode Padding
System\Security\Cryptography\RC2Implementation.cs (6)
85PaddingMode paddingMode, 109PaddingMode paddingMode, 134PaddingMode paddingMode, 159PaddingMode paddingMode, 184PaddingMode paddingMode, 195PaddingMode paddingMode,
System\Security\Cryptography\RC2Implementation.OpenSsl.cs (1)
12PaddingMode paddingMode,
System\Security\Cryptography\RijndaelImplementation.cs (1)
76public override PaddingMode Padding
System\Security\Cryptography\RijndaelManaged.cs (1)
72public override PaddingMode Padding
System\Security\Cryptography\SymmetricAlgorithm.cs (77)
15PaddingValue = PaddingMode.PKCS7; 156public virtual PaddingMode Padding 165if ((value < PaddingMode.None) || (value > PaddingMode.ISO10126)) 262/// The padding mode <see cref="PaddingMode.None" /> was used, but <paramref name="plaintextLength" /> 266public int GetCiphertextLengthEcb(int plaintextLength, PaddingMode paddingMode) => 306/// The padding mode <see cref="PaddingMode.None" /> was used, but <paramref name="plaintextLength" /> 310public int GetCiphertextLengthCbc(int plaintextLength, PaddingMode paddingMode = PaddingMode.PKCS7) => 313private int GetCiphertextLengthBlockAligned(int plaintextLength, PaddingMode paddingMode) 327case PaddingMode.None when remainder != 0: 329case PaddingMode.None: 330case PaddingMode.Zeros when remainder == 0: 332case PaddingMode.Zeros: 333case PaddingMode.PKCS7: 334case PaddingMode.ANSIX923: 335case PaddingMode.ISO10126: 380/// The padding mode <see cref="PaddingMode.None" /> was used, but <paramref name="plaintextLength" /> 394public int GetCiphertextLengthCfb(int plaintextLength, PaddingMode paddingMode = PaddingMode.None, int feedbackSizeInBits = 8) 406case PaddingMode.None when remainder != 0: 408case PaddingMode.None: 409case PaddingMode.Zeros when remainder == 0: 411case PaddingMode.Zeros: 412case PaddingMode.PKCS7: 413case PaddingMode.ANSIX923: 414case PaddingMode.ISO10126: 444public byte[] DecryptEcb(byte[] ciphertext, PaddingMode paddingMode) 467public byte[] DecryptEcb(ReadOnlySpan<byte> ciphertext, PaddingMode paddingMode) 509public int DecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode) 538public bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten) 562public byte[] EncryptEcb(byte[] plaintext, PaddingMode paddingMode) 585public byte[] EncryptEcb(ReadOnlySpan<byte> plaintext, PaddingMode paddingMode) 627public int EncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode) 656public bool TryEncryptEcb(ReadOnlySpan<byte> plaintext, Span<byte> destination, PaddingMode paddingMode, out int bytesWritten) 685public byte[] DecryptCbc(byte[] ciphertext, byte[] iv, PaddingMode paddingMode = PaddingMode.PKCS7) 713public byte[] DecryptCbc(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, PaddingMode paddingMode = PaddingMode.PKCS7) 770PaddingMode paddingMode = PaddingMode.PKCS7) 810PaddingMode paddingMode = PaddingMode.PKCS7) 840public byte[] EncryptCbc(byte[] plaintext, byte[] iv, PaddingMode paddingMode = PaddingMode.PKCS7) 871PaddingMode paddingMode = PaddingMode.PKCS7) 923PaddingMode paddingMode = PaddingMode.PKCS7) 963PaddingMode paddingMode = PaddingMode.PKCS7) 1012public byte[] DecryptCfb(byte[] ciphertext, byte[] iv, PaddingMode paddingMode = PaddingMode.None, int feedbackSizeInBits = 8) 1065PaddingMode paddingMode = PaddingMode.None, 1142PaddingMode paddingMode = PaddingMode.None, 1202PaddingMode paddingMode = PaddingMode.None, 1255PaddingMode paddingMode = PaddingMode.None, 1305PaddingMode paddingMode = PaddingMode.None, 1374PaddingMode paddingMode = PaddingMode.None, 1434PaddingMode paddingMode = PaddingMode.None, 1467PaddingMode paddingMode, 1491PaddingMode paddingMode, 1522PaddingMode paddingMode, 1548PaddingMode paddingMode, 1576PaddingMode paddingMode, 1609PaddingMode paddingMode, 1616private static void CheckPaddingMode(PaddingMode paddingMode) 1618if (paddingMode < PaddingMode.None || paddingMode > PaddingMode.ISO10126) 1637protected PaddingMode PaddingValue;
System\Security\Cryptography\SymmetricPadding.cs (27)
11public static int GetCiphertextLength(int plaintextLength, int paddingSizeInBytes, PaddingMode paddingMode) 20case PaddingMode.None when (remainder != 0): 22case PaddingMode.None: 23case PaddingMode.Zeros when (remainder == 0): 25case PaddingMode.Zeros: 26case PaddingMode.PKCS7: 27case PaddingMode.ANSIX923: 28case PaddingMode.ISO10126: 36public static int PadBlock(ReadOnlySpan<byte> block, Span<byte> destination, int paddingSizeInBytes, PaddingMode paddingMode) 44case PaddingMode.None when (paddingRemainder != 0): 47case PaddingMode.None: 60case PaddingMode.ANSIX923: 77case PaddingMode.ISO10126: 94case PaddingMode.PKCS7: 110case PaddingMode.Zeros: 132public static bool DepaddingRequired(PaddingMode padding) 137case PaddingMode.PKCS7: 138case PaddingMode.ANSIX923: 139case PaddingMode.ISO10126: 141case PaddingMode.Zeros: 142case PaddingMode.None: 150public static int GetPaddingLength(ReadOnlySpan<byte> block, PaddingMode paddingMode, int blockSize) 157case PaddingMode.ANSIX923: 174case PaddingMode.ISO10126: 186case PaddingMode.PKCS7: 204case PaddingMode.Zeros: 205case PaddingMode.None:
System\Security\Cryptography\TripleDESCryptoServiceProvider.Wrap.cs (1)
56public override PaddingMode Padding
System\Security\Cryptography\TripleDesImplementation.cs (6)
96PaddingMode paddingMode, 117PaddingMode paddingMode, 139PaddingMode paddingMode, 161PaddingMode paddingMode, 183PaddingMode paddingMode, 208PaddingMode paddingMode,
System\Security\Cryptography\TripleDesImplementation.OpenSsl.cs (1)
12PaddingMode paddingMode,
System\Security\Cryptography\UniversalCryptoDecryptor.cs (1)
21public UniversalCryptoDecryptor(PaddingMode paddingMode, BasicSymmetricCipher basicSymmetricCipher)
System\Security\Cryptography\UniversalCryptoEncryptor.cs (1)
21public UniversalCryptoEncryptor(PaddingMode paddingMode, BasicSymmetricCipher basicSymmetricCipher)
System\Security\Cryptography\UniversalCryptoOneShot.cs (2)
15PaddingMode paddingMode, 205PaddingMode paddingMode,
System\Security\Cryptography\UniversalCryptoTransform.cs (3)
22PaddingMode paddingMode, 32protected UniversalCryptoTransform(PaddingMode paddingMode, BasicSymmetricCipher basicSymmetricCipher) 124protected PaddingMode PaddingMode { get; }
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (1)
201alg.Padding = PaddingMode.PKCS7;
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.PaddingMode))]
System.Security.Cryptography.Xml (9)
System\Security\Cryptography\Xml\EncryptedXml.cs (5)
69private PaddingMode _padding; 95_padding = PaddingMode.ISO10126; 149public PaddingMode Padding 712PaddingMode origPadding = symmetricAlgorithm.Padding; 778PaddingMode origPadding = symmetricAlgorithm.Padding;
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (4)
47tripleDES.Padding = PaddingMode.None; 86tripleDES.Padding = PaddingMode.None; 137aes.Padding = PaddingMode.None; 200aes.Padding = PaddingMode.None;