spritz

package
v1.0.3015 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package spritz implements the Spritz stream-cipher

Index

Constants

View Source
const BlockSize = 1
View Source
const N = 256

Variables

This section is empty.

Functions

func Hash

func Hash(m []byte, r byte) []byte

func NewCipher

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

New returns a cipher.Block implementing RC6.

func NewCipherWithIV

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

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