libcoap 4.3.5-develop-72190a8
Loading...
Searching...
No Matches
coap_crypto_internal.h File Reference

COAP crypto internal information. More...

+ Include dependency graph for coap_crypto_internal.h:

Go to the source code of this file.

Data Structures

struct  coap_crypto_aes_ccm_t
 The structure that holds the AES Crypto information. More...
 
struct  coap_crypto_param_t
 The common structure that holds the Crypto information. More...
 

Macros

#define COAP_CRYPTO_MAX_KEY_SIZE   (32)
 
#define COAP_OSCORE_DEFAULT_REPLAY_WINDOW   32
 

Typedefs

typedef coap_bin_const_t coap_crypto_key_t
 The structure that holds the Crypto Key.
 
typedef struct coap_crypto_aes_ccm_t coap_crypto_aes_ccm_t
 The structure that holds the AES Crypto information.
 
typedef struct coap_crypto_param_t coap_crypto_param_t
 The common structure that holds the Crypto information.
 

Functions

int coap_crypto_check_cipher_alg (cose_alg_t alg)
 Check whether the defined cipher algorithm is supported by the underlying crypto library.
 
int coap_crypto_check_hkdf_alg (cose_hkdf_alg_t hkdf_alg)
 Check whether the defined hkdf algorithm is supported by the underlying crypto library.
 
int coap_crypto_aead_encrypt (const coap_crypto_param_t *params, coap_bin_const_t *data, coap_bin_const_t *aad, uint8_t *result, size_t *max_result_len)
 Encrypt the provided plaintext data.
 
int coap_crypto_aead_decrypt (const coap_crypto_param_t *params, coap_bin_const_t *data, coap_bin_const_t *aad, uint8_t *result, size_t *max_result_len)
 Decrypt the provided encrypted data into plaintext.
 
int coap_crypto_hmac (cose_hmac_alg_t hmac_alg, coap_bin_const_t *key, coap_bin_const_t *data, coap_bin_const_t **hmac)
 Create a HMAC hash of the provided data.
 
int coap_crypto_hash (cose_alg_t alg, const coap_bin_const_t *data, coap_bin_const_t **hash)
 Create a hash of the provided data.
 

Detailed Description

COAP crypto internal information.

Definition in file coap_crypto_internal.h.