Lines Matching refs:dtls_hmac_context_t
45 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()
94 dtls_hmac_init(dtls_hmac_context_t *ctx, const unsigned char *key, size_t klen) { in dtls_hmac_init()
99 memset(ctx, 0, sizeof(dtls_hmac_context_t)); in dtls_hmac_init()
121 dtls_hmac_free(dtls_hmac_context_t *ctx) { in dtls_hmac_free()
127 dtls_hmac_finalize(dtls_hmac_context_t *ctx, unsigned char *result) { in dtls_hmac_finalize()
151 dtls_hmac_context_t *ctx; in main()