diff --git a/package-lock.json b/package-lock.json index ec26807e..125b1644 100644 --- a/package-lock.json +++ b/package-lock.json @@ -448,8 +448,8 @@ "dev": true }, "asmcrypto.js": { - "version": "github:openpgpjs/asmcrypto#475cffa5ccb2cf2556427056679414acf3610d1b", - "from": "github:openpgpjs/asmcrypto#475cffa5ccb2cf2556427056679414acf3610d1b", + "version": "github:openpgpjs/asmcrypto#5b994303a9d3e27e0915f72a10b6c2c51535a4dc", + "from": "github:openpgpjs/asmcrypto#5b994303a9d3e27e0915f72a10b6c2c51535a4dc", "dev": true }, "asn1.js": { diff --git a/package.json b/package.json index b9fec847..0b1926d4 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@rollup/plugin-commonjs": "^11.1.0", "@rollup/plugin-node-resolve": "^7.1.3", "@rollup/plugin-replace": "^2.3.2", - "asmcrypto.js": "github:openpgpjs/asmcrypto#475cffa5ccb2cf2556427056679414acf3610d1b", + "asmcrypto.js": "github:openpgpjs/asmcrypto#5b994303a9d3e27e0915f72a10b6c2c51535a4dc", "babel-eslint": "^10.1.0", "bn.js": "^4.11.8", "buffer": "^5.0.8", diff --git a/src/crypto/cfb.js b/src/crypto/cfb.js index 440a04b6..67a3289d 100644 --- a/src/crypto/cfb.js +++ b/src/crypto/cfb.js @@ -124,13 +124,13 @@ function aesEncrypt(algo, key, pt, iv) { } // asm.js fallback const cfb = new AES_CFB(key, iv); - return stream.transform(pt, value => cfb.AES_Encrypt_process(value), () => cfb.AES_Encrypt_finish()); + return stream.transform(pt, value => cfb.aes.AES_Encrypt_process(value), () => cfb.aes.AES_Encrypt_finish()); } function aesDecrypt(algo, key, ct, iv) { if (util.isStream(ct)) { const cfb = new AES_CFB(key, iv); - return stream.transform(ct, value => cfb.AES_Decrypt_process(value), () => cfb.AES_Decrypt_finish()); + return stream.transform(ct, value => cfb.aes.AES_Decrypt_process(value), () => cfb.aes.AES_Decrypt_finish()); } return AES_CFB.decrypt(ct, key, iv); }