- crypto_scalarmult
bool crypto_scalarmult(ubyte[crypto_scalarmult_BYTES] q, ubyte[crypto_scalarmult_SCALARBYTES] n, ubyte[crypto_scalarmult_BYTES] p)
Undocumented in source. Be warned that the author may not have intended to support it.
- crypto_scalarmult_base
bool crypto_scalarmult_base(ubyte[crypto_scalarmult_BYTES] q, ubyte[crypto_scalarmult_SCALARBYTES] n)
Undocumented in source. Be warned that the author may not have intended to support it.
- crypto_scalarmult_bytes (from deimos.sodium.crypto_scalarmult)
size_t crypto_scalarmult_bytes() via public
import deimos.sodium.crypto_scalarmult : crypto_scalarmult_BYTES, crypto_scalarmult_bytes, crypto_scalarmult_SCALARBYTES, crypto_scalarmult_scalarbytes, crypto_scalarmult_PRIMITIVE;
Undocumented in source.
- crypto_scalarmult_primitive
string crypto_scalarmult_primitive()
Undocumented in source. Be warned that the author may not have intended to support it.
- crypto_scalarmult_scalarbytes (from deimos.sodium.crypto_scalarmult)
size_t crypto_scalarmult_scalarbytes() via public
import deimos.sodium.crypto_scalarmult : crypto_scalarmult_BYTES, crypto_scalarmult_bytes, crypto_scalarmult_SCALARBYTES, crypto_scalarmult_scalarbytes, crypto_scalarmult_PRIMITIVE;
Undocumented in source.
- sharedkey_hashed
void sharedkey_hashed(ubyte[] our_sharedkey, ubyte[crypto_scalarmult_SCALARBYTES] my_secretkey, ubyte[crypto_scalarmult_BYTES] my_publickey, bool my_pubkey_hashed_first, ubyte[crypto_scalarmult_BYTES] other_publickey)
This function may be part of the keyexchange procedure:
It takes over from the arguments given, invokes crypto_scalarmult und results in the hashed our_sharedkey as proposed in the documentaion.
There is no heap allocation for secrets, yet enforce may require heap memory, thus inhibiting the attribute @nogc.
It may throw in error conditions.