rijndael

package
v1.0.2055 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 5 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 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