Home
last modified time | relevance | path

Searched refs:key_material (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dhkdf.c27 hkdf_sha512_extract(uint8_t *salt, uint_t salt_len, uint8_t *key_material, in hkdf_sha512_extract() argument
36 crypto_mac(&key, key_material, km_len, out_buf, SHA512_DIGEST_LENGTH); in hkdf_sha512_extract()
83 hkdf_sha512(uint8_t *key_material, uint_t km_len, uint8_t *salt, in hkdf_sha512() argument
90 ret = hkdf_sha512_extract(salt, salt_len, key_material, km_len, in hkdf_sha512()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dhkdf.c26 hkdf_sha512_extract(uint8_t *salt, uint_t salt_len, uint8_t *key_material, in hkdf_sha512_extract() argument
47 input_cd.cd_raw.iov_base = (char *)key_material; in hkdf_sha512_extract()
152 hkdf_sha512(uint8_t *key_material, uint_t km_len, uint8_t *salt, in hkdf_sha512() argument
159 ret = hkdf_sha512_extract(salt, salt_len, key_material, km_len, in hkdf_sha512()
/freebsd/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_crypto.c781 uint8_t *key_material, uint64_t salt, in derive_key() argument
793 memcpy(key, key_material, WRAPPING_KEY_LEN); in derive_key()
796 ret = hex_key_to_raw((char *)key_material, in derive_key()
807 ret = PKCS5_PBKDF2_HMAC_SHA1((char *)key_material, in derive_key()
808 strlen((char *)key_material), ((uint8_t *)&salt), in derive_key()
861 uint8_t *key_material = NULL; in populate_create_encryption_params_nvlists() local
868 fsname, &key_material, &key_material_len, NULL); in populate_create_encryption_params_nvlists()
923 ret = derive_key(hdl, keyformat, iters, key_material, salt, &key_data); in populate_create_encryption_params_nvlists()
927 free(key_material); in populate_create_encryption_params_nvlists()
934 if (key_material != NULL) in populate_create_encryption_params_nvlists()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Dhkdf.h26 int hkdf_sha512(uint8_t *key_material, uint_t km_len, uint8_t *salt,
/freebsd/contrib/wpa/src/tls/
H A Dtlsv1_common.h230 size_t key_material; member
H A Dtlsv1_record.c59 rl->key_material_len = data->key_material; in tlsv1_record_set_cipher_suite()
/freebsd/sys/contrib/openzfs/cmd/zdb/
H A Dzdb.c3606 static char *key_material = NULL; variable
3623 if (!isxdigit(key_material[i]) || in zdb_derive_key()
3624 !isxdigit(key_material[i+1])) in zdb_derive_key()
3626 if (sscanf(&key_material[i], "%02hhx", &c) != 1) in zdb_derive_key()
3640 if (PKCS5_PBKDF2_HMAC_SHA1(key_material, strlen(key_material), in zdb_derive_key()
3648 if ((f = fopen(key_material, "r")) == NULL) in zdb_derive_key()
10057 key_material = strdup(optarg); in main()