1 /* Copyright (c) 2001, Matej Pfajfar.
2 * Copyright (c) 2001-2004, Roger Dingledine.
3 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4 * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
10 * \brief Headers for crypto_hkdf.h
13 #ifndef TOR_CRYPTO_HKDF_H
14 #define TOR_CRYPTO_HKDF_H
16 #include "lib/cc/torint.h"
18 int crypto_expand_key_material_TAP(const uint8_t *key_in
,
20 uint8_t *key_out
, size_t key_out_len
);
21 int crypto_expand_key_material_rfc5869_sha256(
22 const uint8_t *key_in
, size_t key_in_len
,
23 const uint8_t *salt_in
, size_t salt_in_len
,
24 const uint8_t *info_in
, size_t info_in_len
,
25 uint8_t *key_out
, size_t key_out_len
);
27 #endif /* !defined(TOR_CRYPTO_HKDF_H) */