Lightweight stream cipher using LFSR and NFSR designed for restricted hardware environments. Selected for eSTREAM Portfolio Profile 2. Uses 80-bit keys and 64-bit IVs with 160-bit total state.
| Property | Value |
|---|---|
| Category | Stream Ciphers |
| Sub-category | Stream Cipher |
| Security status | π‘οΈ Secure |
| Complexity | Advanced |
| Inventor | Martin Hell, Thomas Johansson, and Willi Meier |
| Year | 2004 |
| Origin | πΈπͺ Sweden |
| Source | algorithms/stream/grain.js |
| Parameter | Supported values |
|---|---|
| Key sizes | 10 bytes (80 bits) |
| Nonce sizes | 8 bytes (64 bits) |
Status: π‘οΈ Secure
No vulnerabilities are recorded for this implementation.
1 vector ship with this algorithm and run in the test suite. Byte values are hexadecimal.
Vector 1 β eSTREAM Grain v1 Test Vector
| Field | Value |
|---|---|
key |
00000000000000000000 |
iv |
0000000000000000 |
input |
0000000000000000 |
expected |
7d405a412bfa1f7b |