Apache2
|
#include <apr_crypto.h>
Structure describing a key to be generated by the apr_crypto_key() function.
Implementations must use apr_crypto_key_rec_make() to allocate this structure.
apr_crypto_key_cmac_t apr_crypto_key_rec_t::cmac |
This is a key of arbitrary length used with a CMAC.
Key type: APR_CRYPTO_KTYPE_CMAC
apr_crypto_key_hash_t apr_crypto_key_rec_t::hash |
This represents a simple digest with no key.
Key type: APR_CRYPTO_KTYPE_HASH
apr_crypto_key_hmac_t apr_crypto_key_rec_t::hmac |
This is a key of arbitrary length used with an HMAC.
Key type: APR_CRYPTO_KTYPE_HMAC
union { ... } apr_crypto_key_rec_t::k |
Details of each key, based on the key type.
apr_crypto_key_type apr_crypto_key_rec_t::ktype |
The type of the key.
apr_crypto_block_key_mode_e apr_crypto_key_rec_t::mode |
The mode used with this crypto operation.
int apr_crypto_key_rec_t::pad |
Non zero if padding should be used with this crypto operation.
apr_crypto_passphrase_t apr_crypto_key_rec_t::passphrase |
This key is generated using a PBE algorithm from a given passphrase, and can be used to encrypt / decrypt.
Key type: APR_CRYPTO_KTYPE_PASSPHRASE
apr_crypto_secret_t apr_crypto_key_rec_t::secret |
This is a raw key matching the block size of the given cipher, and can be used to encrypt / decrypt.
Key type: APR_CRYPTO_KTYPE_SECRET
apr_crypto_block_key_type_e apr_crypto_key_rec_t::type |
The cipher used with this crypto operation.