ProtonMail / go-crypto

Fork of go/x/crypto, providing an up-to-date OpenPGP implementation
https://pkg.go.dev/github.com/ProtonMail/go-crypto
BSD 3-Clause "New" or "Revised" License
328 stars 99 forks source link

Lower Argon2 memory parameter in S2K test vector #178

Closed lubux closed 1 year ago

lubux commented 1 year ago

Fix #177, which reported that the s2k TestParseIntoParams test fails on 32-bit platforms. The issue is that the argon2 memory exponent parameter in the test case causes the argon2 implementation to fail on 32-bit platforms on slice creation.

This pull request changes the memory exponent parameter in the argon2 s2k test vector from 22 to 16, thus, reducing the memory requirement for the test case.