Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/test_hkdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ static int test_hkdf_calc(OSSL_LIB_CTX* libCtx, unsigned char *key, int keyLen,
return err;
}

#if OPENSSL_VERSION_NUMBER <= 0x30400000L

static int test_hkdf_double_set_salt(OSSL_LIB_CTX* libCtx, unsigned char *key,
int keyLen, const EVP_MD *md, int mode)
{
Expand Down Expand Up @@ -165,6 +167,8 @@ static int test_hkdf_double_set_salt(OSSL_LIB_CTX* libCtx, unsigned char *key,
return err;
}

#endif

static int test_hkdf_md(const EVP_MD *md, int mode)
{
int err = 0;
Expand Down Expand Up @@ -194,6 +198,8 @@ static int test_hkdf_md(const EVP_MD *md, int mode)
err = 1;
}

#if OPENSSL_VERSION_NUMBER <= 0x30400000L

memset(oKey, 0, sizeof(oKey));
memset(wKey, 0, sizeof(wKey));

Expand All @@ -218,6 +224,8 @@ static int test_hkdf_md(const EVP_MD *md, int mode)
err = 1;
}

#endif

return err;
}

Expand Down