• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/

Lines Matching defs:mech

226 	crypto_mechanism_t mech;
272 mech.cm_type = crypto_mech2id(zio_crypt_table[crypt].ci_mechname);
273 ret = crypto_create_ctx_template(&mech, &key->zk_current_key,
278 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC);
279 ret = crypto_create_ctx_template(&mech, &key->zk_hmac_key,
301 crypto_mechanism_t mech;
327 ret = crypto_create_ctx_template(&mech, &key->zk_current_key,
385 crypto_mechanism_t mech;
401 mech.cm_type = crypto_mech2id(crypt_info.ci_mechname);
426 mech.cm_param = (char *)(&ccmp);
427 mech.cm_param_len = sizeof (CK_AES_CCM_PARAMS);
436 mech.cm_param = (char *)(&gcmp);
437 mech.cm_param_len = sizeof (CK_AES_GCM_PARAMS);
455 ret = crypto_encrypt(&mech, &plaindata, key, tmpl, &cipherdata,
462 ret = crypto_decrypt(&mech, &cipherdata, key, tmpl, &plaindata,
552 crypto_mechanism_t mech;
629 mech.cm_type = crypto_mech2id(zio_crypt_table[crypt].ci_mechname);
630 ret = crypto_create_ctx_template(&mech, &key->zk_current_key,
635 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC);
636 ret = crypto_create_ctx_template(&mech, &key->zk_hmac_key,
675 crypto_mechanism_t mech;
682 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC);
683 mech.cm_param = NULL;
684 mech.cm_param_len = 0;
700 ret = crypto_mac(&mech, &in_data, &key->zk_hmac_key, key->zk_hmac_tmpl,
1127 crypto_mechanism_t mech;
1137 mech.cm_type = crypto_mech2id(SUN_CKM_SHA512_HMAC);
1138 mech.cm_param = NULL;
1139 mech.cm_param_len = 0;
1145 ret = crypto_mac_init(&mech, &key->zk_hmac_key, NULL, &ctx, NULL);
1217 ret = crypto_mac_init(&mech, &key->zk_hmac_key, NULL, &ctx, NULL);