mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 00:00:23 +00:00
rbd: fix bug in kmip kms Decrypt function
This commit fixes a bug in kmip kms Decrypt function, where emd.DEK was fed in a Nonce instead of emd.Nonce by mistake. Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
parent
96a3aabe5a
commit
eaa0e14cb2
@ -255,7 +255,7 @@ func (kms *kmipKMS) DecryptDEK(_, encryptedDEK string) (string, error) {
|
|||||||
DecryptRequestPayload{
|
DecryptRequestPayload{
|
||||||
UniqueIdentifier: kms.uniqueIdentifier,
|
UniqueIdentifier: kms.uniqueIdentifier,
|
||||||
Data: emd.DEK,
|
Data: emd.DEK,
|
||||||
IVCounterNonce: emd.DEK,
|
IVCounterNonce: emd.Nonce,
|
||||||
CryptographicParameters: kmip.CryptographicParameters{
|
CryptographicParameters: kmip.CryptographicParameters{
|
||||||
PaddingMethod: kmip14.PaddingMethodPKCS5,
|
PaddingMethod: kmip14.PaddingMethodPKCS5,
|
||||||
CryptographicAlgorithm: kmip14.CryptographicAlgorithmAES,
|
CryptographicAlgorithm: kmip14.CryptographicAlgorithmAES,
|
||||||
|
Loading…
Reference in New Issue
Block a user