View Source Cloak.Ciphers.Deprecated.AES.GCM (cloak v1.1.4)

DEPRECATED version of the Cloak.Ciphers.AES.GCM cipher, for use in migrating existing data to the new format used by Cloak.Ciphers.AES.GCM.

Rationale

The old Cloak.AES.GCM cipher used the following format for ciphertext:

+---------------------------------------------------------+----------------------+
|                         HEADER                          |         BODY         |
+----------------------+------------------+---------------+----------------------+
| Module Tag (n bytes) | Key Tag (1 byte) | IV (16 bytes) | Ciphertext (n bytes) |
+----------------------+------------------+---------------+----------------------+

The new Cloak.Ciphers.AES.GCM implementation no longer prepends the "Module Tag" component, and uses a new format as described in its docs. This cipher can assist in upgrading old ciphertext to the new format.

See the Upgrading from 0.6.x guide for usage.