Stream ciphers

Snow-2-0

A word-oriented LFSR stream cipher, standardised in ISO/IEC 18033-4 and parent of SNOW 3G

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 Snow-2-0

Snow-2-0 is a stream cipher from the SNOW 2.0 family. It uses a 16-byte (128-bit) 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

SNOW 2.0 is a stream cipher designed by Patrik Ekdahl and Thomas Johansson in 2002 as an improved version of SNOW 1.0. It is standardised in ISO/IEC 18033-4, and its derivative SNOW 3G is used in 3GPP mobile networks.

SNOW 2.0 combines a 16-word linear feedback shift register over GF(2^32) with a finite state machine of two 32-bit registers. The FSM takes words from the LFSR, combines them with modular addition and an AES-based S-box transformation, and its output is XORed with an LFSR word to produce one 32-bit keystream word per clock. It supports 128- and 256-bit keys.

NextSSL includes SNOW 2.0 from source without verification. SNOW 3G, used in the 3GPP UEA2 and UIA2 algorithms, modifies SNOW 2.0's FSM to resist algebraic attacks, and the more recent SNOW-V and SNOW-Vi target 5G with 256-bit keys. Earlier SNOW 1.0 was broken during the NESSIE evaluation, which prompted the 2.0 redesign. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation.

History

2002–2002
  1. SNOW 2.0 published by Patrik Ekdahl, Thomas Johansson

Security notes

No practical attacks on SNOW 2.0 are known, though linear distinguishers requiring very large amounts of keystream have been published. NextSSL's implementation is unverified.

Typical uses

Research on LFSR-based stream ciphersBackground for SNOW 3G in mobile networks

Sizes

FieldBytesMeaning
key16Secret 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", "snow-2-0", 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 Snow-2-0?

Snow-2-0 is a stream cipher in the SNOW 2.0 family. SNOW 2.0 is a stream cipher designed by Patrik Ekdahl and Thomas Johansson in 2002 as an improved version of SNOW 1.0.

What are the Snow-2-0 sizes?

In NextSSL, Snow-2-0 uses: key 16 bytes, nonce 16 bytes.

Who designed Snow-2-0 and when?

Snow-2-0 belongs to the SNOW 2.0 family, first published in 2002 by Patrik Ekdahl, Thomas Johansson. Its origin: ISO/IEC 18033-4.

Is Snow-2-0 safe to use?

Snow-2-0 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).