Lines Matching refs:params

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