Skip to content

Implementation of the grain-128 stream cipher in Go

License

Notifications You must be signed in to change notification settings

6b70/grain128-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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=.

About

Implementation of the grain-128 stream cipher in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages