New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openpgp in 4.0 not working #16187
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
@jano-m it's not clear to me which version of |
The latest version of openpgp: 4.3.0 |
I suspect this is the same root cause as #16195 (i.e., that we switched from OpenSSL to BoringSSL). That's a somewhat weird error though. Can you include an example of a pubkey that causes the issue? the code as pasted isn't a complete repro. |
electron-quick-start.zip |
This error comes from here: https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/streams/TransformStream.js?q=%5C.countUse&sq=package:chromium&l=69&dr=C&rcl=5a1cef8a88bd2c27675f736c1a403ddda6c5c72d. Even just |
|
I've got this error in 4.0.1: Definitively a bug with BoringSSL. Node.js v8.12.0 and electron v3.0.4 work as expected. |
@datenstau can you tell what cipher it's trying to create? boringssl doesn't support every cipher that openssl does, but it does have the major ones. However, it doesn't support every alias for a cipher that openssl supports. It's quite possible that boringssl already supports the cipher you're trying to use, just under a different name. |
@nornagon openpgp is trying to use aes-256-cfb in this case. |
great, in that case it should be resolved by #16573. |
node_modules/.bin/electron --version
: v4.0.0node_modules/.bin/electron --version
on last known working Electron version (if applicable): 3.1.0-beta.4Expected Behavior
const openpgp = require('openpgp')
async function readKey() {
let armored = await openpgp.key.readArmored(pubkey);
console.log(armored);
publicKeys = armored.keys;
}
readKey();
should print '{keys: [Object]}'
Actual behavior
It will print
instead. Note that countUse does not occur anywhere in openpgp package. It must come from Electron 4.0
The text was updated successfully, but these errors were encountered: