helper function for easy EdDSA key setup More...
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "util-crypto-ecc", __VA_ARGS__) |
#define | LOG_STRERROR(kind, syscall) GNUNET_log_from_strerror (kind, "util-crypto-ecc", syscall) |
#define | LOG_STRERROR_FILE(kind, syscall, filename) GNUNET_log_from_strerror_file (kind, "util-crypto-ecc", syscall, filename) |
#define | LOG_GCRY(level, cmd, rc) |
Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by gcry_strerror(rc). More... | |
helper function for easy EdDSA key setup
Definition in file crypto_ecc_setup.c.
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "util-crypto-ecc", __VA_ARGS__) |
Definition at line 31 of file crypto_ecc_setup.c.
#define LOG_STRERROR | ( | kind, | |
syscall | |||
) | GNUNET_log_from_strerror (kind, "util-crypto-ecc", syscall) |
Definition at line 33 of file crypto_ecc_setup.c.
#define LOG_STRERROR_FILE | ( | kind, | |
syscall, | |||
filename | |||
) | GNUNET_log_from_strerror_file (kind, "util-crypto-ecc", syscall, filename) |
Definition at line 36 of file crypto_ecc_setup.c.
#define LOG_GCRY | ( | level, | |
cmd, | |||
rc | |||
) |
Log an error message at log-level 'level' that indicates a failure of the command 'cmd' with the message given by gcry_strerror(rc).
Definition at line 44 of file crypto_ecc_setup.c.
|
static |
Read file to buf.
Fails if the file does not exist or does not have precisely buf_size bytes.
filename | file to read | |
[out] | buf | where to write the file contents |
buf_size | number of bytes in buf |
Definition at line 66 of file crypto_ecc_setup.c.
References filename, GNUNET_assert, GNUNET_ERROR_TYPE_WARNING, GNUNET_log, GNUNET_log_strerror_file, GNUNET_OK, and GNUNET_SYSERR.
Referenced by GNUNET_CRYPTO_ecdsa_key_from_file(), and GNUNET_CRYPTO_eddsa_key_from_file().