Tor
0.4.7.0-alpha-dev
lib
crypt_ops
crypto_hkdf.h
Go to the documentation of this file.
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 */
6
7
/**
8
* \file crypto_hkdf.h
9
*
10
* \brief Headers for crypto_hkdf.h
11
**/
12
13
#ifndef TOR_CRYPTO_HKDF_H
14
#define TOR_CRYPTO_HKDF_H
15
16
#include "
lib/cc/torint.h
"
17
18
int
crypto_expand_key_material_TAP
(
const
uint8_t *key_in,
19
size_t
key_in_len,
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);
26
27
#endif
/* !defined(TOR_CRYPTO_HKDF_H) */
crypto_expand_key_material_TAP
int crypto_expand_key_material_TAP(const uint8_t *key_in, size_t key_in_len, uint8_t *key_out, size_t key_out_len)
Definition:
crypto_hkdf.c:43
crypto_expand_key_material_rfc5869_sha256
int crypto_expand_key_material_rfc5869_sha256(const uint8_t *key_in, size_t key_in_len, const uint8_t *salt_in, size_t salt_in_len, const uint8_t *info_in, size_t info_in_len, uint8_t *key_out, size_t key_out_len)
Definition:
crypto_hkdf.c:179
torint.h
Integer definitions used throughout Tor.
Generated by
1.9.1