Skip to content

Commit 3c9c1fa

Browse files
committed
Merge branch '1744-v4-skesk-argon2' into 'main'
#1744 Fix v4 skesk argon2 test vectors See merge request root/bc-java!23
2 parents e76d843 + 36f25c2 commit 3c9c1fa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pg/src/test/java/org/bouncycastle/openpgp/test/Argon2S2KTest.java

+11-11
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Argon2S2KTest
3737

3838
static final String TEST_MSG_PASSWORD = "password";
3939

40-
// Test message from the crypto-refresh-05 document
40+
// https://www.rfc-editor.org/rfc/rfc9580.html#name-v4-skesk-using-argon2-with-
4141
static final String TEST_MSG_AES128 = "-----BEGIN PGP MESSAGE-----\n" +
4242
"Comment: Encrypted using AES with 128-bit key\n" +
4343
"Comment: Session key: 01FE16BBACFD1E7B78EF3B865187374F\n" +
@@ -48,7 +48,7 @@ public class Argon2S2KTest
4848
"=uIks\n" +
4949
"-----END PGP MESSAGE-----";
5050

51-
// Test message from the crypto-refresh-05 document
51+
// https://www.rfc-editor.org/rfc/rfc9580.html#name-v4-skesk-using-argon2-with-a
5252
private static final String TEST_MSG_AES192 = "-----BEGIN PGP MESSAGE-----\n" +
5353
"Comment: Encrypted using AES with 192-bit key\n" +
5454
"Comment: Session key: 27006DAE68E509022CE45A14E569E91001C2955AF8DFE194\n" +
@@ -59,16 +59,16 @@ public class Argon2S2KTest
5959
"=n8Ma\n" +
6060
"-----END PGP MESSAGE-----";
6161

62-
// Test message from the crypto-refresh-05 document
62+
// https://www.rfc-editor.org/rfc/rfc9580.html#name-v4-skesk-using-argon2-with-ae
6363
private static final String TEST_MSG_AES256 = "-----BEGIN PGP MESSAGE-----\n" +
64-
"Comment: Encrypted using AES with 192-bit key\n" +
65-
"Comment: Session key: 27006DAE68E509022CE45A14E569E91001C2955AF8DFE194\n" +
66-
"\n" +
67-
"wy8ECAThTKxHFTRZGKli3KNH4UP4AQQVhzLJ2va3FG8/pmpIPd/H/mdoVS5VBLLw\n" +
68-
"F9I+AdJ1Sw56PRYiKZjCvHg+2bnq02s33AJJoyBexBI4QKATFRkyez2gldJldRys\n" +
69-
"LVg77Mwwfgl2n/d572WciAM=\n" +
70-
"=n8Ma\n" +
71-
"-----END PGP MESSAGE-----";
64+
"Comment: Encrypted using AES with 256-bit key\n" +
65+
"Comment: Session key: BBEDA55B9AAE63DAC45D4F49D89DACF4AF37FEF...\n" +
66+
"Comment: Session key: ...C13BAB2F1F8E18FB74580D8B0\n" +
67+
"\n" +
68+
"wzcECQS4eJUgIG/3mcaILEJFpmJ8AQQVnZ9l7KtagdClm9UaQ/Z6M/5roklSGpGu\n" +
69+
"623YmaXezGj80j4B+Ku1sgTdJo87X1Wrup7l0wJypZls21Uwd67m9koF60eefH/K\n" +
70+
"95D1usliXOEm8ayQJQmZrjf6K6v9PWwqMQ==\n" +
71+
"-----END PGP MESSAGE-----";
7272

7373
static final String TEST_MSG_PLAIN = "Hello, world!";
7474

0 commit comments

Comments
 (0)