crypto: golang.org/x/crypto/tea Index | Files

package tea

import "golang.org/x/crypto/tea"

Index

Package Files

cipher.go

Constants

const (
    // BlockSize is the size of a TEA block, in bytes.
    BlockSize = 8

    // KeySize is the size of a TEA key, in bytes.
    KeySize = 16
)

func NewCipher Uses

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

NewCipher returns an instance of the TEA cipher with the standard number of rounds. The key argument must be 16 bytes long.

func NewCipherWithRounds Uses

func NewCipherWithRounds(key []byte, rounds int) (cipher.Block, error)

NewCipherWithRounds returns an instance of the TEA cipher with a given number of rounds, which must be even. The key argument must be 16 bytes long.

Package tea imports 3 packages (graph) and is imported by 4 packages. Updated 2017-03-20. Refresh now. Tools for package owners.