camellia

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 5 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Camellia

Библиотека, реализующая алгоритм Camellia

cipher, err := NewCameliaCipher(key)
if err != nil {
    log.Fatalf("err: %v", err)
}

var b [16]byte

cipher.Encrypt(b[:], messageText)
cipher.Decrypt(b[:], cipherText)

Documentation

Index

Constants

View Source
const (
	C1 = 0xA09E667F3BCC908B
	C2 = 0xB67AE8584CAA73B2
	C3 = 0xC6EF372FE94F82BE
	C4 = 0x54FF53A5F1D36F1C
	C5 = 0x10E527FADE682D1D
	C6 = 0xB05688C2B3E6C1FD
)
View Source
const BLOCKSIZE = 16
View Source
const MASK32 = 0xffffffff

Variables

This section is empty.

Functions

func NewCipher added in v0.0.5

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

128 бит = 16 байт 256 бит = 32 байт 192 бит = 24 байт

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
⌂ 换网址