cryptige

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2017 License: MIT Imports: 1 Imported by: 4

Documentation

Overview

Infinite Garble Extension (IGE) mode.

IGE is similar to cipher block chaining (CBC) mode:

1) like in CBC, the plaintext is XORed, before encryption, with the previous ciphertext;

2) unlike in CBC, after going through the block cipher, the result is also XORed with the previous plaintext.

For the first block, the corresponding inputs are taken from the IV, which must be twice the block size.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIGEDecrypter

func NewIGEDecrypter(b cipher.Block, iv []byte) cipher.BlockMode

NewIGEDecrypter returns a BlockMode which decrypts in cipher block chaining mode, using the given Block. The length of iv must be the same as the Block's block size and must match the iv used to encrypt the data.

func NewIGEEncrypter

func NewIGEEncrypter(b cipher.Block, iv []byte) cipher.BlockMode

NewIGEEncrypter returns a BlockMode which encrypts in cipher block chaining mode, using the given Block. The length of iv must be the same as the Block's block size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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