BlockPaddingSchemeDef Struct Reference

Inheritance diagram for BlockPaddingSchemeDef:
AuthenticatedDecryptionFilter StreamTransformationFilter AuthenticatedEncryptionFilter

List of all members.

Public Types

enum  BlockPaddingScheme {
  NO_PADDING, ZEROS_PADDING, PKCS_PADDING, ONE_AND_ZEROS_PADDING,
  DEFAULT_PADDING
}

Detailed Description

Padding schemes used for block ciphers.

Definition at line 374 of file filters.h.


Member Enumeration Documentation

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.

See also:
Block Cipher Padding for additional details.
Enumerator:
NO_PADDING 

No padding added to a block.

ZEROS_PADDING 

0's padding added to a block

PKCS_PADDING 

PKCS #5 padding added to a block.

ONE_AND_ZEROS_PADDING 

1 and 0's padding added to a block

DEFAULT_PADDING 

Default padding acheme.

Definition at line 383 of file filters.h.


The documentation for this struct was generated from the following file:

Generated on 24 Mar 2016 for Crypto++ by  doxygen 1.6.1