rijndael

package
v1.0.5006 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockSize128 = 16
	BlockSize160 = 20
	BlockSize192 = 24
	BlockSize224 = 28
	BlockSize256 = 32
)

Variables

This section is empty.

Functions

func NewCipher

func NewCipher(key []byte, blockSize int) (cipher.Block, error)

NewCipher returns a new rijndael cipher with the given key and effective key length t1

func NewCipher128

func NewCipher128(key []byte) (cipher.Block, error)

NewCipher128 returns a new rijndael cipher with the given key and effective key length t1

func NewCipher160

func NewCipher160(key []byte) (cipher.Block, error)

NewCipher160 returns a new rijndael cipher with the given key and effective key length t1

func NewCipher192

func NewCipher192(key []byte) (cipher.Block, error)

NewCipher192 returns a new rijndael cipher with the given key and effective key length t1

func NewCipher224

func NewCipher224(key []byte) (cipher.Block, error)

NewCipher224 returns a new rijndael cipher with the given key and effective key length t1

func NewCipher256

func NewCipher256(key []byte) (cipher.Block, error)

NewCipher256 returns a new rijndael cipher with the given key and effective key length t1

Types

type BlockSizeError added in v1.0.2065

type BlockSizeError int

func (BlockSizeError) Error added in v1.0.2065

func (k BlockSizeError) Error() string

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL