Searched refs:hmac_a (Results 1 – 1 of 1) sorted by relevance
/net-tools-3.7.0/tinydtls-0.8.2/ |
D | crypto.c | 189 dtls_hmac_context_t *hmac_a, *hmac_p; in dtls_p_hash() local 196 hmac_a = dtls_hmac_new(key, keylen); in dtls_p_hash() 197 if (!hmac_a) in dtls_p_hash() 201 HMAC_UPDATE_SEED(hmac_a, label, labellen); in dtls_p_hash() 202 HMAC_UPDATE_SEED(hmac_a, random1, random1len); in dtls_p_hash() 203 HMAC_UPDATE_SEED(hmac_a, random2, random2len); in dtls_p_hash() 205 dlen = dtls_hmac_finalize(hmac_a, A); in dtls_p_hash() 226 dtls_hmac_init(hmac_a, key, keylen); in dtls_p_hash() 227 dtls_hmac_update(hmac_a, A, dlen); in dtls_p_hash() 228 dtls_hmac_finalize(hmac_a, A); in dtls_p_hash() [all …]
|