Stream ciphers

Sosemanuk

A software-oriented eSTREAM stream cipher combining an LFSR with Serpent S-boxes

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 Sosemanuk

Sosemanuk is a stream cipher. It uses a 16–32-byte key and a 16-byte nonce. 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

Sosemanuk is a software-oriented stream cipher from the eSTREAM project, designed by Cédric Berbain, Henri Gilbert and Alexander Maximov. It combines a linear feedback shift register with the S-boxes of the Serpent block cipher, and takes keys from 16 to 32 bytes with a 16-byte IV. NextSSL carries it as an unverified entry.

Sosemanuk is a stream cipher designed for the eSTREAM project, which selected stream ciphers for software and hardware profiles. Its design is a linear feedback shift register combined with a small finite-state machine that uses the S-boxes of the Serpent block cipher. The combination was chosen for fast software performance.

NextSSL records a key length of 16 to 32 bytes and a 16-byte IV. The archive treats the variant as unverified, which reflects NextSSL's review status. The eSTREAM portfolio is where most of the public analysis of this cipher sits, and the archive records no practical break of the full cipher.

The 128-bit key is a common choice in practice, though the cipher accepts keys up to 256 bits. A stream cipher must not reuse a key and IV pair, so the IV must be managed as carefully as the key.

History

2004–2008
  1. ECRYPT launches eSTREAM to find new stream ciphers

    eSTREAM project
  2. Sosemanuk published by Cédric Berbain, Henri Gilbert, Alexander Maximov

  3. 34 designs submitted

    eSTREAM project
  4. Final eSTREAM portfolio published

    eSTREAM project

How it works

  1. The key and IV are loaded into the LFSR and the finite-state machine state.
  2. Each step updates the LFSR and the finite-state machine, using Serpent S-box outputs to mix the state.
  3. The keystream is XORed with the plaintext, and the receiver regenerates it from the same key and IV.

Security notes

Unverified in NextSSL. The archive records no practical break of the full cipher. Keys and IVs must never repeat as a pair.

Typical uses

Software stream encryption in research and benchmarkingStudy of LFSR and S-box hybrid stream ciphersComparisons with SNOW and other eSTREAM ciphers

Sizes

FieldBytesMeaning
key16 – 32Secret key
nonce16Nonce / IV

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
ct = root.call("stream_apply", "sosemanuk", None, key, nonce, b"secret")[0]   # same call decrypts

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

Frequently asked questions

What is Sosemanuk?

Sosemanuk is a stream cipher in the Sosemanuk family. Sosemanuk is a software-oriented stream cipher from the eSTREAM project, designed by Cédric Berbain, Henri Gilbert and Alexander Maximov.

What are the Sosemanuk sizes?

In NextSSL, Sosemanuk uses: key 16 to 32 bytes, nonce 16 bytes.

Who designed Sosemanuk and when?

Sosemanuk belongs to the Sosemanuk family, first published in 2005 by Cédric Berbain, Henri Gilbert, Alexander Maximov. Its origin: eSTREAM project, software profile.

Is Sosemanuk safe to use?

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