Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mkg20001 authored and jacobheun committed Oct 25, 2019
1 parent 487cd07 commit 2c294b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/keys/rsa-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class RsaPublicKey {
})
}

async encrypt (bytes) {
encrypt (bytes) {
return crypto.encrypt(this._key, bytes)
}

Expand Down Expand Up @@ -68,7 +68,7 @@ class RsaPrivateKey {
return new RsaPublicKey(this._publicKey)
}

async decrypt (bytes) {
decrypt (bytes) {
return crypto.decrypt(this._key, bytes)
}

Expand Down
4 changes: 2 additions & 2 deletions src/keys/rsa.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ exports.hashAndVerify = async function (key, sig, msg) { // eslint-disable-line
return verify.verify(pem, sig)
}

exports.encrypt = async function (key, bytes) {
exports.encrypt = function (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)
}

0 comments on commit 2c294b5

Please sign in to comment.