serpent

package
v1.0.4020 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BlockSize = 16

BlockSize is the serpent block size in bytes.

Variables

This section is empty.

Functions

func NewCipher

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

NewCipher returns a new cipher.Block implementing the serpent block cipher. The key argument must be 128, 192 or 256 bit (16, 24, 32 byte).

Types

type KeySizeError added in v1.0.2036

type KeySizeError int

func (KeySizeError) Error added in v1.0.2036

func (k KeySizeError) Error() string

Jump to

Keyboard shortcuts

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