Botan
2.1.0
Crypto and TLS for C++11
|
#include <xmss_signature.h>
Public Member Functions | |
secure_vector< uint8_t > | bytes () const |
const secure_vector< uint8_t > | randomness () const |
secure_vector< uint8_t > & | randomness () |
void | set_randomness (const secure_vector< uint8_t > &randomness) |
void | set_randomness (secure_vector< uint8_t > &&randomness) |
void | set_tree (const XMSS_WOTS_PublicKey::TreeSignature &tree_sig) |
void | set_tree (XMSS_WOTS_PublicKey::TreeSignature &&tree_sig) |
void | set_unused_leaf_idx (size_t idx) |
const XMSS_WOTS_PublicKey::TreeSignature & | tree () const |
XMSS_WOTS_PublicKey::TreeSignature & | tree () |
size_t | unused_leaf_index () const |
XMSS_Signature (XMSS_Parameters::xmss_algorithm_t oid, const secure_vector< uint8_t > &raw_sig) | |
XMSS_Signature (size_t leaf_idx, const secure_vector< uint8_t > &randomness, const XMSS_WOTS_PublicKey::TreeSignature &tree_sig) | |
XMSS_Signature (size_t leaf_idx, secure_vector< uint8_t > &&randomness, XMSS_WOTS_PublicKey::TreeSignature &&tree_sig) | |
Definition at line 21 of file xmss_signature.h.
Botan::XMSS_Signature::XMSS_Signature | ( | XMSS_Parameters::xmss_algorithm_t | oid, |
const secure_vector< uint8_t > & | raw_sig | ||
) |
Creates a signature from an XMSS signature method and a uint8_t sequence representing a raw signature.
oid | XMSS signature method |
raw_sig | An XMSS signature serialized using XMSS_Signature::bytes(). |
Definition at line 12 of file xmss_signature.cpp.
References Botan::XMSS_WOTS_PublicKey::TreeSignature::authentication_path(), BOTAN_ASSERT, Botan::XMSS_Parameters::element_size(), Botan::XMSS_Parameters::len(), Botan::XMSS_WOTS_PublicKey::TreeSignature::ots_signature(), and Botan::XMSS_Parameters::tree_height().
|
inline |
Creates an XMSS Signature from a leaf index used for signature generation, a random value and a tree signature.
leaf_idx | Leaf index used to generate the signature. |
randomness | A random value. |
tree_sig | A tree signature. |
Definition at line 43 of file xmss_signature.h.
|
inline |
Creates an XMSS Signature from a leaf index used for signature generation, a random value and a tree signature.
leaf_idx | Leaf index used to generate the signature. |
randomness | A random value. |
tree_sig | A tree signature. |
Definition at line 57 of file xmss_signature.h.
secure_vector< uint8_t > Botan::XMSS_Signature::bytes | ( | ) | const |
Generates a serialized representation of XMSS Signature by concatenating the following elements in order: 8-byte leaf index, n-bytes randomness, ots_signature, authentication path.
n is the element_size(), len equal to len(), h the tree height defined by the chosen XMSS signature method.
Definition at line 62 of file xmss_signature.cpp.
References Botan::XMSS_WOTS_PublicKey::TreeSignature::authentication_path(), Botan::XMSS_WOTS_PublicKey::TreeSignature::ots_signature(), and tree().
|
inline |
Definition at line 66 of file xmss_signature.h.
Referenced by set_randomness().
|
inline |
Definition at line 71 of file xmss_signature.h.
|
inline |
Definition at line 76 of file xmss_signature.h.
References randomness().
|
inline |
Definition at line 81 of file xmss_signature.h.
References randomness().
|
inline |
Definition at line 96 of file xmss_signature.h.
|
inline |
Definition at line 101 of file xmss_signature.h.
|
inline |
Definition at line 64 of file xmss_signature.h.
|
inline |
Definition at line 86 of file xmss_signature.h.
Referenced by bytes().
|
inline |
Definition at line 91 of file xmss_signature.h.
|
inline |
Definition at line 63 of file xmss_signature.h.