[Cryptography] creating test vectors

Joachim Strömbergson joachim at strombergson.com
Tue Sep 1 05:44:44 EDT 2026


Typically you see:

- “abc”
- all zero, all ones
- every even, every odd bit set
- Known text snippets. Makes it easy to read when decrypted
- Test vectors that verify block boundaries, any padding schemes (like forcing one extra block in the case of SHA-256 for example.). Edge cases
- Test vectors that check specified requirements, limits, constraints
- Long runs - 1M blocks for block cipher, hash function

On 31 Aug 2026, at 10:55, Pierre Abbat wrote:
> I have some 96-byte
> keys which differ in the last byte, which will result in only a few bytes
> different in the ciphertext.

That sounds _very_ concerning.

/JS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <https://www.metzdowd.com/pipermail/cryptography/attachments/20260901/ccf04b93/attachment.sig>


More information about the cryptography mailing list