Home
last modified time | relevance | path

Searched refs:namedCurve (Results 1 – 25 of 44) sorted by relevance

12

/third_party/node/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/
Decdh_bits.js37 Object.keys(sizes).forEach(function(namedCurve) { argument
40 …e.deriveBits({name: "ECDH", public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[na…
42 … assert_true(equalBuffers(derivation, derivations[namedCurve]), "Derived correct bits");
46 }, namedCurve + " good parameters");
50 …e.deriveBits({name: "EcDh", public: publicKeys[namedCurve]}, privateKeys[namedCurve], 8 * sizes[na…
52 … assert_true(equalBuffers(derivation, derivations[namedCurve]), "Derived correct bits");
56 }, namedCurve + " mixed case parameters");
60 …eturn subtle.deriveBits({name: "ECDH", public: publicKeys[namedCurve]}, privateKeys[namedCurve], n…
62 … assert_true(equalBuffers(derivation, derivations[namedCurve]), "Derived correct bits");
66 }, namedCurve + " with null length");
[all …]
Decdh_keys.js37 Object.keys(sizes).forEach(function(namedCurve) { argument
40 …return subtle.deriveKey({name: "ECDH", public: publicKeys[namedCurve]}, privateKeys[namedCurve], {…
43 …assert_true(equalBuffers(exportedKey, derivations[namedCurve], 8 * exportedKey.length), "Derived c…
47 }, namedCurve + " good parameters");
51 …return subtle.deriveKey({name: "EcDh", public: publicKeys[namedCurve]}, privateKeys[namedCurve], {…
54 …assert_true(equalBuffers(exportedKey, derivations[namedCurve], 8 * exportedKey.length), "Derived c…
58 }, namedCurve + " mixed case parameters");
63 …return subtle.deriveKey({name: "ECDH"}, privateKeys[namedCurve], {name: "HMAC", hash: "SHA-256", l…
70 }, namedCurve + " missing public curve");
74 …eKey({name: "ECDH", public: {message: "Not a CryptoKey"}}, privateKeys[namedCurve], {name: "HMAC",…
[all …]
/third_party/node/test/parallel/
Dtest-webcrypto-export-import-ec.js102 async function testImportSpki({ name, publicUsages }, namedCurve, extractable) { argument
105 keyData[namedCurve].spki,
106 { name, namedCurve }, field
113 assert.deepStrictEqual(key.algorithm.namedCurve, namedCurve);
120 keyData[namedCurve].spki.toString('hex'));
132 keyData[namedCurve].spki,
133 { name, namedCurve }, field
141 namedCurve, argument
145 keyData[namedCurve].pkcs8,
146 { name, namedCurve }, field
[all …]
Dtest-webcrypto-derivekey-ecdh.js14 namedCurve: 'P-521', property
31 namedCurve: 'P-384', property
49 kTests.map(async ({ namedCurve, size, pkcs8, spki, result }) => { property
59 namedCurve field
68 namedCurve field
73 keys[namedCurve] = {
91 Object.keys(keys).map(async (namedCurve) => {
92 const { result, privateKey, publicKey } = keys[namedCurve];
165 namedCurve: 'P-521' property
188 namedCurve: 'P-521' property
Dtest-webcrypto-derivebits-ecdh.js14 namedCurve: 'P-521', property
34 namedCurve: 'P-384', property
54 kTests.map(async ({ namedCurve, size, pkcs8, spki, result }) => { property
64 namedCurve field
73 namedCurve field
78 keys[namedCurve] = {
92 Object.keys(keys).map(async (namedCurve) => {
93 const { size, result, privateKey, publicKey } = keys[namedCurve];
203 namedCurve: 'P-521' property
221 namedCurve: 'P-521' property
Dtest-webcrypto-sign-verify-ecdsa.js15 namedCurve, property
31 { name, namedCurve }, field
37 { name, namedCurve }, field
43 { name, namedCurve }, field
145 namedCurve, property
160 { name, namedCurve }, field
166 { name, namedCurve }, field
Dtest-webcrypto-keygen.js115 algorithm: { namedCurve: 'P-521' }, property
123 algorithm: { namedCurve: 'P-521' }, property
192 namedCurve: 'P521' property
415 namedCurve,
425 namedCurve field
443 assert.strictEqual(publicKey.algorithm.namedCurve, namedCurve);
444 assert.strictEqual(privateKey.algorithm.namedCurve, namedCurve);
447 [1, true, {}, [], null].forEach(async (namedCurve) => {
449 subtle.generateKey({ name, namedCurve }, true, privateUsages), { field
454 subtle.generateKey({ name, namedCurve: undefined }, true, privateUsages), { property
Dtest-crypto-keygen.js505 namedCurve: 'prime256v1', property
527 namedCurve: 'prime256v1', property
548 namedCurve: 'prime256v1', property
582 namedCurve: 'prime256v1', property
619 namedCurve: 'P-256', property
657 namedCurve: 'P-256', property
706 namedCurve: curve, property
784 namedCurve: 'P-256', property
816 namedCurve: 'secp224r1', property
1301 namedCurve: 'abcdef', property
[all …]
Dtest-webcrypto-derivebits.js17 async function test(namedCurve) { argument
19 subtle.generateKey({ name: 'ECDH', namedCurve }, true, ['deriveBits']), field
20 subtle.generateKey({ name: 'ECDH', namedCurve }, true, ['deriveBits']), field
25 name: 'ECDH', namedCurve, public: alice.publicKey property
28 name: 'ECDH', namedCurve, public: bob.publicKey property
Dtest-webcrypto-derivekey.js17 async function test(namedCurve) { argument
19 subtle.generateKey({ name: 'ECDH', namedCurve }, true, ['deriveKey']), field
20 subtle.generateKey({ name: 'ECDH', namedCurve }, true, ['deriveKey']), field
25 name: 'ECDH', namedCurve, public: alice.publicKey property
31 name: 'ECDH', namedCurve, public: bob.publicKey property
135 …const keyPair = await subtle.generateKey({ name: 'ECDH', namedCurve: 'P-521' }, false, ['deriveKey… property
Dtest-webcrypto-export-import.js223 namedCurve: 'P-384' property
251 namedCurve: 'P-384' property
255 namedCurve: 'P-384' property
259 namedCurve: 'P-384' property
263 namedCurve: 'P-384' property
Dtest-crypto-dh-stateless.js216 test(crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' }), property
217 crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' })); property
221 test(crypto.generateKeyPairSync('ec', { namedCurve: 'secp256k1' }), property
222 crypto.generateKeyPairSync('ec', { namedCurve: not256k1 })); property
Dtest-crypto-key-objects.js422 namedCurve: 'prime256v1',
433 namedCurve: 'secp256k1',
444 namedCurve: 'secp384r1',
455 namedCurve: 'secp521r1',
467 const { keyType, namedCurve } = info;
473 assert.deepStrictEqual(key.asymmetricKeyDetails, { namedCurve }); field
485 assert.deepStrictEqual(key.asymmetricKeyDetails, { namedCurve }); field
499 assert.deepStrictEqual(key.asymmetricKeyDetails, { namedCurve }); field
802 const namedCurve = getCurves().find((curve) => !supported.includes(curve)); constant
803 assert(namedCurve);
[all …]
Dtest-crypto-psychic-signatures.js36 namedCurve: 'P-256', property
86 { name: 'ECDSA', namedCurve: 'P-256' }, property
Dtest-webcrypto-sign-verify-rsa.js54 namedCurve: 'P-521', property
158 namedCurve: 'P-521', property
Dtest-webcrypto-sign-verify-eddsa.js60 namedCurve: 'P-256' property
167 namedCurve: 'P-256' property
Dtest-webcrypto-wrap-unwrap.js101 namedCurve: 'P-384' property
110 namedCurve: 'P-384' property
/third_party/node/lib/internal/crypto/
Dec.js70 function createECPublicKeyRaw(namedCurve, keyData) { argument
73 if (!handle.initECRaw(kNamedCurveAliases[namedCurve], keyData)) {
81 const { name, namedCurve } = algorithm;
83 if (!ArrayPrototypeIncludes(ObjectKeys(kNamedCurveAliases), namedCurve)) {
107 const keypair = await generateKeyPair('ec', { namedCurve }).catch((err) => { field
126 const keyAlgorithm = { name, namedCurve }; field
159 const { name, namedCurve } = algorithm;
161 if (!ArrayPrototypeIncludes(ObjectKeys(kNamedCurveAliases), namedCurve)) {
203 if (keyData.crv !== namedCurve)
236 if (algNamedCurve !== namedCurve)
[all …]
Dkeygen.js269 const { namedCurve } = options;
270 validateString(namedCurve, 'options.namedCurve');
281 namedCurve,
Ddiffiehellman.js346 key.algorithm.namedCurve !== baseKey.algorithm.namedCurve
353 key.algorithm.name === 'ECDH' ? baseKey.algorithm.namedCurve : baseKey.algorithm.name,
/third_party/node/test/fixtures/crypto/
Decdsa.js98 curves.forEach((namedCurve) => {
101 publicKeyBuffer: spki[namedCurve],
102 privateKeyBuffer: pkcs8[namedCurve],
104 namedCurve, property
107 signature: signatures[namedCurve][hash]
/third_party/node/test/fixtures/wpt/interfaces/
DWebCryptoAPI.idl169 required NamedCurve namedCurve;
173 required NamedCurve namedCurve;
177 required NamedCurve namedCurve;
/third_party/node/test/fixtures/wpt/WebCryptoAPI/generateKey/
Dfailures.js102 results.push({name: algorithmName, namedCurve: curveName}); property
153 {name: "EC", namedCurve: "P521"} property
/third_party/node/test/fixtures/wpt/WebCryptoAPI/sign_verify/
Decdsa.js457 …yFormat, vector.publicKeyBuffer, {name: vector.algorithmName, namedCurve: vector.namedCurve}, fals… property
469 …Format, vector.privateKeyBuffer, {name: vector.algorithmName, namedCurve: vector.namedCurve}, fals… property
/third_party/node/deps/npm/node_modules/sigstore/dist/util/
Dcrypto.js28 namedCurve: P256_CURVE, property

12