ice

package module
v0.0.0-...-e997893 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 3 Imported by: 0

README

go-ice

Implements 16 round 8-byte key ICE cipher

Documentation

Index

Constants

View Source
const BlockSize = 8

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

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

func (*Key) BlockSize

func (key *Key) BlockSize() int

func (*Key) Decrypt

func (key *Key) Decrypt(dst, src []byte)

func (*Key) Encrypt

func (key *Key) Encrypt(dst, src []byte)

func (*Key) SetSeed

func (key *Key) SetSeed(seed [8]byte)

type Reader

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

func NewReader

func NewReader(r io.Reader, key cipher.Block) *Reader

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

type Writer

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

func NewWriter

func NewWriter(w io.Writer, key cipher.Block) *Writer

func (*Writer) Flush

func (w *Writer) Flush() error

func (*Writer) Write

func (w *Writer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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