Name
PaddingMode
Synopsis
public enum PaddingMode { None = 1,PKCS7 = 2,Zeros = 3 }
The PaddingMode
enumeration is used with the
SymmetricAlgorithm.Padding
property to specify a
padding scheme for data encryption. The PKCS7
value specifies PKCS #7 padding, where the value of the padding bytes
is set to be the number of padding bytes (for example, if seven bytes
of padding are required, then the value of these bytes will be 7).
The Zeros
value specifies that all padding bytes
should be set to have a value of 0.
Hierarchy
System.Object
→
System.ValueType
→
System.Enum(System.IComparable,
System.IFormattable
, System.IConvertible)
→
PaddingMode
Returned By
SymmetricAlgorithm.Padding
Passed To
SymmetricAlgorithm.Padding
Get Programming .NET Security now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.