Home
last modified time | relevance | path

Searched refs:dtls_hmac_context_t (Results 1 – 5 of 5) sorted by relevance

/net-tools-latest/tinydtls-0.8.2/
Dhmac.c45 static inline dtls_hmac_context_t *
47 return (dtls_hmac_context_t *)malloc(sizeof(dtls_hmac_context_t)); in dtls_hmac_context_new()
51 dtls_hmac_context_free(dtls_hmac_context_t *ctx) { in dtls_hmac_context_free()
57 MEMB(hmac_context_storage, dtls_hmac_context_t, DTLS_HASH_MAX);
59 static inline dtls_hmac_context_t *
61 return (dtls_hmac_context_t *)memb_alloc(&hmac_context_storage); in dtls_hmac_context_new()
65 dtls_hmac_context_free(dtls_hmac_context_t *ctx) { in dtls_hmac_context_free()
76 dtls_hmac_update(dtls_hmac_context_t *ctx, in dtls_hmac_update()
82 dtls_hmac_context_t *
84 dtls_hmac_context_t *ctx; in dtls_hmac_new()
[all …]
Dhmac.h98 } dtls_hmac_context_t; typedef
107 void dtls_hmac_init(dtls_hmac_context_t *ctx, const unsigned char *key, size_t klen);
119 dtls_hmac_context_t *dtls_hmac_new(const unsigned char *key, size_t klen);
127 void dtls_hmac_free(dtls_hmac_context_t *ctx);
136 void dtls_hmac_update(dtls_hmac_context_t *ctx,
150 int dtls_hmac_finalize(dtls_hmac_context_t *ctx, unsigned char *result);
Dcrypto.c189 dtls_hmac_context_t *hmac_a, *hmac_p; in dtls_p_hash()
266 dtls_mac(dtls_hmac_context_t *hmac_ctx, in dtls_mac()
Dcrypto.h239 void dtls_mac(dtls_hmac_context_t *hmac_ctx,
Ddtls.c309 dtls_hmac_context_t hmac_context; in dtls_create_cookie()