KangarooTwelve is a fast, secure cryptographic hash function that uses tree-hashing on top of TurboSHAKE. It is built on the Keccak permutation, the same primitive underlying SHA-3, which has undergone over 15 years of intensive cryptanalysis since the SHA-3 competition (2008-2012) and remains secure.
KT256 provides 256-bit security strength and achieves NIST post-quantum security level 2 when using at least 256-bit outputs. Like KT128, it uses Keccak-p[1600,12] with 12 rounds, offering a deliberate trade-off between conservative margin and significantly better performance while maintaining strong practical security.
Use KT256 when you need extra conservative margins. For most applications, KT128 offers better performance with adequate security.
pub const KT256 = KTHash(KT256Variant, turboShake256MultiSliceToBuffer)
pub const KT256 = KTHash(KT256Variant, turboShake256MultiSliceToBuffer)