Documentation ¶
Index ¶
- func CryptoBox(msg, nounce, pk, sk []byte) []byte
- func CryptoBoxOpen(box, nounce, sk, pk []byte) []byte
- func CryptoBoxOverhead() int
- func CryptoBoxPrivKeySize() int
- func CryptoBoxPubKeySize() int
- func CryptoSignDetached(msg, sk []byte) []byte
- func CryptoSignFucky(msg, sk []byte) []byte
- func CryptoSignPrivKeySize() int
- func CryptoSignPubKeySize() int
- func CryptoSignPublicLen() int
- func CryptoSignSecretLen() int
- func CryptoSignSeedLen() int
- func CryptoVerify(smsg, pk []byte) bool
- func CryptoVerifyDetached(msg, sig, pk []byte) bool
- func CryptoVerifyFucky(msg, sig, pk []byte) bool
- func GetBoxPubkey(sk []byte) []byte
- func GetSignPubkey(sk []byte) []byte
- func NewBoxNounce() []byte
- func RandBytes(size int) []byte
- func TestAll()
- type Buffer
- type KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CryptoBox ¶
encrypts a message to a user given their public key is known returns an encrypted box
func CryptoBoxOverhead ¶
func CryptoBoxOverhead() int
return how many bytes overhead does CryptoBox have
func CryptoSignDetached ¶
sign data detached with secret key sk
func CryptoSignFucky ¶
sign data with secret key sk return detached sig this uses crypto_sign instead pf crypto_sign_detached
func CryptoSignPublicLen ¶
func CryptoSignPublicLen() int
func CryptoSignSecretLen ¶
func CryptoSignSecretLen() int
func CryptoSignSeedLen ¶
func CryptoSignSeedLen() int
func CryptoVerifyDetached ¶
verfiy a detached signature return true on valid otherwise false
func CryptoVerifyFucky ¶
verify a fucky detached sig
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
wrapper arround malloc/free
type KeyPair ¶
type KeyPair struct {
// contains filtered or unexported fields
}
func GenBoxKeypair ¶
func GenBoxKeypair() *KeyPair
Click to show internal directories.
Click to hide internal directories.