age/testdata/testkit
Filippo Valsorda eaa4e03cfe tests: finish parsing and X25519 tests, distinguish HMAC errors
If the implementation re-encodes the header before checking the HMAC,
that would mask malleability issues: the HMAC check would fail because
the tests HMAC'd the original header, but an attacker could also produce
the right HMAC. Instead of duplicating every parsing tests (with the
original and re-encoded HMAC), we make the test framework distinguish
HMAC errors, which ensures bad encodings are recognized as such and not
bypassable HMAC errors.
2022-06-18 13:47:00 +02:00
..
header_crlf tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
hmac_bad tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
hmac_extra_space tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
hmac_garbage tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
hmac_missing tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
hmac_no_space tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
hmac_not_canonical tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
hmac_trailing_space tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
hmac_truncated tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
scrypt tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
scrypt_and_x25519 tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
scrypt_long_file_key tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
scrypt_no_match tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
scrypt_work_factor_23 tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stanza_bad_start tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_base64_padding tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_empty_argument tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_empty_body tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stanza_empty_last_line tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_invalid_character tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_long_line tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_missing_body tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stanza_missing_final_line tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stanza_multiple_short_lines tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stanza_no_arguments tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_not_canonical tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_spurious_cr tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
stanza_valid_characters tests: add X25519 low order point tests 2022-06-16 11:47:27 +02:00
stream_empty_payload tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stream_last_chunk_empty tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
stream_last_chunk_full tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
version_unsupported tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
x25519 tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
x25519_bad_tag tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
x25519_extra_argument tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
x25519_grease tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
x25519_identity tests: add X25519 low order point tests 2022-06-16 11:47:27 +02:00
x25519_long_file_key tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
x25519_long_share tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
x25519_low_order tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
x25519_lowercase tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00
x25519_multiple_recipients tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
x25519_no_match tests: add scrypt tests and move Go files from testdata 2022-06-15 20:38:59 +02:00
x25519_not_canonical_body tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
x25519_not_canonical_share tests: add more tests for hmac and X25519 encodings 2022-06-16 15:55:29 +02:00
x25519_short_share tests: finish parsing and X25519 tests, distinguish HMAC errors 2022-06-18 13:47:00 +02:00