|
Botan 3.14.1
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. | |
| LMOTS_Public_Key (const LMOTS_Private_Key &lmots_sk, Hash_Engine &engine) | |
| As above, but using a caller-provided hash engine, allowing its reuse over many key derivations. | |
| 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
|
explicit |
Derivivation of an LMOTS public key using an LMOTS_Private_Key as defined in RFC 8554 4.3.
Definition at line 390 of file lm_ots.cpp.
References LMOTS_Public_Key(), and Botan::OTS_Instance::params().
Referenced by LMOTS_Public_Key().
| Botan::LMOTS_Public_Key::LMOTS_Public_Key | ( | const LMOTS_Private_Key & | lmots_sk, |
| Hash_Engine & | engine ) |
As above, but using a caller-provided hash engine, allowing its reuse over many key derivations.
Definition at line 393 of file lm_ots.cpp.
References Botan::LMOTS_Private_Key::chain_input(), Botan::copy_mem(), Botan::LMOTS_Params::hash(), Botan::OTS_Instance::identifier(), Botan::OTS_Instance::OTS_Instance(), 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 339 of file lm_ots.h.
References Botan::OTS_Instance::identifier(), K(), Botan::OTS_Instance::OTS_Instance(), Botan::OTS_Instance::params(), and Botan::OTS_Instance::q().
|
inlineinherited |
The LMS identifier of the LMS tree containing this OTS instance ('I' in RFC 8554).
Definition at line 241 of file lm_ots.h.
Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), OTS_Instance(), and Botan::LMOTS_Private_Key::sign().
|
inline |
The public key final hash value (K in RFC 8554 4.3 ).
Definition at line 347 of file lm_ots.h.
Referenced by LMOTS_Public_Key().
|
inlineinherited |
The LMOTS parameters.
Definition at line 236 of file lm_ots.h.
Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), OTS_Instance(), and Botan::LMOTS_Private_Key::sign().
|
inlineinherited |
The index of the LMS tree leaf associated with this OTS instance.
Definition at line 246 of file lm_ots.h.
Referenced by Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Private_Key::LMOTS_Private_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), Botan::LMOTS_Public_Key::LMOTS_Public_Key(), OTS_Instance(), and Botan::LMOTS_Private_Key::sign().