ice

package
v0.0.0-...-62eada6 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ice implements the Information Concealment Engine by Matthew Kwan.

This package is derived from Matthew Kwan's public domain source code.

https://www.darkside.com.au/ice/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

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

Key implements crypto/cipher.Block. It is safe to use concurrently from multiple goroutines.

func Must

func Must(ik *Key, err error) *Key

Must panics if the error is non-nil.

func New

func New(key string) (*Key, error)

New creates a new 64-bit ICE key.

func NewMulti

func NewMulti(key string) (*Key, error)

NewMulti creates a new ICE key that is a multiple of 8 bytes.

func (*Key) BlockSize

func (ik *Key) BlockSize() int

BlockSize returns the block size, in bytes.

func (*Key) Decrypt

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

Decrypt a block of 8 bytes of data with the given ICE key.

func (*Key) Encrypt

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

Encrypt a block of 8 bytes of data with the given ICE key.

Jump to

Keyboard shortcuts

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