Botan 3.13.0
Crypto and TLS for C&
xmd.h
Go to the documentation of this file.
1/*
2* (C) 2024 Jack Lloyd
3*
4* Botan is released under the Simplified BSD License (see license.txt)
5*/
6
7#ifndef BOTAN_KDF_XMD_H_
8#define BOTAN_KDF_XMD_H_
9
10#include <botan/types.h>
11#include <span>
12
13namespace Botan {
14
15class HashFunction;
16
17/**
18* XMD hash function from RFC 9380
19*
20* This is only used internally to implement hash2curve so is not
21* exposed to end users.
22*
23* The hash must be in its initial state. The caller is responsible for
24* checking that the hash is strong enough for the target security level,
25* as required by RFC 9380.
26*/
28 std::span<uint8_t> output,
29 std::span<const uint8_t> input,
30 std::span<const uint8_t> domain_sep);
31
32} // namespace Botan
33
34#endif
#define BOTAN_TEST_API
Definition api.h:41
void expand_message_xmd(HashFunction &hash, std::span< uint8_t > output, std::span< const uint8_t > input, std::span< const uint8_t > domain_sep)
Definition xmd.cpp:17