Searched refs:hmac_p (Results 1 – 1 of 1) sorted by relevance
/net-tools-latest/tinydtls-0.8.2/ |
D | crypto.c | 189 dtls_hmac_context_t *hmac_a, *hmac_p; in dtls_p_hash() local 207 hmac_p = dtls_hmac_new(key, keylen); in dtls_p_hash() 208 if (!hmac_p) in dtls_p_hash() 214 dtls_hmac_init(hmac_p, key, keylen); in dtls_p_hash() 215 dtls_hmac_update(hmac_p, A, dlen); in dtls_p_hash() 217 HMAC_UPDATE_SEED(hmac_p, label, labellen); in dtls_p_hash() 218 HMAC_UPDATE_SEED(hmac_p, random1, random1len); in dtls_p_hash() 219 HMAC_UPDATE_SEED(hmac_p, random2, random2len); in dtls_p_hash() 221 len += dtls_hmac_finalize(hmac_p, tmp); in dtls_p_hash() 231 dtls_hmac_init(hmac_p, key, keylen); in dtls_p_hash() [all …]
|