Lines Matching defs:params
20 #include <openssl/params.h>
166 /* HMAC_Init_ex doesn't tolerate all zero params, so we must be careful */
174 size_t keylen, const OSSL_PARAM params[])
178 if (!ossl_prov_is_running() || !hmac_set_ctx_params(macctx, params))
255 static int hmac_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
260 if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_SIZE)) != NULL
264 if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_BLOCK_SIZE)) != NULL
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);
306 static int hmac_set_ctx_params(void *vmacctx, const OSSL_PARAM params[])
313 if (params == NULL)
316 if (!ossl_prov_digest_load_from_params(&macctx->digest, params, ctx))
319 if (!set_flag(params, OSSL_MAC_PARAM_DIGEST_NOINIT, EVP_MD_CTX_FLAG_NO_INIT,
322 if (!set_flag(params, OSSL_MAC_PARAM_DIGEST_ONESHOT, EVP_MD_CTX_FLAG_ONESHOT,
328 if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_KEY)) != NULL) {
335 if ((p = OSSL_PARAM_locate_const(params,