◆ jxmssaddr() [1/2]
Standard constructor with type, all addresses set to zero
- Parameters
-
type | - WOTS+ address type (OTSADDR, LTREEADDR, HASHADDR) |
◆ jxmssaddr() [2/2]
ProtocolPP::jxmssaddr::jxmssaddr |
( |
ots_addrtype_t |
type, |
|
|
uint32_t |
layeraddr, |
|
|
uint64_t |
treeaddr, |
|
|
uint32_t |
addrorpad, |
|
|
uint32_t |
chainorheight, |
|
|
uint32_t |
hashorindex, |
|
|
uint32_t |
hashnmask |
|
) |
| |
Constructor with type and all addresses
- Parameters
-
type | - WOTS+ address type (OTSHASH, LTREEADDR, HASHADDR) |
layeraddr | - Address of the tree layer |
treeaddr | - Address of the tree |
addrorpad | - OTS, LTREE address or PAD value |
chainorheight | - Chain address or tree height |
hashorindex | - Hash address or tree index |
hashnmask | - Hash and mask value |
◆ get_field()
template<typename T >
T ProtocolPP::jxmssaddr::get_field |
( |
field_t |
field | ) |
|
Returns the XMSS address field
XMSSADDR Get Fields
field type | field name | Example |
otsaddr_t | TYPE | otsaddr_t type = get_field<otsaddr_t>(field_t::TYPE) |
uint32_t | LAYERADDR | uint32_t addr = get_field<uint32_t>(field_t::LAYERADDR) |
uint64_t | TREEADDR | uint64_t addr = get_field<uint64_t>(field_t::TREEADDR) |
uint32_t | TYPEVAL | uint32_t addr = get_field<uint32_t>(field_t::TYPEVAL) |
uint32_t | ADDRORPAD | uint32_t addr = get_field<uint32_t>(field_t::ADDRORPAD) |
uint32_t | CHAINORHEIGHT | uint32_t addr = get_field<uint32_t>(field_t::CHAINORHEIGHT) |
uint32_t | HASHORINDEX | uint32_t addr = get_field<uint32_t>(field_t::HASHORINDEX) |
uint32_t | HASHNMASK | uint32_t addr = get_field<uint32_t>(field_t::HASHNMASK) |
jarray<uint8_t> | BYTEARRAY | jarray<uint8_t> bytearray = get_field<jarray<uint8_t>>(field_t::BYTEARRAY) |
- Parameters
-
field | - field to retrieve from the IP security association |
- Returns
- field of the IP security association
◆ set_field()
template<typename T >
void ProtocolPP::jxmssaddr::set_field |
( |
field_t |
field, |
|
|
T |
fieldval |
|
) |
| |
Allows the user to update the XMSS address field
XMSSADDR Set Fields
field type | field name | Example |
otsaddr_t | TYPE | set_field<otsaddr_t>(field_t::TYPE, otsaddr_t::OTSADDR) |
uint32_t | LAYERADDR | set_field<uint32_t>(field_t::LAYERADDR, 0x12345678) |
uint64_t | TREEADDR | set_field<uint64_t>(field_t::TREEADDR, 0x9876543212345678) |
uint32_t | TYPEVAL | set_field<uint32_t>(field_t::TYPEVAL, 0x12345678) |
uint32_t | ADDRORPAD | set_field<uint32_t>(field_t::ADDRORPAD, 0x12345678) |
uint32_t | CHAINORHEIGHT | set_field<uint32_t>(field_t::CHAINORHEIGHT, 0x12345678) |
uint32_t | HASHORINDEX | set_field<uint32_t>(field_t::HASHORINDEX, 0x12345678) |
uint32_t | HASHNMASK | set_field<uint32_t>(field_t::HASHNMASK, 0x12345678) |
- Parameters
-
field | - field to update |
fieldval | - value to update |
The documentation for this class was generated from the following file:
- jxmss/include/jxmssaddr.h