Commit Graph

3 Commits

Author SHA1 Message Date
larabr
870e383a38 Add config.maxArgon2MemoryExponent for argon2 memory limit
This limit is applied both on encryption (if `config.s2kType` is set to `enums.s2k.argon2`)
and decryption.
If the input memory exponent exceeds this value, the library will not attempt the argon2 key
derivation and instead directly throw an `Argon2OutOfMemoryError` error.
2025-12-09 15:08:08 +01:00
Daniel Huigens
6ab6b9c842 Tests: use native web streams when TransformStream is available (#1934)
Only load the web streams ponyfill when necessary (e.g. Safari <14.5 and Mobile Safari <14.1)
2025-12-05 13:59:08 +01:00
larabr
ae4ed1fbf3 Tests: explicitly share openpgp instance used in tests
Also, init config before any code is run in tests
2023-10-25 12:53:10 +02:00