Documentation ¶
Index ¶
- Constants
- Variables
- func AddCrypto(name string, new NewCryptoFunc) error
- func GetCryptos() []string
- func NewAes(option cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
- func NewChacha20(option cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
- func NewCrypto(name string, option cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
- type Aes
- type Chacha20
- type NewCryptoFunc
- type None
Constants ¶
View Source
const CHACHA20 = "chacha20"
View Source
const NONE = "none"
Variables ¶
View Source
var AES = "AES"
Functions ¶
func AddCrypto ¶
func AddCrypto(name string, new NewCryptoFunc) error
func GetCryptos ¶
func GetCryptos() []string
func NewAes ¶
func NewAes(option cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
func NewChacha20 ¶
func NewChacha20(option cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
func NewCrypto ¶
func NewCrypto(name string, option cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
Types ¶
type Aes ¶
type Aes struct { cryptocommon.CryptoOption // contains filtered or unexported fields }
type Chacha20 ¶
type Chacha20 struct { cryptocommon.CryptoOption // contains filtered or unexported fields }
type NewCryptoFunc ¶
type NewCryptoFunc func(cryptocommon.CryptoOption) (cryptocommon.CryptoPlugin, error)
Click to show internal directories.
Click to hide internal directories.