Documentation ¶
Index ¶
- func ChaChaDecryptBase64String(key string, encrypted string) (result string)
- func ChaChaDecryptBytes(key string, encrypted_bytes []byte) (result []byte)
- func ChaChaDecryptFile(key string, file_path string) (result_file_path string)
- func ChaChaEncryptBytes(key string, plain_text_bytes []byte) (result []byte)
- func ChaChaEncryptFile(key string, file_path string) (encrypted_file_path string)
- func ChaChaEncryptString(key string, plain_text string) (result string)
- func ChaChaGenerateKey(password string) (key [32]byte)
- func ChaChaSharedSecretDecryptMessage(shared_secret [32]byte, encrypted_message []byte) (plain_text []byte)
- func ChaChaSharedSecretEncryptMessage(shared_secret [32]byte, message []byte) (encrypted_message []byte)
- func CurveX25519GenerateKeyPair() (public_key [32]byte, private_key [32]byte)
- func CurveX25519KeyExchange(private_key [32]byte, other_public_key [32]byte) (shared_secret [32]byte)
- func GenerateRandomString(byte_length int) (result string)
- func KyberDecrypt(cipher_text [1568]byte, private_key [3168]byte) (shared_secret [32]byte)
- func KyberEncrypt(public_key [1568]byte) (cipher_text [1568]byte, shared_secret [32]byte)
- func KyberGenerateKeyPair() (public_key [1568]byte, private_key [3168]byte)
- func SecretBoxDecrypt(key string, encrypted string) (result string)
- func SecretBoxEncrypt(key string, plain_text string) (result string)
- func SecretBoxGenerateKey(password string) (key [32]byte)
- func SecretBoxGenerateRandomKey() (key [32]byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChaChaDecryptBytes ¶
func ChaChaDecryptFile ¶
func ChaChaEncryptBytes ¶
func ChaChaEncryptFile ¶
func ChaChaEncryptString ¶
func ChaChaGenerateKey ¶
func CurveX25519KeyExchange ¶
func CurveX25519KeyExchange(private_key [32]byte, other_public_key [32]byte) (shared_secret [32]byte)
X25519KeyExchange performs a key exchange to compute a shared secret given a private key and another party's public key.
func GenerateRandomString ¶
func KyberDecrypt ¶
func KyberEncrypt ¶
func KyberGenerateKeyPair ¶
1024 bit keypair
func SecretBoxDecrypt ¶
func SecretBoxEncrypt ¶
func SecretBoxGenerateKey ¶
func SecretBoxGenerateRandomKey ¶
func SecretBoxGenerateRandomKey() (key [32]byte)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.