Lines Matching refs:key

59  *	CRYPTO_INVALID_KEY: bogus 'key' argument.
72 * key: pointer to a crypto_key_t structure.
76 * MAC with the 'mech' using 'key'. 'tmpl' is created by
83 * 'mech', using * the key 'key', on the specified provider with
96 crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key,
107 rv = kcf_get_hardware_provider(mech->cm_type, key,
115 KCF_WRAP_MAC_OPS_PARAMS(&params, KCF_OP_ATOMIC, sid, mech, key,
130 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
143 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
154 * freeing this tmpl and create a new one for the key and new SW
176 error = KCF_PROV_MAC_ATOMIC(pd, pd->pd_sid, &lmech, key, data,
192 pd->pd_sid, mech, key, data, mac, spi_ctx_tmpl);
220 crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key,
231 rv = kcf_get_hardware_provider(mech->cm_type, key,
240 key, data, mac, tmpl);
254 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
267 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
278 * freeing this tmpl and create a new one for the key and new SW
300 error = KCF_PROV_MAC_VERIFY_ATOMIC(pd, pd->pd_sid, &lmech, key,
312 key, data, mac, spi_ctx_tmpl);
346 * key: pointer to a crypto_key_t structure.
348 * MAC with the 'mech' using 'key'. 'tmpl' is created by
372 crypto_mechanism_t *mech, crypto_key_t *key, crypto_spi_ctx_template_t tmpl,
384 rv = kcf_get_hardware_provider(mech->cm_type, key,
405 rv = KCF_PROV_MAC_INIT(real_provider, ctx, &lmech, key, tmpl,
409 KCF_WRAP_MAC_OPS_PARAMS(&params, KCF_OP_INIT, sid, mech, key,
434 crypto_mac_init(crypto_mechanism_t *mech, crypto_key_t *key,
447 if ((pd = kcf_get_mech_provider(mech->cm_type, key, &me, &error,
458 * freeing this tmpl and create a new one for the key and new SW
486 error = crypto_mac_init_prov(pd, pd->pd_sid, mech, key,