Botan 3.11.0
Crypto and TLS for C&
dilithium_shake_xof.cpp
Go to the documentation of this file.
1/*
2* (C) 2026 Jack Lloyd
3*
4* Botan is released under the Simplified BSD License (see license.txt)
5*/
6
7#include <botan/internal/dilithium_shake_xof.h>
8
9#include <botan/internal/loadstor.h>
10
11namespace Botan {
12
14
15//static
16std::unique_ptr<Botan::XOF> DilithiumShakeXOF::createXOF(std::string_view name,
17 std::span<const uint8_t> seed,
18 uint16_t nonce) {
19 auto xof = Botan::XOF::create_or_throw(name);
20 xof->update(seed);
21 xof->update(store_le(nonce));
22 return xof;
23}
24
25} // namespace Botan
static std::unique_ptr< XOF > create_or_throw(std::string_view algo_spec, std::string_view provider="")
Definition xof.cpp:54
constexpr auto store_le(ParamTs &&... params)
Definition loadstor.h:736