Hawkynt

ARS (AES-based Random Stream)

Counter-based PRNG using full AES round function with simplified Weyl-sequence key schedule. Designed for parallel computing with cryptographic-quality randomness. Part of the Random123 library by D. E. Shaw Research.

Properties

Property Value
Category Random Number Generators
Sub-category Counter-Based PRNG
Security status πŸŽ“ Educational Only
Complexity Advanced
Inventor John K. Salmon, Mark A. Moraes, Ron O. Dror, David E. Shaw
Year 2011
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/random/ars.js

Parameters

Parameter Supported values
Key sizes 16 bytes (128 bits)

Capabilities

Flag Value
IsDeterministic Yes
IsCryptographicallySecure No
IsCounterBased Yes

Security

Status: πŸŽ“ Educational Only

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” ARS4x32-10: Counter=0, Key=0 - Random123 kat_vectors

Field Value
key 00000000000000000000000000000000
rounds 10
outputSize 16
input 00000000000000000000000000000000
expected 19ee738def016450e4dbc2130d9cbe0c

Vector 2 β€” ARS4x32-10: Counter=Ο€ digits, Key=Ο€ digits - Random123 kat_vectors

Field Value
key 223809a4d0319f2998fa2e08896c4eec
rounds 10
outputSize 16
input 886a3f24d308a3852e8a191344737003
expected d6e716a574ad5783ecb3595bf3ff6387

Vector 3 β€” ARS4x32-10: Counter=0xFFFFFFFF (all), Key=mixed - Random123 kat_vectors

Field Value
key ffffffffffffffff0000000000000000
rounds 10
outputSize 16
input ffffffffffffffffffffffffffffffff
expected b14337bb5155639ffc87bceca97894a1

← All algorithms