Skip to content

Commit

Permalink
Test (temp, canary version only): guard against including sha3 in gen…
Browse files Browse the repository at this point in the history
…erated key prefs

OpenPGP.js v5 does not support sha3, so we should not include it in the key prefs
until the full v6 integration in the webapps and mobile.
  • Loading branch information
larabr committed Dec 11, 2023
1 parent 74193e7 commit 53fde95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/key/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ T/efFOC6BDkAAHcjAPwIPNHnR9bKmkVop6cE05dCIpZ/W8zXDGnjKYrrC4Hb
expect(selfCertification.preferredSymmetricAlgorithms).to.include(enums.symmetric.aes256);
expect(selfCertification.preferredHashAlgorithms).to.include(enums.hash.sha256);
expect(selfCertification.preferredCompressionAlgorithms).to.include(enums.compression.zlib);
// v6 canary: temporarily guard against sha3 being in the preferences, as it's not supported by OpenPGP.js v5
expect(selfCertification.preferredHashAlgorithms).to.not.include(12); // sha3_256
expect(selfCertification.preferredHashAlgorithms).to.not.include(14); // sha3_512
});

it('reformatKey - it reformats a key using the key creation time', async () => {
Expand Down

0 comments on commit 53fde95

Please sign in to comment.