Lines Matching refs:format
245 ECDH.prototype.generateKeys = function generateKeys(encoding, format) {
248 return this.getPublicKey(encoding, format);
251 ECDH.prototype.getPublicKey = function getPublicKey(encoding, format) {
252 const f = getFormat(format);
258 ECDH.convertKey = function convertKey(key, curve, inEnc, outEnc, format) {
263 const f = getFormat(format);
274 function getFormat(format) {
275 if (format) {
276 if (format === 'compressed')
278 if (format === 'hybrid')
280 if (format !== 'uncompressed')
281 throw new ERR_CRYPTO_ECDH_INVALID_FORMAT(format);