You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where key is the plaintext (as a []byte) that we want to encrypt with the named keyName RSA public-key that is stored in azure key vault. And wrappedKey is the returned ciphertext that was encrypted with the RSA public-key.
I've tried to follow #94 but I'm still not seeing a way to implement this... maybe pkcs11.Ctx.WrapKey is not really equivalent to the Azure wrapKey function and what I really want to use is pkcs11.Ctx.Encrypt? if so, do you concur that the following is the way to implement this?
Is there a way to implement something like Azure Key Vault wrapKey function using this library?
Essentially, in azure key vault I create a RSA key-pair then invoke the
wrapKey
function alike:Where
key
is the plaintext (as a[]byte
) that we want to encrypt with the named keyName RSA public-key that is stored in azure key vault. AndwrappedKey
is the returned ciphertext that was encrypted with the RSA public-key.I've tried to follow #94 but I'm still not seeing a way to implement this... maybe
pkcs11.Ctx.WrapKey
is not really equivalent to the AzurewrapKey
function and what I really want to use ispkcs11.Ctx.Encrypt
? if so, do you concur that the following is the way to implement this?https://github.com/ThalesIgnite/crypto11/blob/3d83a0a5d480dbbc8a65be3a111e194b5275e58b/rsa_test.go#L204-L232
The text was updated successfully, but these errors were encountered: