Versions in this module Expand all Collapse all v0 v0.3.1 Oct 21, 2013 v0.3.0 Oct 17, 2013 Changes in this version + const PUBLICKEYBYTES + const SECRETKEYBYTES + func CryptoBox(nonce []byte, plaintext string) + func CryptoBoxKeypair() (pk [SECRETKEYBYTES]byte, sk [PUBLICKEYBYTES]byte) + func CryptoOpen(nonce []byte, ciphertext string) + func IncrementalNonceStrategy() func() []byte + func RandomNonceStrategy() func() []byte + func Randombytes(bytes []byte) + type Session struct + Nonce func() []byte + Public [PUBLICKEYBYTES]byte + Secret [SECRETKEYBYTES]byte + func NewSession(pk [PUBLICKEYBYTES]byte, sk [SECRETKEYBYTES]byte) (s *Session) + func (s *Session) Box(plaintext []byte) (ciphertext []byte, nonce []byte) + func (s *Session) Open(nonce []byte, ciphertext []byte) []byte + func (s *Session) Precompute()