microsoft/MSR-JavaScript-Crypto

Imported keys have algorithm name that is lower case

seebees opened this issue · 3 comments

Looking here:

actualParam.name = actualParam.name.toLowerCase();

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.

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.

Thanks much!

Normalized the algorithm identifier names to upper case (e.g. "RSA-OAEP"). These names appear on the algorithm property of CryptoKey objects.