-
Notifications
You must be signed in to change notification settings - Fork 5k
[KeyVault] Update Keys with service version 7.6 #50510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
API Change CheckAPIView identified API level changes in this PR and created the following API reviews |
/// <summary> | ||
/// Gets a 256-bit CKM AES Key Wrap <see cref="KeyWrapAlgorithm"/>. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// <summary> | |
/// Gets a 256-bit CKM AES Key Wrap <see cref="KeyWrapAlgorithm"/>. | |
/// <summary> | |
/// Gets a 256-bit CKM AES Key Wrap <see cref="KeyWrapAlgorithm"/>. |
public static readonly AesKw CkmAesKeyWrap = new AesKw("CKM_AES_KEY_WRAP", 192); | ||
public static readonly AesKw CkmAesKeyWrapPad = new AesKw("CKM_AES_KEY_WRAP_PAD", 256, PaddingMode.PKCS7); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these fixed sizes? MHSM supports 128-bit symmetric keys and, to my knowledge, so do these algorithms. And how does PKCS7 padding work here? RFC 5649 describes a different padding method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the ones withouth paddings, I missed the other 2 possible values here: 128 and 256; Adding them.
Regarding the padding, yeah this is incorrect, I should not be using PKCS7. I got confused when I added these properties into the EncryptionAlgorithms class.
This PR addresses the comments on this API VIEW by moving the
CkmAesKeyWrap
algorithm toKeyWrapAlgorithm
.Additionally, this PR replaces preview version
7.6-preview.2
with7.6
.