Skip to content

Commit

Permalink
Lower Argon2 memory parameter in S2K test vector (#178)
Browse files Browse the repository at this point in the history
Change the memory exponent parameter in the Argon2 S2K test vector from
22 to 16, to reduce the memory requirement, which caused failures on
32-bit platforms.
  • Loading branch information
lubux committed Jul 10, 2023
1 parent 7e9e039 commit e01326f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpgp/s2k/s2k_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ var parseTests = []struct {
{"03020102030405060708f1", "hello", "f2a57b7c", false,
Params{IteratedSaltedS2K, 0x02, [16]byte{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, 0xf1, 0, 0, 0}},
/* Argon2 */
{"0401020304050607080102030405060708030416", "hello", "c7745927", false,
Params{Argon2S2K, 0x00, [16]byte{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08}, 0, 0x03, 0x04, 0x16}},
{"0401020304050607080102030405060708030410", "hello", "dabc018a", false,
Params{Argon2S2K, 0x00, [16]byte{0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08}, 0, 0x03, 0x04, 0x10}},
/* GNU dummy S2K */
{"6502474e5501", "", "", true,
Params{GnuS2K, 0x02, [16]byte{}, 0, 0, 0, 0}},
Expand Down

0 comments on commit e01326f

Please sign in to comment.