Documentation ¶
Overview ¶
Package bsaes is a pure-Go bitsliced constant time AES implementation.
Index ¶
Constants ¶
View Source
const BlockSize = aes.BlockSize
BlockSize is the AES block size in bytes.
Variables ¶
This section is empty.
Functions ¶
func NewCipher ¶
NewCipher creates and returns a new cipher.Block. The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
func UsingRuntime ¶
func UsingRuntime() bool
UsingRuntime returns true iff this package is falling through to the runtime's implementation due to hardware support for constant time operation on the current system.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package ct32 is a 32 bit optimized AES implementation that processes 2 blocks at a time.
|
Package ct32 is a 32 bit optimized AES implementation that processes 2 blocks at a time. |
Package ct64 is a 64 bit optimized AES implementation that processes 4 blocks at a time.
|
Package ct64 is a 64 bit optimized AES implementation that processes 4 blocks at a time. |
Package ghash is a constant time 64 bit optimized GHASH implementation.
|
Package ghash is a constant time 64 bit optimized GHASH implementation. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.