Lines Matching refs:msg
31 void lmots_sign_verify_test(data_t *msg, data_t *key_id, int leaf_id,
45 msg->x, msg->len, sig, sizeof(sig), NULL), 0);
46 TEST_EQUAL(mbedtls_lmots_verify(&pub_ctx, msg->x, msg->len, sig, sizeof(sig)), 0);
78 void lmots_verify_test(data_t *msg, data_t *sig, data_t *pub_key,
89 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len), expected_rc);
93 if (msg->len >= 1) {
95 msg->x[0] ^= 1;
96 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len),
98 msg->x[0] ^= 1;
101 msg->x[msg->len - 1] ^= 1;
102 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len),
104 msg->x[msg->len - 1] ^= 1;
109 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len),
115 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len),
130 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, tmp_sig, size),
199 void lmots_reuse_test(data_t *msg, data_t *key_id, int leaf_id, data_t *seed)
209 msg->x, msg->len, sig, sizeof(sig), NULL), 0);
215 msg->x, msg->len, sig, sizeof(sig), NULL),
224 void lmots_signature_leak_test(data_t *msg, data_t *key_id, int leaf_id,
240 msg->x, msg->len, sig, sizeof(sig), NULL), 0);