Skip to content

tkn20 Ciphertext Format (v1.3.8)

Armando Faz edited this page Apr 24, 2024 · 3 revisions

The format of ciphertexts produced with the tkn20 package (as of v1.3.8) has changed.

Specifically, three internal elements are length-prefixed encoding using now 32-bit prefixes (instead of 16-bit prefixes). Also, ciphertexts now include a header with the ASCII string 'v1.3.8' to differentiate from the previous format and ensure backwards compatibility. Thus, ciphertexts generated with v1.3.7 (or any previous version) are still decryptable (i.e., parseable). However, reencrypting a plaintext will change the ciphertext to the new format.

Issue: https://github.com/cloudflare/circl/issues/484

Changes: https://github.com/cloudflare/circl/pull/490