OpenDOF Project
Functions
DOFCipherRegistry
Distributed Object Framework (DOF)

The block cipher registry for the C OAL. More...

Functions

boolean DOFCipherRegistry_Register (DOFCipherAlgorithm algorithm, DOFCipherStrength strength, DOFBlockCipher cipher)
 Register a block cipher with the library.
 
DOFBlockCipher DOFCipherRegistry_Get (DOFCipherAlgorithm algorithm, DOFCipherStrength strength)
 Retrieve a block cipher implementation from the library's registry.
 

Detailed Description

The block cipher registry for the C OAL.

Required block cipher algorithms are usually compiled and pre-registered with the C OAL where available. For automatic pre-registration of a cipher, the cipher implementation file must contain a variable definition of the format:

const struct BlockCipher BlockCipher_<algorithm>_<strength_id>

Where <algorithm> is one of the DOFCipherAlgorithm identifiers without the DOFCIPHERALGORITHM_ prefix, and <strength_id> is one of the DOFCipherStrength identifiers without the DOFCIPHERSTRENGTH_ prefix. For example, to pre-register DOFCIPHERALGORITHM_AES with DOFCIPHERSTRENGTH_256, the following definition should exist:

const struct BlockCipher BlockCipher_AES_256 = { ... }

core-c-dof-oal Version 8.0.1 Build 0
2018-01-22