#include "sodium/utils.h"
#include <stdio.h>
#include "platform.h"
#include "gnunet_common.h"
#include "gnunet_util_lib.h"
#include "sodium/crypto_auth_hmacsha256.h"
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) GNUNET_log_from (kind, "util-crypto-hkdf", __VA_ARGS__) |
Functions | |
static enum GNUNET_GenericReturnValue | hkdf_expand (void *result, size_t out_len, const unsigned char *prk, size_t prk_len, va_list argp) |
enum GNUNET_GenericReturnValue | GNUNET_CRYPTO_hkdf_expand_v (void *result, size_t out_len, const struct GNUNET_ShortHashCode *prk, va_list argp) |
HKDF-Expand using SHA256. More... | |
enum GNUNET_GenericReturnValue | GNUNET_CRYPTO_hkdf_expand (void *result, size_t out_len, const struct GNUNET_ShortHashCode *prk,...) |
HKDF-Expand using SHA256. More... | |
enum GNUNET_GenericReturnValue | GNUNET_CRYPTO_hkdf_gnunet_v (void *result, size_t out_len, const void *xts, size_t xts_len, const void *skm, size_t skm_len, va_list argp) |
Derive key. More... | |
enum GNUNET_GenericReturnValue | GNUNET_CRYPTO_hkdf_gnunet (void *result, size_t out_len, const void *xts, size_t xts_len, const void *skm, size_t skm_len,...) |
A peculiar HKDF instantiation that tried to mimic Truncated NMAC. More... | |
enum GNUNET_GenericReturnValue | GNUNET_CRYPTO_hkdf_extract (struct GNUNET_ShortHashCode *prk, const void *xts, size_t xts_len, const void *skm, size_t skm_len) |
HKDF-Extract using SHA256. More... | |
#define LOG | ( | kind, | |
... | |||
) | GNUNET_log_from (kind, "util-crypto-hkdf", __VA_ARGS__) |
Definition at line 41 of file crypto_hkdf.c.
|
static |
Definition at line 49 of file crypto_hkdf.c.
References consensus-simulation::args, ctx, GNUNET_break, GNUNET_memcpy, GNUNET_SYSERR, GNUNET_YES, result, and st.
Referenced by GNUNET_CRYPTO_hkdf_expand_v(), and GNUNET_CRYPTO_hkdf_gnunet_v().