mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-06-07 18:24:25 -04:00
crypto
-- import "github.com/go-i2p/go-i2p/lib/crypto"
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