lopy4/components/hash-sigs-master/hss_common.c
/*
 * Get the length of the public key, given this particular parameter set
 */
Get the length of the public key, given this particular parameter set
Get the length of the public key given this particular parameter set
size_t hss_get_public_key_len(unsigned levels,
                   const param_set_t *lm_type,
                   const param_set_t *lm_ots_type) {
    if (levels < MIN_HSS_LEVELS || levels > MAX_HSS_LEVELS) return 0;
    size_t first_pubkey = lm_get_public_key_len(lm_type[0]);
    if (first_pubkey == 0) return 0;
    return 4 + first_pubkey;
}
size_t hss_get_public_key_len ( unsigned levels , const param_set_t * lm_type , const param_set_t * lm_ots_type ) { if ( levels < MIN_HSS_LEVELS || levels > MAX_HSS_LEVELS ) return 0 ; size_t first_pubkey = lm_get_public_key_len ( lm_type [ 0 ] ) ; if ( first_pubkey == 0 ) return 0 ; return 4 + first_pubkey ; }
Get the length of the public key, given this particular parameter set
Get the length of the public key given this particular parameter set