gecko-dev/dom/crypto
Javier Fernández García-Boente a1b3133968 Bug 1924951 - Import OKP keys in "raw" format fails when passing the algorithm as string r=nkulatova
The ImportOKPKeyTask::Init is using the Coerce() function to
determine the operation's parameters based on the algorithm,
which the IDL defines it as an ObjectorString type. However,
the Coerce() function expects the algorithm to be an object,
otherwise it fails with a Syntax Error.

The importKey operation for OKP keys just requires a simple
object {name: AlgorithmId} to build the KeyAlgorithm used as
input parameter. We could just use the GetAlgorithmName function,
already prepared to deal with either Objects or Strings, and
avoid calling to Coerce.

Differential Revision: https://phabricator.services.mozilla.com/D225786
2024-11-08 10:59:29 +00:00
..
test Bug 1919532 - WebCrypto operations to throw SyntaxError exception on invalid usages/Update publicKey usage for ECDH to empty set r=jfernandez,keeler 2024-10-17 07:33:55 +00:00
CryptoBuffer.cpp
CryptoBuffer.h
CryptoKey.cpp Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang 2024-10-28 08:21:19 +00:00
CryptoKey.h
KeyAlgorithmProxy.cpp
KeyAlgorithmProxy.h
moz.build
WebCryptoCommon.h Bug 1922838 - Replace ArrayLength, ArrayEnd and MOZ_ARRAY_LENGTH by standard alternative r=glandium,necko-reviewers,jgilbert,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,anti-tracking-reviewers,places-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,bytesized,janv,dimi,daisuke,karlt,gstoll,canaltinova,timhuang 2024-10-28 08:21:19 +00:00
WebCryptoTask.cpp Bug 1924951 - Import OKP keys in "raw" format fails when passing the algorithm as string r=nkulatova 2024-11-08 10:59:29 +00:00
WebCryptoTask.h