Module crypto_core

Source
Expand description

§Core cryptography functions

Functions§

crypto_core_ed25519_is_valid_point
Checks if a given point is on the Ed25519 curve.
crypto_core_ed25519_is_valid_point_relaxed
Version of crypto_core_ed25519_is_valid_point that optionally ignores the high bit check.
crypto_core_hchacha20
Implements the HChaCha20 function.
crypto_core_hsalsa20
Implements the HSalsa20 function.
crypto_scalarmult
Computes a shared secret q, given n, our secret key, and p, their public key, using a Diffie-Hellman key exchange.
crypto_scalarmult_base
Computes the public key for a previously generated secret key.

Type Aliases§

Ed25519Point
Stack-allocated Ed25519 point.
HChaCha20Input
Stack-allocated HChaCha20 input.
HChaCha20Key
Stack-allocated HChaCha20 key.
HChaCha20Output
Stack-allocated HChaCha20 output.
HSalsa20Input
Stack-allocated HSalsa20 input.
HSalsa20Key
Stack-allocated HSalsa20 key.
HSalsa20Output
Stack-allocated HSalsa20 output.