Files
go-i2p/lib/crypto

crypto

-- import "github.com/go-i2p/go-i2p/lib/crypto"

crypto.svg

package for i2p specific crpytography

Usage

type Tunnel

type Tunnel struct {
}

func NewTunnelCrypto

func NewTunnelCrypto(layerKey, ivKey TunnelKey) (t *Tunnel, err error)

func (*Tunnel) Decrypt

func (t *Tunnel) Decrypt(td *TunnelData)

func (*Tunnel) Encrypt

func (t *Tunnel) Encrypt(td *TunnelData)

encrypt tunnel data in place

type TunnelData

type TunnelData [1028]byte

type TunnelIV

type TunnelIV []byte

The initialization vector for a tunnel message

type TunnelKey

type TunnelKey [32]byte

A symetric key for encrypting tunnel messages

crypto

github.com/go-i2p/go-i2p/lib/crypto

go-i2p template file