github.com/ericlagergren/hctr2 (go): Package 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.
Keywords: hctr2|length-preserving-encryption