rc2

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2017 License: MPL-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package rc2 implements the RC2 cipher

https://www.ietf.org/rfc/rfc2268.txt http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf

This code is licensed under the MIT license.

Index

Constants

View Source
const BlockSize = 8

The rc2 block size in bytes

Variables

This section is empty.

Functions

func New

func New(key []byte, t1 int) (cipher.Block, error)

New returns a new rc2 cipher with the given key and effective key length t1

Types

type EffectiveKeySizeError

type EffectiveKeySizeError int

EffectiveKeySizeError indicates the supplied effective key length was invalid

func (EffectiveKeySizeError) Error

func (k EffectiveKeySizeError) Error() string

type KeySizeError

type KeySizeError int

KeySizeError indicates the supplied key was invalid

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