Properties of a block cipher.
More...
#include <tsBlockCipherProperties.h>
|
| | BlockCipherProperties (const BlockCipherProperties &base, const UChar *name, bool residue, size_t min_message, size_t work_blocks, size_t min_iv, size_t max_iv=0) |
| | Constructor for chaining block ciphers.
|
| |
| | BlockCipherProperties (const BlockCipherProperties &base, const UChar *name, const void *fixed_iv, size_t fixed_iv_size) |
| | Constructor which overrides a few fields.
|
| |
| | BlockCipherProperties (const UChar *name, size_t block, size_t min_key, size_t max_key=0) |
| | Constructor for a basic block cipher.
|
| |
| void | assertCompatibleBase (const BlockCipherProperties &other) const |
| | Assert the compatibility of the base block cipher with another set of properties.
|
| |
| void | assertCompatibleChaining (const BlockCipherProperties &other) const |
| | Assert the compatibility of the chained block cipher with another set of properties.
|
| |
|
|
size_t | block_size |
| | Block size in bytes.
|
| |
|
bool | chaining |
| | If true, includes a chaining mode. If false, can process only one block.
|
| |
|
const UChar * | chaining_name |
| | Chaining mode name.
|
| |
|
const void * | fixed_iv |
| | If not null, point to a fixed IV for that algorithm.
|
| |
|
size_t | fixed_iv_size |
| | Size in bytes of the fixed IV.
|
| |
|
size_t | max_iv_size |
| | Maximum initialization vector size in bytes (chaining).
|
| |
|
size_t | max_key_size |
| | Maximum key size in bytes.
|
| |
|
size_t | min_iv_size |
| | Minimum initialization vector size in bytes (chaining).
|
| |
|
size_t | min_key_size |
| | Minimum key size in bytes.
|
| |
|
size_t | min_message_size |
| | Minimum message size. Shorter data cannot be ciphered in this mode (chaining).
|
| |
|
const UChar * | name |
| | Algorithm name.
|
| |
|
bool | residue_allowed |
| | The chaining mode can process residue after the last multiple of the block size.
|
| |
|
size_t | work_blocks |
| | Temporary work buffer size in multiples of cipher block size (chaining).
|
| |
Properties of a block cipher.
◆ BlockCipherProperties() [1/3]
| ts::BlockCipherProperties::BlockCipherProperties |
( |
const UChar * |
name, |
|
|
size_t |
block, |
|
|
size_t |
min_key, |
|
|
size_t |
max_key = 0 |
|
) |
| |
Constructor for a basic block cipher.
- Parameters
-
| [in] | name | Algorithm name. |
| [in] | block | Size in bytes of the daa block. |
| [in] | min_key | The minimum key sizes in bytes. |
| [in] | max_key | The maximum key sizes in bytes. If zero, same as min_key_size. |
◆ BlockCipherProperties() [2/3]
| ts::BlockCipherProperties::BlockCipherProperties |
( |
const BlockCipherProperties & |
base, |
|
|
const UChar * |
name, |
|
|
bool |
residue, |
|
|
size_t |
min_message, |
|
|
size_t |
work_blocks, |
|
|
size_t |
min_iv, |
|
|
size_t |
max_iv = 0 |
|
) |
| |
Constructor for chaining block ciphers.
- Parameters
-
| [in] | base | Properties of the base cipher. |
| [in] | name | Chaining mode name. |
| [in] | residue | The chaining mode can process residue after the last multiple of the block size. |
| [in] | min_message | Minimum message size. Shorter data cannot be ciphered in this mode. |
| [in] | work_blocks | Temporary work buffer size in multiples of cipher block size. |
| [in] | min_iv | Minimum initialization vector size in bytes. |
| [in] | max_iv | Maximum initialization vector size in bytes. If zero, same as min_iv. |
◆ BlockCipherProperties() [3/3]
| ts::BlockCipherProperties::BlockCipherProperties |
( |
const BlockCipherProperties & |
base, |
|
|
const UChar * |
name, |
|
|
const void * |
fixed_iv, |
|
|
size_t |
fixed_iv_size |
|
) |
| |
Constructor which overrides a few fields.
- Parameters
-
| [in] | base | Properties of the base cipher. |
| [in] | name | If not null, override full algorithm name, including chaining name. |
| [in] | fixed_iv | If not null, point to a fixed IV for that algorithm. |
| [in] | fixed_iv_size | Size in bytes of the fixed IV. |
◆ assertCompatibleBase()
Assert the compatibility of the base block cipher with another set of properties.
- Parameters
-
| other | [in] Other properties to compare with. |
◆ assertCompatibleChaining()
Assert the compatibility of the chained block cipher with another set of properties.
- Parameters
-
| other | [in] Other properties to compare with. |
The documentation for this class was generated from the following file: