age: reject leading zeroes and sign in scrypt work factor

This commit is contained in:
Filippo Valsorda
2022-06-19 17:28:39 +02:00
parent 2088adf268
commit 2e090545df
42 changed files with 456 additions and 11 deletions

9
testdata/testkit/scrypt_salt_missing vendored Normal file
View File

@@ -0,0 +1,9 @@
expect: header failure
file key: 59454c4c4f57205355424d4152494e45
passphrase: password
age-encryption.org/v1
-> scrypt 10
W0mMthyhNJOV3debCwkQcUlNx/i6Ss/A07aQCrG5Gcw
--- 1QsPcEbBSylfP4apakJqtDBJMrpd81rPuSLTCvdZx6E
¬]?7åPqÓ¦ F—¹ •Â÷õÛ®è zŒ(rŠóÎ|