Versions in this module Expand all Collapse all v0 v0.1.1 Feb 8, 2015 Changes in this version + type Ratchet struct + MyIdentityPrivate *[32]byte + MySigningPublic *[32]byte + Now func() time.Time + TheirIdentityPublic *[32]byte + TheirSigningPublic *[32]byte + func New(rand io.Reader) *Ratchet + func (r *Ratchet) CompleteKeyExchange(kx *pond.KeyExchange, isV2 bool) error + func (r *Ratchet) Decrypt(ciphertext []byte) ([]byte, error) + func (r *Ratchet) Encrypt(out, msg []byte) []byte + func (r *Ratchet) FillKeyExchange(kx *pond.KeyExchange) error + func (r *Ratchet) GetKXPrivateForTransition() [32]byte + func (r *Ratchet) Marshal(now time.Time, lifetime time.Duration) *disk.RatchetState + func (r *Ratchet) Unmarshal(s *disk.RatchetState) error