fix: lint

This commit is contained in:
Maciej Krüger 2019-10-23 13:04:55 +02:00 committed by Jacob Heun
parent 487cd076fb
commit 2c294b56ab
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ class RsaPublicKey {
}) })
} }
async encrypt (bytes) { encrypt (bytes) {
return crypto.encrypt(this._key, bytes) return crypto.encrypt(this._key, bytes)
} }
@ -68,7 +68,7 @@ class RsaPrivateKey {
return new RsaPublicKey(this._publicKey) return new RsaPublicKey(this._publicKey)
} }
async decrypt (bytes) { decrypt (bytes) {
return crypto.decrypt(this._key, bytes) return crypto.decrypt(this._key, bytes)
} }

View File

@ -69,10 +69,10 @@ exports.hashAndVerify = async function (key, sig, msg) { // eslint-disable-line
return verify.verify(pem, sig) return verify.verify(pem, sig)
} }
exports.encrypt = async function (key, bytes) { exports.encrypt = function (key, bytes) {
return crypto.publicEncrypt(jwkToPem(key), bytes) return crypto.publicEncrypt(jwkToPem(key), bytes)
} }
exports.decrypt = async function (key, bytes) { exports.decrypt = function (key, bytes) {
return crypto.privateDecrypt(jwkToPem(key), bytes) return crypto.privateDecrypt(jwkToPem(key), bytes)
} }