Documentation ¶
Index ¶
- func AesKey(salt [8]byte, passwd string) ([]byte, error)
- func Decrypt(key []byte, cipherTxt []byte) (plainTxt []byte, err error)
- func Decrypt2(stream cipher.Stream, cipherTxt []byte) (plainTxt []byte)
- func Encrypt(key []byte, plainTxt []byte) ([]byte, error)
- func Encrypt2(stream cipher.Stream, plainTxt []byte) (cipherTxt []byte)
- func NewDecStream(key []byte) (stream cipher.Stream, iv [aes.BlockSize]byte, err error)
- func NewDecStreamWithIv(key []byte, iv [aes.BlockSize]byte) (stream cipher.Stream, err error)
- func NewEncStream(key []byte) (stream cipher.Stream, iv [aes.BlockSize]byte, err error)
- func NewEncStreamWithIv(key []byte, iv [aes.BlockSize]byte) (stream cipher.Stream, err error)
- func PrivateKeyToCurve25519(curve25519Private *[32]byte, privateKey *[64]byte)
- func PublicKeyToCurve25519(curve25519Public *[32]byte, publicKey *[32]byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDecStream ¶
func NewDecStreamWithIv ¶
func NewEncStream ¶
func NewEncStreamWithIv ¶
func PrivateKeyToCurve25519 ¶
func PublicKeyToCurve25519 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.