Documentation ¶
Index ¶
- Constants
- Variables
- func DeriveKey(secret, extra, info []byte, outputLen int) []byte
- type CipherContext
- type Ciphersuite
- type Crypter
- func (c *Crypter) BodyLen(n int) int
- func (c *Crypter) BoxLen(n int) int
- func (c *Crypter) DecryptBody(ciphertext, authtext []byte) ([]byte, error)
- func (c *Crypter) DecryptBox(ciphertext []byte, kdfNum uint8) ([]byte, error)
- func (c *Crypter) EncryptBody(dst, plaintext, authtext []byte, padLen int) []byte
- func (c *Crypter) EncryptBox(dst []byte, ephKey *Key, plaintext []byte, padLen int, kdfNum uint8) ([]byte, error)
- func (c *Crypter) SetContext(cc []byte)
- type Key
Constants ¶
View Source
const CVLen = 48
Variables ¶
View Source
var ErrAuthFailed = errors.New("box: message authentication failed")
View Source
var Noise255 = noise255{}
Functions ¶
Types ¶
type CipherContext ¶
type Ciphersuite ¶
type Crypter ¶
type Crypter struct { Cipher Ciphersuite Key Key PeerKey Key ChainVar []byte // contains filtered or unexported fields }
func (*Crypter) DecryptBody ¶
func (*Crypter) DecryptBox ¶
func (*Crypter) EncryptBody ¶
func (*Crypter) EncryptBox ¶
func (*Crypter) SetContext ¶
Click to show internal directories.
Click to hide internal directories.