libcoap 4.3.5-develop-19cef11
oscore_crypto.c File Reference

An implementation of the Hash Based Key Derivation Function (RFC) and wrappers for AES-CCM*. More...

#include "coap3/coap_libcoap_build.h"
#include <string.h>
#include <stdio.h>
+ Include dependency graph for oscore_crypto.c:

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

An implementation of the Hash Based Key Derivation Function (RFC) and wrappers for AES-CCM*.

Author
Martin Gunnarsson marti.nosp@m.n.gu.nosp@m.nnars.nosp@m.son@.nosp@m.ri.se extended for libcoap Peter van der Stok consu.nosp@m.ltan.nosp@m.cy@va.nosp@m.nder.nosp@m.stok..nosp@m.org on request of Fairhair alliance adapted for libcoap integration Jon Shallow supjp.nosp@m.s-li.nosp@m.bcoap.nosp@m.@jps.nosp@m.hallo.nosp@m.w.co.nosp@m.m

Definition in file oscore_crypto.c.