kalyna

package
v0.0.0-...-a11dea8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockSize128 = 128 / bitsPerByte
	BlockSize256 = 256 / bitsPerByte
	BlockSize512 = 512 / bitsPerByte

	KeySize128 = 128 / bitsPerByte
	KeySize256 = 256 / bitsPerByte
	KeySize512 = 512 / bitsPerByte
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockSizeError

type BlockSizeError int

func (BlockSizeError) Error

func (k BlockSizeError) Error() string

type Config

type Config struct {
	BlockSize int // Block size in bytes.
	KeySize   int // Key size in bytes.
}

Kalyna

func (Config) NewCipher

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

type KeySizeError

type KeySizeError int

func (KeySizeError) Error

func (k KeySizeError) Error() string

Directories

Path Synopsis
utils

Jump to

Keyboard shortcuts

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