summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-07-20 18:06:55 +0100
committerMatt Caswell <matt@openssl.org>2020-08-10 14:51:59 +0100
commit05d2f72e79cdb1736681726dcd9a325491acf002 (patch)
tree865ff2e2e1b9c3e3824a2dd13de6dd62c865d11c /test
parentac2d58c72b4dc4a8c74eef893000306bf78a30fd (diff)
Extend the EVP_PKEY KDF to KDF provider bridge to also support HKDF
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12573)
Diffstat (limited to 'test')
-rw-r--r--test/pkey_meth_kdf_test.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/pkey_meth_kdf_test.c b/test/pkey_meth_kdf_test.c
index 55b10f546e..9fdec0a470 100644
--- a/test/pkey_meth_kdf_test.c
+++ b/test/pkey_meth_kdf_test.c
@@ -84,15 +84,18 @@ static int test_kdf_hkdf(void)
TEST_error("EVP_PKEY_CTX_set_hkdf_md");
goto err;
}
- if (EVP_PKEY_CTX_set1_hkdf_salt(pctx, "salt", 4) <= 0) {
+ if (EVP_PKEY_CTX_set1_hkdf_salt(pctx, (const unsigned char *)"salt", 4)
+ <= 0) {
TEST_error("EVP_PKEY_CTX_set1_hkdf_salt");
goto err;
}
- if (EVP_PKEY_CTX_set1_hkdf_key(pctx, "secret", 6) <= 0) {
+ if (EVP_PKEY_CTX_set1_hkdf_key(pctx, (const unsigned char *)"secret", 6)
+ <= 0) {
TEST_error("EVP_PKEY_CTX_set1_hkdf_key");
goto err;
}
- if (EVP_PKEY_CTX_add1_hkdf_info(pctx, "label", 5) <= 0) {
+ if (EVP_PKEY_CTX_add1_hkdf_info(pctx, (const unsigned char *)"label", 5)
+ <= 0) {
TEST_error("EVP_PKEY_CTX_set1_hkdf_info");
goto err;
}