facil.io

#./fio-stl/159 secret.h

5 public symbols.

#Functions

#fio_secret_is_random

c
bool fio_secret_is_random(void)

Returns true if the secret was randomly generated.

Symbol type: function

#fio_secret

c
fio_u512 fio_secret(void)

Gets the SHA512 of a (possibly shared) secret.

Symbol type: function

#fio_secret_set

c
void fio_secret_set(char *str, size_t len, bool is_random)

Sets a (possibly shared) secret and stores its SHA512 hash.

Symbol type: function

#fio_secret_set_at

c
void fio_secret_set_at(fio_u512 *secret, char *str, size_t len)

Sets a (possibly shared) secret and stores its SHA512 hash.

Symbol type: function

#fio_secret_at

c
fio_u512 fio_secret_at(fio_u512 *secret)

Gets the SHA512 of a (possibly shared) secret.

Symbol type: function