Versions in this module Expand all Collapse all v1 v1.0.0 Jul 20, 2023 Changes in this version + type Crypto interface + Decrypt func(ciphertext []byte) ([]byte, error) + Encrypt func(plaintext []byte) ([]byte, error) + func NewAesGcm(key []byte, nonce []byte) (Crypto, error) + func NewSm4(key, iv []byte) (Crypto, error)