Message authentication codes

Ttmac

Two-Track-MAC: a NESSIE-era MAC with 20-byte keys and tags, archived as unverified

unverified Root API only
Unverified tier.

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–2003
  1. Two-Track-MAC published by Van Rompay et al.

  2. European NESSIE project opens its call for primitives

    NESSIE project
  3. NESSIE portfolio published

    NESSIE project

How it works

  1. The key is used to set up both computation tracks.
  2. Message blocks are processed through the two tracks in parallel.
  3. 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

Legacy MAC researchComparison of NESSIE-era MACsNot recommended for new deployments

Sizes

FieldBytesMeaning
key20Secret key
tag20Authentication 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)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).