Home
last modified time | relevance | path

Searched refs:wkey (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddsl_crypt.c85 dsl_wrapping_key_hold(dsl_wrapping_key_t *wkey, const void *tag) in dsl_wrapping_key_hold() argument
87 (void) zfs_refcount_add(&wkey->wk_refcnt, tag); in dsl_wrapping_key_hold()
91 dsl_wrapping_key_rele(dsl_wrapping_key_t *wkey, const void *tag) in dsl_wrapping_key_rele() argument
93 (void) zfs_refcount_remove(&wkey->wk_refcnt, tag); in dsl_wrapping_key_rele()
97 dsl_wrapping_key_free(dsl_wrapping_key_t *wkey) in dsl_wrapping_key_free() argument
99 ASSERT0(zfs_refcount_count(&wkey->wk_refcnt)); in dsl_wrapping_key_free()
101 if (wkey->wk_key.ck_data) { in dsl_wrapping_key_free()
102 memset(wkey->wk_key.ck_data, 0, in dsl_wrapping_key_free()
103 CRYPTO_BITS2BYTES(wkey->wk_key.ck_length)); in dsl_wrapping_key_free()
104 kmem_free(wkey->wk_key.ck_data, in dsl_wrapping_key_free()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_crypt.h180 int spa_keystore_load_wkey_impl(spa_t *spa, dsl_wrapping_key_t *wkey);
214 uint64_t dsl_crypto_key_create_sync(uint64_t crypt, dsl_wrapping_key_t *wkey,
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_env.c868 unsigned char *wkey = NULL; in cms_RecipientInfo_kekri_encrypt() local
894 wkey = OPENSSL_malloc(ec->keylen + 8); in cms_RecipientInfo_kekri_encrypt()
895 if (wkey == NULL) in cms_RecipientInfo_kekri_encrypt()
906 || !EVP_EncryptUpdate(ctx, wkey, &wkeylen, ec->key, ec->keylen) in cms_RecipientInfo_kekri_encrypt()
907 || !EVP_EncryptFinal_ex(ctx, wkey + wkeylen, &outlen)) { in cms_RecipientInfo_kekri_encrypt()
917 ASN1_STRING_set0(kekri->encryptedKey, wkey, wkeylen); in cms_RecipientInfo_kekri_encrypt()
924 OPENSSL_free(wkey); in cms_RecipientInfo_kekri_encrypt()