Searched refs:toBuf (Results 1 – 4 of 4) sorted by relevance
/third_party/node/lib/ |
D | _tls_common.js | 49 let toBuf = null; variable 254 if (!toBuf) 255 toBuf = require('internal/crypto/util').toBuf; 260 const buf = toBuf(raw); 263 c.context.loadPKCS12(buf, toBuf(passphrase)); 269 const buf = toBuf(options.pfx); 272 c.context.loadPKCS12(buf, toBuf(passphrase));
|
/third_party/node/lib/internal/crypto/ |
D | diffiehellman.js | 26 toBuf 76 sizeOrKey = toBuf(sizeOrKey, keyEncoding); 83 generator = toBuf(generator, genEncoding); 133 const ret = this[kHandle].computeSecret(toBuf(key, inEnc)); 186 this[kHandle].setPublicKey(toBuf(key, encoding)); 193 this[kHandle].setPrivateKey(toBuf(key, encoding)); 239 const convertedKey = _ECDHConvertKey(toBuf(key, inEnc), curve, f);
|
D | util.js | 50 function toBuf(val, encoding) { function 102 toBuf field
|
D | hash.js | 16 toBuf 113 this[kHandle].init(hmac, toBuf(key));
|