Versions in this module Expand all Collapse all v0 v0.1.0 Jul 23, 2020 Changes in this version + type CryptEngine struct + func New() *CryptEngine + func (ce *CryptEngine) AddSessionKey(hash, json, privKey string, cleanupTime uint64) error + func (ce *CryptEngine) CleanupSessionKeys(t uint64) error + func (ce *CryptEngine) Close() error + func (ce *CryptEngine) DelMessageKey(sessionKey string, sender bool, msgIndex uint64) error + func (ce *CryptEngine) DelPrivSessionKey(hash string) error + func (ce *CryptEngine) GetChainKey(sessionKey string) (*[32]byte, error) + func (ce *CryptEngine) GetMessageKey(sessionKey string, sender bool, msgIndex uint64) (*[64]byte, error) + func (ce *CryptEngine) GetPrivateKeyEntry(pubKeyHash string) (*uid.KeyEntry, error) + func (ce *CryptEngine) GetPublicKeyEntry(uidMsg *uid.Message) (*uid.KeyEntry, string, error) + func (ce *CryptEngine) GetRootKeyHash(sessionKey string) (*[64]byte, error) + func (ce *CryptEngine) GetSessionKey(hash string) (json, privKey string, err error) + func (ce *CryptEngine) GetSessionState(sessionStateKey string) (*session.State, error) + func (ce *CryptEngine) HasSession(sessionKey string) bool + func (ce *CryptEngine) NumMessageKeys(sessionKey string) (uint64, error) + func (ce *CryptEngine) SetSessionState(sessionStateKey string, sessionState *session.State) error + func (ce *CryptEngine) Start(args []string) error + func (ce *CryptEngine) StoreSession(sessionKey, rootKeyHash, chainKey string, send, recv []string) error