Apache2
apr_crypto_key_rec_t Struct Reference

#include <apr_crypto.h>

Collaboration diagram for apr_crypto_key_rec_t:

Data Fields

apr_crypto_key_type ktype
 
apr_crypto_block_key_type_e type
 
apr_crypto_block_key_mode_e mode
 
int pad
 
union {
   apr_crypto_passphrase_t   passphrase
 
   apr_crypto_secret_t   secret
 
   apr_crypto_key_hash_t   hash
 
   apr_crypto_key_hmac_t   hmac
 
   apr_crypto_key_cmac_t   cmac
 
k
 

Detailed Description

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.

Field Documentation

◆ cmac

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

◆ hash

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

◆ hmac

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.

◆ ktype

apr_crypto_key_type apr_crypto_key_rec_t::ktype

The type of the key.

◆ mode

apr_crypto_block_key_mode_e apr_crypto_key_rec_t::mode

The mode used with this crypto operation.

◆ pad

int apr_crypto_key_rec_t::pad

Non zero if padding should be used with this crypto operation.

◆ passphrase

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

◆ secret

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

◆ type

apr_crypto_block_key_type_e apr_crypto_key_rec_t::type

The cipher used with this crypto operation.


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