Imported keys have algorithm name that is lower case
seebees opened this issue · 3 comments
seebees commented
Looking here:
the algorithm name is normalized to lower case.
But looking here: https://www.w3.org/TR/WebCryptoAPI/#dfn-supportedAlgorithms
All the algorithm names are upper case.
It would be nice if the imported key algorithm name matched the value specification name.
ljoy913 commented
That's a hold over from when IE11 was the only browser supporting the Web Crypto API. For whatever reason they used all lower-case on their key properties. We were emulating that behavior as a polyfill.
I'll update those labels to be upper case. Thanks.
seebees commented
Thanks much!
ljoy913 commented
Normalized the algorithm identifier names to upper case (e.g. "RSA-OAEP"). These names appear on the algorithm property of CryptoKey objects.