Documentation
¶
Index ¶
- Variables
- func GeneratePadding() (int, []byte, error)deprecated
- func ListCipher() []string
- func NewClientConfig(method, password string) (core.ClientConfig, error)
- func NewServerConfig(method, password string, users []core.UserConfig) (core.ServerConfig, error)
- func PickCipher(name string, password string) (core.ShadowCipher, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCipherNotSupported = errors.New("cipher not supported")
View Source
var SupportedMethods = map[string]struct { meta core.MetaCipher New func(meta core.MetaCipher, password string) (core.ShadowCipher, error) }{ "chacha20-ietf-poly1305": { New: shadowaead.Chacha20Poly1305, // contains filtered or unexported fields }, "aes-256-gcm": { New: shadowaead.AESGCM, // contains filtered or unexported fields }, "aes-128-gcm": { New: shadowaead.AESGCM, // contains filtered or unexported fields }, "2022-blake3-aes-128-gcm": { New: shadowaead2022.AESGCM, // contains filtered or unexported fields }, "2022-blake3-aes-256-gcm": { New: shadowaead2022.AESGCM, // contains filtered or unexported fields }, }
Functions ¶
func GeneratePadding
deprecated
func ListCipher ¶
func ListCipher() []string
func NewClientConfig ¶
func NewClientConfig(method, password string) (core.ClientConfig, error)
func NewServerConfig ¶
func NewServerConfig(method, password string, users []core.UserConfig) (core.ServerConfig, error)
func PickCipher ¶
func PickCipher(name string, password string) (core.ShadowCipher, error)
PickCipher returns a Cipher of the given name. Derive key from password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.