Lines Matching defs:params
12 #include <openssl/params.h>
38 BLAKE2_PARAM params;
51 BLAKE2_PARAM_INIT(&macctx->params);
87 return macctx->params.digest_length;
101 BLAKE2_PARAM_SET_KEY_LENGTH(&macctx->params, (uint8_t)keylen);
106 size_t keylen, const OSSL_PARAM params[])
110 if (!ossl_prov_is_running() || !blake2_mac_set_ctx_params(macctx, params))
115 } else if (macctx->params.key_length == 0) {
120 return BLAKE2_INIT_KEY(&macctx->ctx, &macctx->params, macctx->key);
158 static int blake2_get_ctx_params(void *vmacctx, OSSL_PARAM params[])
162 if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_SIZE)) != NULL
166 if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_BLOCK_SIZE)) != NULL
189 static int blake2_mac_set_ctx_params(void *vmacctx, const OSSL_PARAM params[])
194 if (params == NULL)
197 if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_SIZE)) != NULL) {
206 BLAKE2_PARAM_SET_DIGEST_LENGTH(&macctx->params, (uint8_t)size);
209 if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_KEY)) != NULL
213 if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_CUSTOM))
223 BLAKE2_PARAM_SET_PERSONAL(&macctx->params, p->data, p->data_size);
226 if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_SALT)) != NULL) {
235 BLAKE2_PARAM_SET_SALT(&macctx->params, p->data, p->data_size);