xxtea

package module
v0.0.0-...-316144b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: BSD-2-Clause Imports: 2 Imported by: 0

README

go-xxtea

GoDoc

This is an implementation of the "Corrected Block TEA" or "XXTEA" block cipher algorithm described in Correction to xtea.

License

BSD 2-clause, see LICENSE file in the source distribution.

Author

Hilko Bengen bengen@hilluzination.de

Documentation

Overview

Package xxtea implements XXTEA encryption as defined in Needham and Wheeler's 1998 technical report, "Correction to XTEA."

Index

Constants

View Source
const BlockSize = 8

The XXTEA block size in bytes.

Variables

This section is empty.

Functions

func NewCipher

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

NewCipher creates and returns a new cipher.Block. The key argument should be the XXTEA key. XXTEA only supports 128 bit (16 byte) keys which are converted internally into 4 little-endian uint32 values.

Types

type KeySizeError

type KeySizeError int

KeySizeError may be returned by NewCipher.

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