Closed ioanmo226 closed 1 day ago
For reference, I updated somePubKey because it was missing key flags required by the PR mentioned below.
The current key throws an error when calling getEncryptionKey
or a similar method.
Error: Could not find valid encryption key packet in key 0d5688ebf3102be7: None of the key flags is set: consider passing
config.allowMissingKeyFlags
@sosnovsky FYI currently fixing failed tests and it's going well.
But for decrypt - wrong message - checksum throws error
test, Ascii armor integrity check failed
error was expected.
But after upgrading to openpgp v6, content is now displayed.
I think current behavior is correct?
Let me know your thought.
const expectedContent = 'Ascii armor integrity check failed';
await BrowserRecipe.pgpBlockVerifyDecryptedContent(
t,
browser,
threadId,
{
content: [expectedContent],
error: 'decrypt error',
},
authHdr
);
Seems like current behavior is incorrect, as openpgpjs
should throw error when encrypted message contains wrong checksum. I found old Tom's issue in openpgpjs
repository - https://github.com/openpgpjs/openpgpjs/issues/924.
If in the v6 changing message checksum doesn't cause error, then can you please fill an issue for openpgpjs
as it can be an unexpected behavior.
You are correct, @sosnovsky Thank you. Just filled an issue for it
@sosnovsky The OpenPGP team replied, confirming that the current v6 behavior is correct. RFC 4880 states that implementations MUST NOT reject an OpenPGP object if the CRC24 footer is present, missing, malformed, or disagrees with the computed CRC24 sum.
Should we update the current test to display the correct result and avoid throwing an error?
https://github.com/openpgpjs/openpgpjs/issues/1810#issuecomment-2490780175
Got it, then let's stick with the newest spec and update test to expect decrypted message text.
By the way, is there any possibility to find if message has incorrect checksum? Then we at least be able to show some warning about checksum issue
Yeah, I think it's possible. First extract checksum from the message and then compute CRC24 and validate checksum.
Maybe need to make another issue and consider this feature in there?
Sounds good 👍 Yes, let's file another issue for it
This PR upgraded puppeteer to v6
close #5861 // if this PR closes an issue
Tests (delete all except exactly one):
To be filled by reviewers
I have reviewed that this PR... (tick whichever items you personally focused on during this review):