summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hkdf
diff options
context:
space:
mode:
authortb <>2021-12-12 21:27:38 +0000
committertb <>2021-12-12 21:27:38 +0000
commita0b1347b1dec62a1a5e864ed59314d2e9b42e15b (patch)
tree110aa6f619f19831c621f32e98d757ca15d75e3e /src/lib/libcrypto/hkdf
parentef37d8e11b67b24d718fb50ca36b24bf266259ad (diff)
downloadopenbsd-a0b1347b1dec62a1a5e864ed59314d2e9b42e15b.tar.gz
openbsd-a0b1347b1dec62a1a5e864ed59314d2e9b42e15b.tar.bz2
openbsd-a0b1347b1dec62a1a5e864ed59314d2e9b42e15b.zip
Add a mostly empty hmac_local.h. HMAC_CTX and a few other things
from hmac.h will be moved there in an umpcoming bump. Include this file where it will be needed. ok inoguchi
Diffstat (limited to 'src/lib/libcrypto/hkdf')
-rw-r--r--src/lib/libcrypto/hkdf/hkdf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/hkdf/hkdf.c b/src/lib/libcrypto/hkdf/hkdf.c
index e912481d48..f33ba79891 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.5 2021/08/27 16:12:33 tb Exp $ */ 1/* $OpenBSD: hkdf.c,v 1.6 2021/12/12 21:27:37 tb 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
@@ -21,6 +21,8 @@
21#include <openssl/err.h> 21#include <openssl/err.h>
22#include <openssl/hmac.h> 22#include <openssl/hmac.h>
23 23
24#include "hmac_local.h"
25
24/* https://tools.ietf.org/html/rfc5869#section-2 */ 26/* https://tools.ietf.org/html/rfc5869#section-2 */
25int 27int
26HKDF(uint8_t *out_key, size_t out_len, const EVP_MD *digest, 28HKDF(uint8_t *out_key, size_t out_len, const EVP_MD *digest,