wrapper.sodium.crypto_scalarmult

Undocumented in source.

Public Imports

deimos.sodium.crypto_scalarmult
public import deimos.sodium.crypto_scalarmult : crypto_scalarmult_BYTES, crypto_scalarmult_bytes, crypto_scalarmult_SCALARBYTES, crypto_scalarmult_scalarbytes, crypto_scalarmult_PRIMITIVE;

Members

Aliases

crypto_scalarmult
alias crypto_scalarmult = deimos.sodium.crypto_scalarmult.crypto_scalarmult
Undocumented in source.
crypto_scalarmult_base
alias crypto_scalarmult_base = deimos.sodium.crypto_scalarmult.crypto_scalarmult_base
Undocumented in source.

Functions

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_primitive
string crypto_scalarmult_primitive()
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Meta