Skip to content

Commit cca6cc0

Browse files
committed
Make new HDFK _ex functions public.
1 parent 0d05709 commit cca6cc0

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

wolfssl/wolfcrypt/hmac.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,14 @@ WOLFSSL_LOCAL int _InitHmac(Hmac* hmac, int type, void* heap);
210210

211211
#ifdef HAVE_HKDF
212212

213-
WOLFSSL_LOCAL int wc_HKDF_Extract_ex(int type, const byte* salt, word32 saltSz,
214-
const byte* inKey, word32 inKeySz, byte* out, void* heap, int devId);
213+
WOLFSSL_API int wc_HKDF_Extract_ex(int type, const byte* salt, word32 saltSz,
214+
const byte* inKey, word32 inKeySz, byte* out,
215+
void* heap, int devId);
215216

216217
WOLFSSL_API int wc_HKDF_Extract(int type, const byte* salt, word32 saltSz,
217218
const byte* inKey, word32 inKeySz, byte* out);
218219

219-
WOLFSSL_LOCAL int wc_HKDF_Expand_ex(int type, const byte* inKey, word32 inKeySz,
220+
WOLFSSL_API int wc_HKDF_Expand_ex(int type, const byte* inKey, word32 inKeySz,
220221
const byte* info, word32 infoSz,
221222
byte* out, word32 outSz, void* heap, int devId);
222223
WOLFSSL_API int wc_HKDF_Expand(int type, const byte* inKey, word32 inKeySz,

wolfssl/wolfcrypt/kdf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ enum {
7676
MAX_TLS13_HKDF_LABEL_SZ = 47 + WC_MAX_DIGEST_SIZE
7777
};
7878

79-
WOLFSSL_LOCAL int wc_Tls13_HKDF_Extract_ex(byte* prk, const byte* salt,
80-
word32 saltLen, byte* ikm, word32 ikmLen, int digest,
81-
void* heap, int devId);
79+
WOLFSSL_API int wc_Tls13_HKDF_Extract_ex(byte* prk, const byte* salt,
80+
word32 saltLen, byte* ikm, word32 ikmLen, int digest,
81+
void* heap, int devId);
8282

8383
WOLFSSL_API int wc_Tls13_HKDF_Extract(byte* prk, const byte* salt,
8484
word32 saltLen, byte* ikm, word32 ikmLen, int digest);
8585

86-
WOLFSSL_LOCAL int wc_Tls13_HKDF_Expand_Label_ex(byte* okm, word32 okmLen,
86+
WOLFSSL_API int wc_Tls13_HKDF_Expand_Label_ex(byte* okm, word32 okmLen,
8787
const byte* prk, word32 prkLen,
8888
const byte* protocol, word32 protocolLen,
8989
const byte* label, word32 labelLen,

0 commit comments

Comments
 (0)