nit minor changes

This commit is contained in:
Saksik Remy
2022-01-11 10:08:52 +08:00
parent 1a291870a3
commit 30777bb5ee

View File

@@ -1045,7 +1045,6 @@ static int wolfIoT_ecc_keygen(WOLFSSL* ssl, struct ecc_key* key,
static int wolfIoT_hkdf_extract(byte* prk, const byte* salt, word32 saltLen, static int wolfIoT_hkdf_extract(byte* prk, const byte* salt, word32 saltLen,
byte* ikm, word32 ikmLen, int digest, void* ctx) byte* ikm, word32 ikmLen, int digest, void* ctx)
{ {
(void)ctx;
int ret; int ret;
const byte* localSalt; /* either points to user input or tmp */ const byte* localSalt; /* either points to user input or tmp */
byte tmp[WC_MAX_DIGEST_SIZE]; /* localSalt helper */ byte tmp[WC_MAX_DIGEST_SIZE]; /* localSalt helper */
@@ -1066,6 +1065,7 @@ static int wolfIoT_hkdf_extract(byte* prk, const byte* salt, word32 saltLen,
} }
ret = iotsafe_hkdf_extract(prk, localSalt, saltLen, ikm, ikmLen, digest); ret = iotsafe_hkdf_extract(prk, localSalt, saltLen, ikm, ikmLen, digest);
(void)ctx;
return ret; return ret;
} }
#endif #endif