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 Bug 1849037 - Add ErrorResult to TypedArray::Create. r=necko-reviewers,extension-reviewers,media-playback-reviewers,webidl,profiler-reviewers,farre,padenot,smaug,robwu,jesup,aabh 2023-11-11 08:24:05 +00:00
CryptoBuffer.h Bug 1849037 - Add ErrorResult to TypedArray::Create. r=necko-reviewers,extension-reviewers,media-playback-reviewers,webidl,profiler-reviewers,farre,padenot,smaug,robwu,jesup,aabh 2023-11-11 08:24:05 +00:00
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 Bug 1804788 - WebCrypto: Enable X25519 algorithm r=keeler,jschanck 2024-07-25 17:39:09 +00:00
KeyAlgorithmProxy.cpp Bug 1804788 - WebCrypto: Enable X25519 algorithm r=keeler,jschanck 2024-07-25 17:39:09 +00:00
KeyAlgorithmProxy.h Bug 1804788 - WebCrypto: Enable X25519 algorithm r=keeler,jschanck 2024-07-25 17:39:09 +00:00
moz.build Bug 1855295 convert .ini manifests to .toml: batch 8 dom/[a-l]**/mochitest.ini r=jmaher,jgilbert,extension-reviewers,credential-management-reviewers,robwu,sgalich 2023-10-02 17:18:28 +00:00
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 Bug 1793429 - Make the deriveBits's length argument Nullable r=keeler,webidl,smaug 2024-08-07 09:17:48 +00:00