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.c83 dsl_wrapping_key_hold(dsl_wrapping_key_t *wkey, const void *tag) in dsl_wrapping_key_hold() argument
85 (void) zfs_refcount_add(&wkey->wk_refcnt, tag); in dsl_wrapping_key_hold()
89 dsl_wrapping_key_rele(dsl_wrapping_key_t *wkey, const void *tag) in dsl_wrapping_key_rele() argument
91 (void) zfs_refcount_remove(&wkey->wk_refcnt, tag); in dsl_wrapping_key_rele()
95 dsl_wrapping_key_free(dsl_wrapping_key_t *wkey) in dsl_wrapping_key_free() argument
97 ASSERT0(zfs_refcount_count(&wkey->wk_refcnt)); in dsl_wrapping_key_free()
99 if (wkey->wk_key.ck_data) { in dsl_wrapping_key_free()
100 memset(wkey->wk_key.ck_data, 0, in dsl_wrapping_key_free()
101 CRYPTO_BITS2BYTES(wkey->wk_key.ck_length)); in dsl_wrapping_key_free()
102 kmem_free(wkey->wk_key.ck_data, in dsl_wrapping_key_free()
[all …]
/freebsd/sys/contrib/openzfs/include/sys/
H A Ddsl_crypt.h179 int spa_keystore_load_wkey_impl(spa_t *spa, dsl_wrapping_key_t *wkey);
212 uint64_t dsl_crypto_key_create_sync(uint64_t crypt, dsl_wrapping_key_t *wkey,
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_env.c842 unsigned char *wkey = NULL; in cms_RecipientInfo_kekri_encrypt() local
868 wkey = OPENSSL_malloc(ec->keylen + 8); in cms_RecipientInfo_kekri_encrypt()
869 if (wkey == NULL) { in cms_RecipientInfo_kekri_encrypt()
882 || !EVP_EncryptUpdate(ctx, wkey, &wkeylen, ec->key, ec->keylen) in cms_RecipientInfo_kekri_encrypt()
883 || !EVP_EncryptFinal_ex(ctx, wkey + wkeylen, &outlen)) { in cms_RecipientInfo_kekri_encrypt()
893 ASN1_STRING_set0(kekri->encryptedKey, wkey, wkeylen); in cms_RecipientInfo_kekri_encrypt()
900 OPENSSL_free(wkey); in cms_RecipientInfo_kekri_encrypt()