Versions in this module Expand all Collapse all v0 v0.0.1 Apr 29, 2023 Changes in this version + func SupportedModes() []string + type CryptState struct + DecryptIV []byte + EncryptIV []byte + Good uint32 + Key []byte + LastGoodTime int64 + Late uint32 + Lost uint32 + RemoteGood uint32 + RemoteLate uint32 + RemoteLost uint32 + RemoteResync uint32 + Resync uint32 + func (cs *CryptState) Decrypt(dst, src []byte) error + func (cs *CryptState) Encrypt(dst, src []byte) + func (cs *CryptState) GenerateKey(mode string) error + func (cs *CryptState) Overhead() int + func (cs *CryptState) SetKey(mode string, key []byte, eiv []byte, div []byte) error + type CryptoMode interface + Decrypt func(dst []byte, src []byte, nonce []byte) bool + Encrypt func(dst []byte, src []byte, nonce []byte) + KeySize func() int + NonceSize func() int + Overhead func() int + SetKey func([]byte)