Documentation ¶
Index ¶
- func Decrypt(key *[32]byte, nonce *[24]byte, data []byte) ([]byte, error)
- func DeriveKey(password []byte, salt *[32]byte) (*[32]byte, error)
- func Encrypt(data []byte, key *[32]byte) ([]byte, *[24]byte, error)
- func NewKey(password []byte) (*[32]byte, *[32]byte, error)
- func PackNonce(nonce *[24]byte, data []byte) []byte
- func PackSaltNonce(salt *[32]byte, nonce *[24]byte, data []byte) []byte
- func SetNrp(nn, rr, pp int)
- func UnpackNonce(packed []byte) (nonce *[24]byte, data []byte, err error)
- func UnpackSaltNonce(packed []byte) (salt *[32]byte, nonce *[24]byte, data []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.