xilsecure
Vitis Drivers API Documentation
XSecure_LmsOtsSignToPubKeyHash_ Union Reference

Structure used when validating LMS OTS, once hash chain is completed, result needs to be stored so that they can be further concatenated and hashed to get OTS public key, this provides a way to access members and fill data in a structured way. More...

Detailed Description

Structure used when validating LMS OTS, once hash chain is completed, result needs to be stored so that they can be further concatenated and hashed to get OTS public key, this provides a way to access members and fill data in a structured way.

Size = 16(I) + 4(q) + 2(D_PBLC) + (p * H Len (32))

Field Documentation

u8 XSecure_LmsOtsSignToPubKeyHash_::D_PBLC[2U]

D_PBLC - XSECURE_D_PBLC Size - 2 Bytes, 20 to 21 bytes.

u8 XSecure_LmsOtsSignToPubKeyHash_::I[XSECURE_LMS_I_FIELD_SIZE]

I - Merkle Tree's unique identifier (uniformly random 16-byte string) Size - 16 bytes, 0 to 15 bytes.

u32 XSecure_LmsOtsSignToPubKeyHash_::q

q - The leaf number q, goes from 0 on left most leaf to right most (2^h -1), in a single tree Size - 4 bytes, 16 to 19 bytes

u8 XSecure_LmsOtsSignToPubKeyHash_::z[XSECURE_LMS_OTS_SIGN_VERIF_CHAIN_TMP_BUFF_z_SIZE]

z - Each z is a XSECURE_LMS_N_FIELD_SIZE byte length, and ranges from 0 to p-1 Size - (32 Bytes * p)