Searched defs:klen (Results 1 - 2 of 2) sorted by relevance

/dovecot/src/lib-dcrypt/
H A Ddcrypt-gnutls.c36 size_t klen; member in struct:dcrypt_context_hmac
H A Ddcrypt-openssl.c120 size_t klen; member in struct:dcrypt_context_hmac
460 ctx->klen = I_MIN(key_len, HMAC_MAX_MD_CBLOCK);
461 ctx->key = p_malloc(ctx->pool, ctx->klen);
462 memcpy(ctx->key, key, ctx->klen);
468 buffer_append(key, ctx->key, ctx->klen);
474 ctx->klen = HMAC_MAX_MD_CBLOCK;
475 ctx->key = p_malloc(ctx->pool, ctx->klen);
476 random_fill(ctx->key, ctx->klen);
494 ec = HMAC_Init_ex(ctx->ctx, ctx->key, ctx->klen, ctx->md, NULL);

Completed in 17 milliseconds