Lines Matching +full:in2 +full:-

12  * Test slh-dsa operation.
25 * @brief Consumes an 8-bit unsigned integer from a buffer.
27 * This function extracts an 8-bit unsigned integer from the provided buffer,
32 * @param val Pointer to store the extracted 8-bit value.
42 *len -= sizeof(uint8_t); in consume_uint8t()
95 * This function maps a selector value to a specific SLH-DSA algorithm
114 * There are 12 SLH-DSA algs with registered NIDS at the moment in select_keytype()
125 * man7/EVP_PKEY-SLH-DSA.pod in select_keytype()
155 * @brief Generates two SLH-DSA key pairs based on consumed selector values.
159 * SLH-DSA key pairs.
188 * @brief Generates an SLH-DSA key pair with custom parameters.
192 * SLH-DSA key pair using randomly generated public and private key
234 buflen = ((*buf)[0] & 0x2) ? buflen - 1 : buflen + 1; in slh_dsa_gen_key_with_params()
249 buflen = (*buf[0] & 0x1) ? buflen - 1 : buflen + 1; in slh_dsa_gen_key_with_params()
272 * @brief Frees allocated SLH-DSA key structures.
274 * This function releases memory allocated for SLH-DSA key pairs
278 * @param in2 Pointer to the second input key to be freed.
282 static void slh_dsa_clean_keys(void *in1, void *in2, void *out1, void *out2) in slh_dsa_clean_keys() argument
285 EVP_PKEY_free((EVP_PKEY *)in2); in slh_dsa_clean_keys()
291 * @brief Performs SLH-DSA signing and verification on a given message.
293 * This function generates an SLH-DSA key, signs a message, and verifies
403 * @brief Exports and imports SLH-DSA key pairs, verifying equivalence.
405 * This function extracts key data from two given SLH-DSA keys (`alice` and `bob`),
442 * -1 if the key types are differnt in slh_dsa_export_import()
443 * -2 if the operation is not supported in slh_dsa_export_import()
468 * we might get a simple non-equivalence or a type mismatch here in slh_dsa_export_import()
471 OPENSSL_assert(rc == 0 || rc == -1); in slh_dsa_export_import()
507 * @param in2 Second input parameter for the operation.
511 void (*doit)(uint8_t **buf, size_t *len, void *in1, void *in2,
518 * @param in2 Second input parameter to be cleaned up.
522 void (*cleanup)(void *in1, void *in2, void *out1, void *out2);
527 "Generate SLH-DSA keys",
532 "Generate SLH-DSA keys with params",
537 "SLH-DSA Export/Import",
542 "SLH-DSA sign and verify",
564 * @return 0 on successful execution, -1 if the input is too short.
574 void *in1 = NULL, *in2 = NULL; in FuzzerTestOneInput() local
578 return -1; in FuzzerTestOneInput()
585 return -1; in FuzzerTestOneInput()
596 ops[operation].setup(&buffer_cursor, &len, &in1, &in2); in FuzzerTestOneInput()
598 ops[operation].doit(&buffer_cursor, &len, in1, in2, &out1, &out2); in FuzzerTestOneInput()
600 ops[operation].cleanup(in1, in2, out1, out2); in FuzzerTestOneInput()