Expand description
HCTR2 implements the HCTR2 length-preserving encryption algorithm.
HCTR2 is designed for situations where the length of the ciphertext must exactly match the length of the plaintext, like disk encryption.
This implementation uses a hardware-accelerated POLYVAL implementation when possible; the block cipher is left to the caller. The recommended block cipher is AES.
Structs
- Cipher is an instance of the HCTR2 cipher.
Constants
- BLOCK_SIZE is the size of the block allowed by this package.