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

BIN
testdata/testkit/scrypt_bad_tag vendored Normal file

Binary file not shown.

BIN
testdata/testkit/scrypt_extra_argument vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
testdata/testkit/scrypt_salt_long vendored Normal file

Binary file not shown.

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ŠóÎ|

BIN
testdata/testkit/scrypt_salt_short vendored Normal file

Binary file not shown.

BIN
testdata/testkit/scrypt_uppercase vendored Normal file

Binary file not shown.

BIN
testdata/testkit/scrypt_work_factor_hex vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
testdata/testkit/scrypt_work_factor_zero vendored Normal file

Binary file not shown.