48#ifndef _OSCORE_CRYPTO_H
49#define _OSCORE_CRYPTO_H
59#define HKDF_INFO_MAXLEN 25
60#define HKDF_OUTPUT_MAXLEN 25
64#define AEAD_PLAINTEXT_MAXLEN COAP_MAX_CHUNK_SIZE
65#define AEAD_TAG_MAXLEN COAP_MAX_CHUNK_SIZE
Pulls together all the internal only header files.
int oscore_hkdf_expand(cose_hkdf_alg_t hkdf_alg, coap_bin_const_t *prk, uint8_t *info, size_t info_len, uint8_t *okm, size_t okm_len)
Derive the key using HKDF-Expand() function.
int oscore_hkdf(cose_hkdf_alg_t hkdf_alg, coap_bin_const_t *salt, coap_bin_const_t *ikm, uint8_t *info, size_t info_len, uint8_t *okm, size_t okm_len)
Derive the key using HKDF() function.
int oscore_hmac_hash(cose_hmac_alg_t hmac_alg, coap_bin_const_t *key, coap_bin_const_t *data, coap_bin_const_t **hmac)
Derive the hmac hash using HMAC-HASH() function.
int oscore_hkdf_extract(cose_hkdf_alg_t hkdf_alg, coap_bin_const_t *salt, coap_bin_const_t *ikm, coap_bin_const_t **hkdf_extract)
Derive the pseudorandom key using HKDF-Extract() function.
CoAP binary data definition with const data.