Documentation ¶
Index ¶
- Constants
- func NewCipher(key []byte, blockSize int) (cipher.Block, error)
- func NewCipher128(key []byte) (cipher.Block, error)
- func NewCipher160(key []byte) (cipher.Block, error)
- func NewCipher192(key []byte) (cipher.Block, error)
- func NewCipher224(key []byte) (cipher.Block, error)
- func NewCipher256(key []byte) (cipher.Block, error)
- type KeySizeError
Constants ¶
View Source
const ( BlockSize128 = 16 BlockSize160 = 20 BlockSize192 = 24 BlockSize224 = 28 BlockSize256 = 32 )
Variables ¶
This section is empty.
Functions ¶
func NewCipher ¶
NewCipher returns a new rijndael cipher with the given key and effective key length t1
func NewCipher128 ¶
NewCipher128 returns a new rijndael cipher with the given key and effective key length t1
func NewCipher160 ¶
NewCipher160 returns a new rijndael cipher with the given key and effective key length t1
func NewCipher192 ¶
NewCipher192 returns a new rijndael cipher with the given key and effective key length t1
func NewCipher224 ¶
NewCipher224 returns a new rijndael cipher with the given key and effective key length t1
Types ¶
type KeySizeError ¶
type KeySizeError int
func (KeySizeError) Error ¶
func (k KeySizeError) Error() string
Click to show internal directories.
Click to hide internal directories.