rc2

package
v1.0.2012 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 8

The rc2 block size in bytes

Variables

This section is empty.

Functions

func NewCipher added in v1.0.1032

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

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

Types

type Cipher added in v1.0.1032

type Cipher struct {
	// contains filtered or unexported fields
}

func (*Cipher) BlockSize added in v1.0.1032

func (*Cipher) BlockSize() int

func (*Cipher) Decrypt added in v1.0.1032

func (c *Cipher) Decrypt(dst, src []byte)

func (*Cipher) Encrypt added in v1.0.1032

func (c *Cipher) Encrypt(dst, src []byte)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL