Lines Matching defs:key
52 unsigned char *key;
97 OPENSSL_secure_clear_free(macctx->key, macctx->keylen);
117 dst->key = NULL;
125 if (src->key != NULL) {
127 dst->key = OPENSSL_secure_malloc(src->keylen > 0 ? src->keylen : 1);
128 if (dst->key == NULL) {
132 memcpy(dst->key, src->key, src->keylen);
152 const unsigned char *key, size_t keylen)
156 if (macctx->key != NULL)
157 OPENSSL_secure_clear_free(macctx->key, macctx->keylen);
158 /* Keep a copy of the key in case we need it for TLS HMAC */
159 macctx->key = OPENSSL_secure_malloc(keylen > 0 ? keylen : 1);
160 if (macctx->key == NULL)
162 memcpy(macctx->key, key, keylen);
167 if (key != NULL || (macctx->tls_data_size == 0 && digest != NULL))
168 return HMAC_Init_ex(macctx->ctx, key, keylen, digest,
173 static int hmac_init(void *vmacctx, const unsigned char *key,
181 if (key != NULL)
182 return hmac_setkey(macctx, key, keylen);
214 macctx->key,
286 static int set_flag(const OSSL_PARAM params[], const char *key, int mask,
289 const OSSL_PARAM *p = OSSL_PARAM_locate_const(params, key);