hkdf.h 412 B

123456789101112131415161718192021222324
  1. /*
  2. * Based on
  3. * 1. OpenSSL lib
  4. * 2. PurpleI2P source code
  5. * 3. cppcodec lib
  6. *
  7. * PUBLIC DOMAIN C++ WRAPPER
  8. * acetone, 2022
  9. */
  10. #ifndef HKDF_H
  11. #define HKDF_H
  12. #include <array>
  13. #include <string>
  14. using uint8_t = unsigned char;
  15. namespace FriendlyCrypto {
  16. std::array<uint8_t, 32> hkdf (const std::array<uint8_t, 32> &key, const std::string &info, const uint8_t *salt = nullptr) noexcept;
  17. }
  18. #endif // HKDF_H