General block cipher description

This allows us to implement block cipher modes which can work with different block ciphers.

Macros

CF_MAXBLOCK

The maximum block cipher blocksize we support, in bytes.

Types

cf_prp_block

Block processing function type.

The in and out blocks may alias.

Return type:

void

Parameters:
  • ctx – block cipher-specific context object.
  • in – input block.
  • out – output block.
cf_prp

Describes an PRP in a general way.

cf_prp.blocksz

Block size in bytes. Must be no more than CF_MAXBLOCK.

cf_prp.encrypt

Block encryption function.

cf_prp.decrypt

Block decryption function.