Crypto++ 8.7
Free C++ class library of cryptographic schemes
|
Padding schemes used for block ciphers. More...
#include <filters.h>
Public Types | |
enum | BlockPaddingScheme { NO_PADDING , ZEROS_PADDING , PKCS_PADDING , ONE_AND_ZEROS_PADDING , W3C_PADDING , DEFAULT_PADDING } |
Padding schemes used for block ciphers. More... | |
Padding schemes used for block ciphers.
DEFAULT_PADDING means PKCS_PADDING if cipher.MandatoryBlockSize() > 1 && cipher.MinLastBlockSize() == 0
, which holds for ECB or CBC mode. Otherwise, NO_PADDING for modes like OFB, CFB, CTR, CBC-CTS.