summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hkdf/hkdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/hkdf/hkdf.c')
-rw-r--r--src/lib/libcrypto/hkdf/hkdf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/hkdf/hkdf.c b/src/lib/libcrypto/hkdf/hkdf.c
index 9e0e206324..4f9c9e566a 100644
--- a/src/lib/libcrypto/hkdf/hkdf.c
+++ b/src/lib/libcrypto/hkdf/hkdf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hkdf.c,v 1.9 2023/06/01 02:34:23 tb Exp $ */ 1/* $OpenBSD: hkdf.c,v 1.10 2023/07/07 13:54:46 beck Exp $ */
2/* Copyright (c) 2014, Google Inc. 2/* Copyright (c) 2014, Google Inc.
3 * 3 *
4 * Permission to use, copy, modify, and/or distribute this software for any 4 * Permission to use, copy, modify, and/or distribute this software for any
@@ -42,6 +42,7 @@ HKDF(uint8_t *out_key, size_t out_len, const EVP_MD *digest,
42 42
43 return 1; 43 return 1;
44} 44}
45LCRYPTO_ALIAS(HKDF);
45 46
46/* https://tools.ietf.org/html/rfc5869#section-2.2 */ 47/* https://tools.ietf.org/html/rfc5869#section-2.2 */
47int 48int
@@ -63,6 +64,7 @@ HKDF_extract(uint8_t *out_key, size_t *out_len,
63 *out_len = len; 64 *out_len = len;
64 return 1; 65 return 1;
65} 66}
67LCRYPTO_ALIAS(HKDF_extract);
66 68
67/* https://tools.ietf.org/html/rfc5869#section-2.3 */ 69/* https://tools.ietf.org/html/rfc5869#section-2.3 */
68int 70int
@@ -118,3 +120,4 @@ HKDF_expand(uint8_t *out_key, size_t out_len,
118 CRYPTOerror(ERR_R_CRYPTO_LIB); 120 CRYPTOerror(ERR_R_CRYPTO_LIB);
119 return ret; 121 return ret;
120} 122}
123LCRYPTO_ALIAS(HKDF_expand);