Fixes for SSH
This commit is contained in:
@@ -4,6 +4,7 @@ const bareCrypto = require('bare-crypto')
|
||||
const { Ber } = require('asn1')
|
||||
const { Buffer: Asn1Buffer } = require('safer-buffer')
|
||||
const { getCiphers, getHashes } = require('./lists.js')
|
||||
const { wrapSign, wrapVerify } = require('./pem-ed25519.js')
|
||||
|
||||
const nextTick =
|
||||
typeof queueMicrotask === 'function'
|
||||
@@ -155,5 +156,7 @@ module.exports = Object.assign({}, bareCrypto, {
|
||||
generateKeyPair,
|
||||
createPublicKey,
|
||||
diffieHellman,
|
||||
createECDH
|
||||
createECDH,
|
||||
sign: wrapSign(bareCrypto, bareCrypto.sign.bind(bareCrypto)),
|
||||
verify: wrapVerify(bareCrypto, bareCrypto.verify.bind(bareCrypto))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user