rc2

package
v0.29.5-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 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 NewCipher

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

NewCipher returns a new rc2 cipher with the given key

func NewCipherWithEffectiveKeyBits

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

NewCipherWithEffectiveKeyBits returns a new rc2 cipher with the given key and effective key length in bits t1

Types

This section is empty.

Jump to

Keyboard shortcuts

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