/third_party/node/test/fixtures/wpt/WebCryptoAPI/derive_bits_keys/ |
D | ecdh_bits.js | 37 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 …]
|
D | ecdh_keys.js | 37 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/ |
D | test-webcrypto-export-import-ec.js | 102 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 …]
|
D | test-webcrypto-derivekey-ecdh.js | 14 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
|
D | test-webcrypto-derivebits-ecdh.js | 14 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
|
D | test-webcrypto-sign-verify-ecdsa.js | 15 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
|
D | test-webcrypto-keygen.js | 115 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
|
D | test-crypto-keygen.js | 505 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 …]
|
D | test-webcrypto-derivebits.js | 17 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
|
D | test-webcrypto-derivekey.js | 17 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
|
D | test-webcrypto-export-import.js | 223 namedCurve: 'P-384' property 251 namedCurve: 'P-384' property 255 namedCurve: 'P-384' property 259 namedCurve: 'P-384' property 263 namedCurve: 'P-384' property
|
D | test-crypto-dh-stateless.js | 216 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
|
D | test-crypto-key-objects.js | 422 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 …]
|
D | test-crypto-psychic-signatures.js | 36 namedCurve: 'P-256', property 86 { name: 'ECDSA', namedCurve: 'P-256' }, property
|
D | test-webcrypto-sign-verify-rsa.js | 54 namedCurve: 'P-521', property 158 namedCurve: 'P-521', property
|
D | test-webcrypto-sign-verify-eddsa.js | 60 namedCurve: 'P-256' property 167 namedCurve: 'P-256' property
|
D | test-webcrypto-wrap-unwrap.js | 101 namedCurve: 'P-384' property 110 namedCurve: 'P-384' property
|
/third_party/node/lib/internal/crypto/ |
D | ec.js | 70 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 …]
|
D | keygen.js | 269 const { namedCurve } = options; 270 validateString(namedCurve, 'options.namedCurve'); 281 namedCurve,
|
D | diffiehellman.js | 346 key.algorithm.namedCurve !== baseKey.algorithm.namedCurve 353 key.algorithm.name === 'ECDH' ? baseKey.algorithm.namedCurve : baseKey.algorithm.name,
|
/third_party/node/test/fixtures/crypto/ |
D | ecdsa.js | 98 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/ |
D | WebCryptoAPI.idl | 169 required NamedCurve namedCurve; 173 required NamedCurve namedCurve; 177 required NamedCurve namedCurve;
|
/third_party/node/test/fixtures/wpt/WebCryptoAPI/generateKey/ |
D | failures.js | 102 results.push({name: algorithmName, namedCurve: curveName}); property 153 {name: "EC", namedCurve: "P521"} property
|
/third_party/node/test/fixtures/wpt/WebCryptoAPI/sign_verify/ |
D | ecdsa.js | 457 …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/ |
D | crypto.js | 28 namedCurve: P256_CURVE, property
|