Searched refs:ecdh1 (Results 1 – 2 of 2) sorted by relevance
/third_party/node/test/parallel/ |
D | test-crypto-dh-curves.js | 34 const ecdh1 = crypto.createECDH('prime256v1'); constant 36 const key1 = ecdh1.generateKeys(); 38 const secret1 = ecdh1.computeSecret(key2, 'hex', 'base64'); 44 assert.strictEqual(ecdh1.getPublicKey('buffer', 'uncompressed')[0], 4); 45 let firstByte = ecdh1.getPublicKey('buffer', 'compressed')[0]; 47 firstByte = ecdh1.getPublicKey('buffer', 'hybrid')[0]; 52 () => ecdh1.getPublicKey('buffer', 10), 74 ecdh4.setPrivateKey(ecdh1.getPrivateKey()); 75 ecdh4.setPublicKey(ecdh1.getPublicKey());
|
D | test-crypto-ecdh-convert-key.js | 95 const ecdh1 = ECDH('secp256k1'); constant 96 ecdh1.generateKeys(); 97 ecdh1.setPrivateKey(cafebabeKey, 'hex'); 98 assert.strictEqual(ecdh1.getPublicKey('hex', 'uncompressed'), uncompressed); 99 assert.strictEqual(ecdh1.getPublicKey('hex', 'compressed'), compressed); 100 assert.strictEqual(ecdh1.getPublicKey('hex', 'hybrid'), hybrid);
|