Versions in this module Expand all Collapse all v0 v0.21.1 Oct 16, 2024 v0.21.0 Sep 16, 2024 Changes in this version + var KdfInfo = struct{ ... } + var RatchetCipher = cipher.NewAESSHA256([]byte("OLM_KEYS")) + type Ratchet struct + ReceiverChains []receiverChain + RootKey crypto.Curve25519PublicKey + SenderChains senderChain + SkippedMessageKeys []skippedMessageKey + func New() *Ratchet + func (r *Ratchet) Decrypt(input []byte) ([]byte, error) + func (r *Ratchet) Encrypt(plaintext []byte) ([]byte, error) + func (r *Ratchet) InitializeAsAlice(sharedSecret []byte, ourRatchetKey crypto.Curve25519KeyPair) error + func (r *Ratchet) InitializeAsBob(sharedSecret []byte, theirRatchetKey crypto.Curve25519PublicKey) error + func (r *Ratchet) UnpickleAsJSON(pickled, key []byte) error + func (r *Ratchet) UnpickleLibOlm(value []byte, includesChainIndex bool) (int, error) + func (r Ratchet) PickleAsJSON(key []byte) ([]byte, error) + func (r Ratchet) PickleLen() int + func (r Ratchet) PickleLenMin() int + func (r Ratchet) PickleLibOlm(target []byte) (int, error)