Home
last modified time | relevance | path

Searched refs:klen (Results 1 – 2 of 2) sorted by relevance

/net-tools-3.4.0/tinydtls-0.8.2/
Dhmac.c83 dtls_hmac_new(const unsigned char *key, size_t klen) { in dtls_hmac_new() argument
88 dtls_hmac_init(ctx, key, klen); in dtls_hmac_new()
94 dtls_hmac_init(dtls_hmac_context_t *ctx, const unsigned char *key, size_t klen) { in dtls_hmac_init() argument
101 if (klen > DTLS_HMAC_BLOCKSIZE) { in dtls_hmac_init()
103 dtls_hash_update(&ctx->data, key, klen); in dtls_hmac_init()
106 memcpy(ctx->pad, key, klen); in dtls_hmac_init()
Dhmac.h107 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);