Lines Matching refs:crypto
1 /* eslint-disable node-core/crypto-check */
4 const crypto = require('crypto');
18 Buffer.concat([this.version, crypto.randomBytes(46)]);
21 this.client_random = crypto.randomBytes(32);
53 const encrypted_pre_primary_secret = crypto.publicEncrypt({
55 padding: crypto.constants.RSA_PKCS1_PADDING,
66 const shasum = crypto.createHash('sha256');
117 const nonce = crypto.randomBytes(8);
119 const bob = crypto.createCipheriv('aes-128-gcm', this.client_writeKey, iv);
154 let hmac = crypto.createHmac(algo, secret);
159 hmac = crypto.createHmac(algo, secret);
169 hmac = crypto.createHmac(algo, secret);