Lines Matching refs:keylen
58 size_t keylen; member
101 OPENSSL_secure_clear_free(macctx->key, macctx->keylen); in hmac_free()
131 dst->key = OPENSSL_secure_malloc(src->keylen > 0 ? src->keylen : 1); in hmac_dup()
136 memcpy(dst->key, src->key, src->keylen); in hmac_dup()
156 const unsigned char *key, size_t keylen) in hmac_setkey() argument
167 int approved = ossl_mac_check_key_size(keylen); in hmac_setkey()
181 OPENSSL_secure_clear_free(macctx->key, macctx->keylen); in hmac_setkey()
183 macctx->key = OPENSSL_secure_malloc(keylen > 0 ? keylen : 1); in hmac_setkey()
187 memcpy(macctx->key, key, keylen); in hmac_setkey()
188 macctx->keylen = keylen; in hmac_setkey()
193 return HMAC_Init_ex(macctx->ctx, key, keylen, digest, in hmac_setkey()
199 size_t keylen, const OSSL_PARAM params[]) in hmac_init() argument
207 return hmac_setkey(macctx, key, keylen); in hmac_init()
240 macctx->keylen, in hmac_update()