Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 666 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 666 Bytes

Grain-128 Stream Cipher in Go

This repository implements the Grain-128 stream cipher.

For more details on the Grain cipher, see A Stream Cipher Proposal: Grain-128.

Performance

goos: darwin, goarch: arm64, cpu: Apple M1 Pro

Benchmark Iterations Time per Op
Grain128Keystream 89,611 13,413 ns/op
Grain128Encrypt 86,306 13,317 ns/op
Grain128Decrypt 30,188 39,706 ns/op

To run the benchmarks yourself, use the following command:

go test -bench=.