Documentation
¶
Index ¶
- Constants
- func Argon2I32(number_blocks, number_iterations int, ...) ([]byte, error)
- func Blake2b(message, key []byte) []byte
- func Chacha20(key, nonce, message []byte) ([]byte, error)
- func ComputeKeyExchangePublicKey(secret_key []byte) []byte
- func ComputeSigningPublicKey(secret_key []byte) ([]byte, error)
- func ElligatorKeyPair(seed []byte) ([]byte, []byte, error)
- func ElligatorMap(hidden []byte) ([]byte, error)
- func ElligatorRev(curve []byte, tweak *byte) ([]byte, error)
- func GenerateKey(length *int) ([]byte, error)
- func GenerateKeyExchangeKeyPair() ([]byte, []byte, error)
- func GenerateSigningKeyPair() ([]byte, []byte, error)
- func KeyExchange(your_secret_key, their_public_key []byte) []byte
- func Lock(key, nonce, message, associated_data []byte) ([]byte, []byte)
- func SignatureCheck(signature, public_key, message []byte) bool
- func SignatureSign(secret_key, message []byte) ([]byte, error)
- func Unlock(key, nonce, mac, message, associated_data []byte) ([]byte, error)
- func Wipe(data []byte)
- type Blake2bHash
- type IncrementalAuthenticatedEncryption
Constants ¶
View Source
const ( CRYPTO_SUCCESS = 0 MAC_LENGTH = 16 CHACHA20_NONCE_LENGTH = 8 BLAKE_2B_HASH_LENGTH = 64 ARGON_HASH_SIZE = 32 ARGON_BLOCK_NUMBER = 1024 AUTHENTICATED_ENCRYPTION_KEY_LENGTH = 32 AUTHENTICATED_ENCRYPTION_NONCE_LENGTH = 24 ASYMMETRICAL_KEY_LENGTH = 32 ASYMMETRICAL_SIGN_LENGTH = 64 )
Variables ¶
This section is empty.
Functions ¶
func ComputeSigningPublicKey ¶
func ElligatorMap ¶
func GenerateKey ¶
func GenerateSigningKeyPair ¶
func KeyExchange ¶
func SignatureCheck ¶
func SignatureSign ¶
Types ¶
type Blake2bHash ¶
type Blake2bHash struct {
// contains filtered or unexported fields
}
func NewBlake2bHash ¶
func NewBlake2bHash(key []byte, hash_size *int) (*Blake2bHash, error)
Key and hash size can be null
func (*Blake2bHash) Finalize ¶
func (x *Blake2bHash) Finalize() []byte
func (*Blake2bHash) Update ¶
func (x *Blake2bHash) Update(message []byte) *Blake2bHash
type IncrementalAuthenticatedEncryption ¶
type IncrementalAuthenticatedEncryption struct {
// contains filtered or unexported fields
}
func NewIncrementalAuthenticatedEncryption ¶
func NewIncrementalAuthenticatedEncryption(key, nonce []byte) (*IncrementalAuthenticatedEncryption, error)
Click to show internal directories.
Click to hide internal directories.