Lines Matching full:mac
22 EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac) in EVP_MAC_CTX_new() argument
27 || (ctx->algctx = mac->newctx(ossl_provider_ctx(mac->prov))) == NULL in EVP_MAC_CTX_new()
28 || !EVP_MAC_up_ref(mac)) { in EVP_MAC_CTX_new()
31 mac->freectx(ctx->algctx); in EVP_MAC_CTX_new()
35 ctx->meth = mac; in EVP_MAC_CTX_new()
102 * If the MAC hasn't been initialized yet, or there is no size to get, in get_size_t_ctx_param()
191 int EVP_MAC_get_params(EVP_MAC *mac, OSSL_PARAM params[]) in EVP_MAC_get_params() argument
193 if (mac->get_params != NULL) in EVP_MAC_get_params()
194 return mac->get_params(params); in EVP_MAC_get_params()
212 int evp_mac_get_number(const EVP_MAC *mac) in evp_mac_get_number() argument
214 return mac->name_id; in evp_mac_get_number()
217 const char *EVP_MAC_get0_name(const EVP_MAC *mac) in EVP_MAC_get0_name() argument
219 return mac->type_name; in EVP_MAC_get0_name()
222 const char *EVP_MAC_get0_description(const EVP_MAC *mac) in EVP_MAC_get0_description() argument
224 return mac->description; in EVP_MAC_get0_description()
227 int EVP_MAC_is_a(const EVP_MAC *mac, const char *name) in EVP_MAC_is_a() argument
229 return mac != NULL && evp_is_a(mac->prov, mac->name_id, NULL, name); in EVP_MAC_is_a()
232 int EVP_MAC_names_do_all(const EVP_MAC *mac, in EVP_MAC_names_do_all() argument
236 if (mac->prov != NULL) in EVP_MAC_names_do_all()
237 return evp_names_do_all(mac->prov, mac->name_id, fn, data); in EVP_MAC_names_do_all()
249 EVP_MAC *mac = EVP_MAC_fetch(libctx, name, propq); in EVP_Q_mac() local
257 if (mac == NULL) in EVP_Q_mac()
260 const OSSL_PARAM *defined_params = EVP_MAC_settable_ctx_params(mac); in EVP_Q_mac()
265 * We don't know which it is, but we can ask the MAC what it in EVP_Q_mac()
281 if ((ctx = EVP_MAC_CTX_new(mac)) != NULL in EVP_Q_mac()
301 EVP_MAC_free(mac); in EVP_Q_mac()