Lines Matching full:selector
95 * This function maps a selector value to a specific SLH-DSA algorithm
100 * @param selector A random selector value used to determine the key type.
107 static const char *select_keytype(uint8_t selector, uint32_t *keysize) in select_keytype() argument
115 * So use our random selector value to get one of them by computing in select_keytype()
119 choice = (selector % 12) + 1460; in select_keytype()
155 * @brief Generates two SLH-DSA key pairs based on consumed selector values.
157 * This function extracts two selector values from the provided buffer,
161 * @param buf Pointer to a buffer containing selector values. The buffer
171 uint8_t selector = 0; in slh_dsa_gen_keys() local
175 *buf = consume_uint8t(*buf, len, &selector); in slh_dsa_gen_keys()
176 keytype = select_keytype(selector, &keysize); in slh_dsa_gen_keys()
179 *buf = consume_uint8t(*buf, len, &selector); in slh_dsa_gen_keys()
180 keytype = select_keytype(selector, &keysize); in slh_dsa_gen_keys()
190 * This function extracts a selector value from the provided buffer,
196 * @param buf Pointer to a buffer containing the selector value. The
208 uint8_t selector = 0; in slh_dsa_gen_key_with_params() local
221 *buf = consume_uint8t(*buf, len, &selector); in slh_dsa_gen_key_with_params()
222 keytype = select_keytype(selector, &keysize); in slh_dsa_gen_key_with_params()
297 * @param buf Pointer to a buffer containing the selector and message data.
314 uint8_t selector = 0; in slh_dsa_sign_verify() local
324 *buf = consume_uint8t(*buf, len, &selector); in slh_dsa_sign_verify()
328 keytype = select_keytype(selector, &keylen); in slh_dsa_sign_verify()
333 *buf = consume_uint8t(*buf, len, &selector); in slh_dsa_sign_verify()
344 if (msg_len > 255 && (selector & 0x1) != 0) in slh_dsa_sign_verify()
349 if (selector & 0x1) in slh_dsa_sign_verify()
353 if (selector & 0x2) { in slh_dsa_sign_verify()
354 intval1 = selector & 0x4; in slh_dsa_sign_verify()
359 if (selector & 0x8) { in slh_dsa_sign_verify()
360 intval2 = selector & 0x10; in slh_dsa_sign_verify()