Authenticated encryption

Hs1sivlov2

Misuse-resistant SIV mode built from ChaCha and an NH-based hash

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 Hs1sivlov2

Hs1sivlov2 is an authenticated encryption (AEAD) scheme from the HS1-SIV family. It uses a 16-byte (128-bit) key, a 12-byte nonce and an 8-byte (64-bit) authentication tag. 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

HS1-SIV is a deterministic, nonce-misuse-resistant authenticated cipher that combines the HS1 universal hash with ChaCha in an SIV construction. It was a CAESAR round 2 candidate.

HS1 is a fast polynomial hash built on NH, the same inner-product hash used in UMAC and VMAC, followed by polynomial and inner-product stages. HS1-SIV hashes the associated data and plaintext into a synthetic IV, derives the tag from it with ChaCha, and then uses that tag as the nonce input for ChaCha encryption.

The specification defines three security levels that run the hash with one, two or four parallel lanes. NextSSL includes the version 2 hi and lo levels; the me (medium) level is not present.

History

2013–2019
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. HS1-SIV published by Ted Krovetz

  3. 57 first-round candidates published

    CAESAR competition
  4. Second round announced

    CAESAR competition
  5. Third round announced

    CAESAR competition
  6. Finalists announced

    CAESAR competition
  7. Final portfolio: Ascon, ACORN, AEGIS-128, Deoxys-II, COLM and OCB

    CAESAR competition

Security notes

Nonce reuse reveals only message equality. The lo level offers a reduced authenticity bound in exchange for speed and suits only settings where that is acceptable.

Typical uses

Misuse-resistant encryption on CPUs without AES instructionsResearch on SIV constructions with universal hashing

Sizes

FieldBytesMeaning
key16Secret key
nonce12Nonce / IV
tag8Authentication tag

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
key, nonce = root.random(16), root.random(12)
ct = root.call("aead_seal", "hs1sivlov2", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "hs1sivlov2", None, key, nonce, b"header", ct)[0]

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

Similar names

Looking for something else?

Frequently asked questions

What is Hs1sivlov2?

Hs1sivlov2 is an AEAD in the HS1-SIV family. HS1-SIV is a deterministic, nonce-misuse-resistant authenticated cipher that combines the HS1 universal hash with ChaCha in an SIV construction.

What are the Hs1sivlov2 sizes?

In NextSSL, Hs1sivlov2 uses: key 16 bytes, nonce 12 bytes, tag 8 bytes.

Who designed Hs1sivlov2 and when?

Hs1sivlov2 belongs to the HS1-SIV family, first published in 2014 by Ted Krovetz. Its origin: CAESAR round 2 candidate.

Is Hs1sivlov2 safe to use?

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