crypto_hkdf.h 984 B

12345678910111213141516171819202122232425262728
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file crypto_hkdf.h
  8. *
  9. * \brief Headers for crypto_hkdf.h
  10. **/
  11. #ifndef TOR_CRYPTO_HKDF_H
  12. #define TOR_CRYPTO_HKDF_H
  13. #include "common/util.h"
  14. int crypto_expand_key_material_TAP(const uint8_t *key_in,
  15. size_t key_in_len,
  16. uint8_t *key_out, size_t key_out_len);
  17. int crypto_expand_key_material_rfc5869_sha256(
  18. const uint8_t *key_in, size_t key_in_len,
  19. const uint8_t *salt_in, size_t salt_in_len,
  20. const uint8_t *info_in, size_t info_in_len,
  21. uint8_t *key_out, size_t key_out_len);
  22. #endif /* !defined(TOR_CRYPTO_HKDF_H) */