Stream ciphers

Rabbit

A high-speed stream cipher in the eSTREAM software portfolio, specified in RFC 4503

standard Safe API

About Rabbit

Rabbit is a stream cipher. It uses a 16-byte (128-bit) key and an 8-byte nonce. Its registry entry cites RFC 4503 and eSTREAM portfolio (software profile 1). NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

Rabbit is a stream cipher published in 2003 by Martin Boesgaard and colleagues at Cryptico. It was selected for the eSTREAM software portfolio and is documented in RFC 4503. It uses a 128-bit key and an optional 64-bit IV.

Rabbit's state consists of eight 32-bit state variables and eight 32-bit counters with a carry bit. On each iteration the counters are incremented with carry, and each state variable is updated from a non-linear function g that squares a 32-bit sum into 64 bits and XORs the high and low halves, combined with rotations of neighbouring values. 128 bits of output are extracted per iteration from combinations of the state words.

Rabbit was designed for fast software on 32-bit processors. It became free to use in 2008. NextSSL includes Rabbit as an eSTREAM portfolio cipher. It is also used in some embedded products and mobile applications that needed a fast unpatented cipher. Its key setup is fast. Its 513-bit internal state is compact for software.

History

2003–2008
  1. Rabbit published

  2. ECRYPT launches eSTREAM to find new stream ciphers

    eSTREAM project
  3. 34 designs submitted

    eSTREAM project
  4. Final eSTREAM portfolio published

    eSTREAM project

Security notes

No practical attacks on Rabbit are known. As with all stream ciphers, a key and IV pair must never be reused, and Rabbit provides no integrity on its own.

Typical uses

Fast software encryptioneSTREAM portfolio research

Sizes

FieldBytesMeaning
key16Secret key
nonce8Nonce / IV

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
ct = ns.call("stream_apply", "rabbit", 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 Rabbit?

Rabbit is a stream cipher in the Rabbit family. Rabbit is a stream cipher published in 2003 by Martin Boesgaard and colleagues at Cryptico.

What are the Rabbit sizes?

In NextSSL, Rabbit uses: key 16 bytes, nonce 8 bytes.

Who designed Rabbit and when?

Rabbit belongs to the Rabbit family, first published in 2003 by Martin Boesgaard, Mette Vesterager, Thomas Pedersen, Jesper Christiansen, Ove Scavenius. Its origin: RFC 4503; eSTREAM portfolio.

Which standards define Rabbit?

Rabbit is referenced by RFC 4503, eSTREAM portfolio (software profile 1).

Is Rabbit safe to use?

Rabbit is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.