Documentation ¶
Index ¶
- func CreateKeyPair(keyPair *t.KeyPair, privateKey *t.PrivateKey, publicKey *t.PublicKey)
- func Decrypt(plainText *[]byte, key *t.SecretKey, nonce *t.Nonce, cipherText *[]byte) bool
- func DiffieHellman(sharedSecretRef *t.SharedSecret, ourPrivateKey *t.PrivateKey, ...) bool
- func Encrypt(cipherText *[]byte, key *t.SecretKey, nonce *t.Nonce, plaintext *[]byte) bool
- func Hash(digest *t.Digest, message []byte) bool
- func Hkdf(okm *[]byte, ikm *[]byte, salt *[]byte, info *[]byte) bool
- func Init() bool
- func KeyPairEphemeral(keyPair *t.KeyPair) bool
- func KeyPairIdentity(keyPair *t.KeyPair) bool
- func Sign(signature *t.Signature, keyPair *t.KeyPair, message *[]byte) bool
- func Verify(publicKey *t.PublicKey, signature *t.Signature, message *[]byte) bool
- func Zeroize(data *[]byte)
- func Zeroize32(arr *[32]byte)
- func Zeroize64(arr *[64]byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeyPair ¶
func DiffieHellman ¶
func DiffieHellman( sharedSecretRef *t.SharedSecret, ourPrivateKey *t.PrivateKey, theirPublicKey *t.PublicKey, ) bool
func KeyPairEphemeral ¶
func KeyPairIdentity ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.