19#ifndef PROTOCORE_HKDF_SHA384_H
20#define PROTOCORE_HKDF_SHA384_H
24#if PROTOCORE_ENABLE_HKDF_SHA384
29#define PROTOCORE_HKDF_SHA384_HASH_LEN 48
33#define PROTOCORE_HKDF_SHA384_LABEL_PREFIX "tls13 "
46} HkdfSha384ExtractArgs;
56} HkdfSha384ExpandArgs;
61 const uint8_t *secret;
65 const char *label_prefix;
66} HkdfSha384ExpandLabelArgs;
71 const uint8_t *secret;
73 const uint8_t *context;
77 const char *label_prefix;
78} HkdfSha384ExpandLabelCtxArgs;
123 HkdfSha384ExtractArgs extract_args;
124 HkdfSha384ExpandArgs expand_args;
125 HkdfSha384ExpandLabelArgs expand_label_args;
126 HkdfSha384ExpandLabelCtxArgs expand_label_ctx_args;
131extern HkdfSha384Vars HkdfSha384V;
136 void (*
const extract)(uint8_t *work);
137 void (*
const expand)(uint8_t *work);
138 void (*
const expand_label)(uint8_t *work);
139 void (*
const expand_label_ctx)(uint8_t *work);
144void protocore_hkdf_sha384_extract(uint8_t *work);
145void protocore_hkdf_sha384_expand(uint8_t *work);
146void protocore_hkdf_sha384_expand_label(uint8_t *work);
147void protocore_hkdf_sha384_expand_label_ctx(uint8_t *work);
153static const HkdfSha384Ns HkdfSha384 __attribute__((unused)) = {
154 .extract = protocore_hkdf_sha384_extract,
155 .expand = protocore_hkdf_sha384_expand,
156 .expand_label = protocore_hkdf_sha384_expand_label,
157 .expand_label_ctx = protocore_hkdf_sha384_expand_label_ctx,
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS