Hawkynt

Grain v1

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.

Properties

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

Parameters

Parameter Supported values
Key sizes 10 bytes (80 bits)
Nonce sizes 8 bytes (64 bits)

Security

Status: πŸ›‘οΈ Secure

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

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

← All algorithms