mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
fix incorrect HSM mechanisms (#16081)
This commit is contained in:
parent
70f19e2298
commit
f9532fed61
@ -257,11 +257,11 @@ as described below. In the below, the target key refers to the key being importe
|
||||
If the key is being imported from an HSM that supports PKCS#11, there are
|
||||
two possible scenarios:
|
||||
|
||||
- If the HSM supports the CKM_AES_KEY_WRAP_KWP mechanism, that can be used to wrap the
|
||||
- If the HSM supports the CKM_RSA_AES_KEY_WRAP mechanism, that can be used to wrap the
|
||||
target key using the wrapping key.
|
||||
|
||||
- Otherwise, two mechanisms can be combined to wrap the target key. First, an AES key should
|
||||
be generated and then used to wrap the target key using the CKM_AES_KEY_WRAP_PAD mechanism.
|
||||
be generated and then used to wrap the target key using the CKM_AES_KEY_WRAP_KWP mechanism.
|
||||
Then the AES key should be wrapped under the wrapping key using the CKM_RSA_PKCS_OAEP mechanism
|
||||
using MGF1 and either SHA-1, SHA-224, SHA-256, SHA-384, or SHA-512.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user