<p>Could someone explain to me how the import of private key in HSM works? Below is the information from the manual:</p>
<blockquote>
<p>Private Key Import/Export</p>
<p>Private keys can be imported and exported
with existing PKCS#11 functions. They can be imported and exported
only if the HSM uses the key wrap model instead of cloning. Import a
key by calling <code>C_Encrypt*()</code> on the serialized key followed by
<code>C_UnwrapKey()</code>. Exporting keys by calling <code>C_WrapKey()</code> followed by <code>C_ Decrypt*()</code>. Use <code>C_WrapKey()</code> and <code>C_UnwrapKey()</code> to store keys off the
HSM, or to move them between HSMs.</p>
</blockquote>
<p>What key is used for the wrap?</p>

CC BY-SA 4.0
2020-10-05T13:38:02.083Z
I assume this is to do with Thales SafeNet Luna Hardware Security Module?
RedGrittyBrick
CC BY-SA 4.0
2020-10-06T07:12:01.260Z
yes , it is the SafeNet Luna HSM
MaXbeMan
<wallet><private-key><bip32-hd-wallets>
BIP 32 Private keys to be imported into HSM
MaXbeMan
# BIP 32 Private keys to be imported into HSM

(Asked by: username_0 on 2020-10-05)

Could someone explain to me how the import of private key in HSM works? Below is the information from the manual:

> Private Key Import/Export
>
> Private keys can be imported and exported
> with existing PKCS#11 functions. They can be imported and exported
> only if the HSM uses the key wrap model instead of cloning. Import a
> key by calling `C_Encrypt*()` on the serialized key followed by
> `C_UnwrapKey()`. Exporting keys by calling `C_WrapKey()` followed by `C_ Decrypt*()`. Use `C_WrapKey()` and `C_UnwrapKey()` to store keys off the
> HSM, or to move them between HSMs.

What key is used for the wrap?

**Tags:** wallet, private-key, bip32-hd-wallets

> **Comments:**
> **username_1**: I assume this is to do with Thales SafeNet Luna Hardware Security Module?  
> **username_0**: yes , it is the SafeNet Luna HSM  

---

## 0 answers

