Ttmac
Two-Track-MAC: a NESSIE-era MAC with 20-byte keys and tags, archived as unverified
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Ttmac
Ttmac is a message authentication code from the Two-Track-MAC (TTMAC) family. It uses a 20-byte (160-bit) key and a 20-byte (160-bit) authentication tag. Its registry entry cites Two-Track-MAC (Van Rompay et al.; NESSIE), Crypto++ implementation. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Two-Track-MAC (TTMAC) is a message authentication code proposed by Van Rompay and co-authors for the NESSIE project. NextSSL carries it with 20-byte keys and 20-byte tags, tiered unverified.
TTMAC, as its name says, runs two computation tracks over the message and combines their results into the tag. The registry records only its key size, tag size and reference source, not the full track design. A MAC shows that a message came from someone holding the key and was not changed, but it does not hide the message. Keys should come from a cryptographically secure random source and never be reused across unrelated purposes.
NextSSL archives the variant with a 20-byte key and a 20-byte tag, as listed in the registry. The implementation is cited to Crypto++ in the source data. NextSSL keeps this entry for research and interoperability tests, and the registry does not record a review of its design. For new systems, HMAC with SHA-2 or a standard AEAD is the recommended approach.
NESSIE was a European project that evaluated primitives in the early 2000s, and TTMAC was one of its submissions. The archive is unverified, so use HMAC or CMAC for new work. A MAC shows that a message came from someone holding the key and was not changed, but it does not hide the message. Keys should come from a cryptographically secure random source and never be reused across unrelated purposes.
History
2000–2003Two-Track-MAC published by Van Rompay et al.
European NESSIE project opens its call for primitives
NESSIE projectNESSIE portfolio published
NESSIE project
How it works
- The key is used to set up both computation tracks.
- Message blocks are processed through the two tracks in parallel.
- The two track outputs are combined into a 20-byte tag.
Security notes
NextSSL records no review for TTMAC, so no security claim is made. Prefer HMAC-SHA-2 or CMAC for new systems.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 20 | Secret key |
| tag | 20 | Authentication tag |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
key = root.random(20)
tag = root.call("mac", "ttmac", None, key, b"message", 0)[0]
ok = root.check("mac_verify", "ttmac", None, key, b"message", tag)
nextssl_root_mac("ttmac", NULL, key, data, 0, tag);
nextssl_root_mac_verify("ttmac", NULL, key, data, tag);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_mac_in(reg::all(), Policy::Any, "ttmac", &Params::new())?;
let tag = alg.tag(&key, b"message")?;
let ok = alg.verify(&key, b"message", &tag)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More message authentication codes
All 30Frequently asked questions
What is Ttmac?
Ttmac is a MAC in the Two-Track-MAC (TTMAC) family. Two-Track-MAC (TTMAC) is a message authentication code proposed by Van Rompay and co-authors for the NESSIE project.
What are the Ttmac sizes?
In NextSSL, Ttmac uses: key 20 bytes, tag 20 bytes.
Who designed Ttmac and when?
Ttmac belongs to the Two-Track-MAC (TTMAC) family, first published in 2000 by Van Rompay et al.. Its origin: NESSIE submission.
Which standards define Ttmac?
Ttmac is referenced by Two-Track-MAC (Van Rompay et al.; NESSIE), Crypto++ implementation.
Is Ttmac safe to use?
Ttmac is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
NIST SP 800-90A deterministic random bit generator built on HMAC
CMACThe block-cipher MAC standardised by NIST in SP 800-38B, usually instantiated with AES
HMACThe standard way to build a MAC from a cryptographic hash (RFC 2104, FIPS 198-1)
KMACNIST's Keccak-based MAC from SP 800-185, with optional arbitrary-length output
Pelican MACPelican MAC: an AES-based message authentication code with a 16-byte tag, unverified in NextSSL
Poly1305Bernstein's fast one-time authenticator, paired with ChaCha20 in RFC 8439