Botan 3.14.1
Crypto and TLS for C&
module_lattice_keys.cpp
Go to the documentation of this file.
1/*
2 * Common private key interface for the module-lattice schemes ML-KEM and ML-DSA
3 *
4 * (C) 2026 Jack Lloyd
5 * (C) 2026 Falko Strenzke - MTG AG
6 *
7 * Botan is released under the Simplified BSD License (see license.txt)
8 */
9
10#include <botan/module_lattice_keys.h>
11
12namespace Botan {
13
17
19 // The "both" format has no raw encoding; the seed is its minimal raw representation.
20 const auto format = private_key_format();
22}
23
24} // namespace Botan
virtual MlPrivateKeyFormat private_key_format() const =0
secure_vector< uint8_t > raw_private_key_bits() const final
virtual secure_vector< uint8_t > formatted_private_key_bits(MlPrivateKeyFormat format) const =0
secure_vector< uint8_t > private_key_bits() const final
virtual secure_vector< uint8_t > formatted_raw_private_key_bits(MlPrivateKeyFormat format) const =0
std::vector< T, secure_allocator< T > > secure_vector
Definition secmem.h:128