-
Notifications
You must be signed in to change notification settings - Fork 59
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
Bug 27506 - Inconsistent error for AES-CTR's "get key length" operation #45
Comments
@jimsch wrote:
I believe we are using DataError for the cases where encoded key import data (raw, ASN.1 or JWK) is in error and we are using OperationError for anything where the directly supplied parameters are in error. Get key length is used by So, I think OperationError is correct. |
I can live with this |
PR #112 |
The PR looks good to me. |
Bug 27506:
AES-CTR throws a DataError in its "get key length" operation if the length is not one of {128, 192, 256}.
Whereas the other AES algorithms throw an OperationError in this case.
I suggest using OperationError for AES-CTR to match the others.
The text was updated successfully, but these errors were encountered: