Botan 3.5.0
Crypto and TLS for C&
|
Representation of an OTS public key. More...
#include <lm_ots.h>
Public Member Functions | |
const LMS_Identifier & | identifier () const |
The LMS identifier of the LMS tree containing this OTS instance ('I' in RFC 8554) | |
const LMOTS_K & | K () const |
The public key final hash value (K in RFC 8554 4.3 ) | |
LMOTS_Public_Key (const LMOTS_Params ¶ms, const LMS_Identifier &identifier, LMS_Tree_Node_Idx q, LMOTS_K K) | |
Construct a new LMOTS public key object using the bytes. | |
LMOTS_Public_Key (const LMOTS_Private_Key &lmots_sk) | |
Derivivation of an LMOTS public key using an LMOTS_Private_Key as defined in RFC 8554 4.3. | |
const LMOTS_Params & | params () const |
The LMOTS parameters. | |
LMS_Tree_Node_Idx | q () const |
The index of the LMS tree leaf associated with this OTS instance. | |
Representation of an OTS public key.
Contains the public key bytes as defined in RFC 8554 4.3:
u32str(type) || I || u32str(q) || K
Botan::LMOTS_Public_Key::LMOTS_Public_Key | ( | const LMOTS_Private_Key & | lmots_sk | ) |
Derivivation of an LMOTS public key using an LMOTS_Private_Key as defined in RFC 8554 4.3.
Definition at line 308 of file lm_ots.cpp.
References Botan::LMOTS_Private_Key::chain_input(), Botan::LMOTS_Params::coef_max(), Botan::LMOTS_Params::hash(), Botan::OTS_Instance::identifier(), Botan::LMOTS_Params::n(), Botan::OTS_Instance::params(), Botan::OTS_Instance::q(), and Botan::store_be().
|
inline |
Construct a new LMOTS public key object using the bytes.
Note that the passed params, identifier and q value should match with the prefix in pub_key_bytes
.
Definition at line 320 of file lm_ots.h.
|
inlineinherited |
The LMS identifier of the LMS tree containing this OTS instance ('I' in RFC 8554)
Definition at line 238 of file lm_ots.h.
Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), LMOTS_Public_Key(), and Botan::LMOTS_Private_Key::sign().
|
inline |
|
inlineinherited |
The LMOTS parameters.
Definition at line 233 of file lm_ots.h.
Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), LMOTS_Public_Key(), and Botan::LMOTS_Private_Key::sign().
|
inlineinherited |
The index of the LMS tree leaf associated with this OTS instance.
Definition at line 243 of file lm_ots.h.
Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), LMOTS_Public_Key(), and Botan::LMOTS_Private_Key::sign().