Lines Matching refs:len
42 key_id->x, leaf_id, seed->x, seed->len), 0);
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);
65 key_id->x, leaf_id, seed->x, seed->len), 0);
87 TEST_EQUAL(mbedtls_lmots_import_public_key(&ctx, pub_key->x, pub_key->len), 0);
89 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len), expected_rc);
93 if (msg->len >= 1) {
96 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len),
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),
114 sig->x[sig->len - 1] ^= 1;
115 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, sig->x, sig->len),
117 sig->x[sig->len - 1] ^= 1;
120 for (size = 0; size < sig->len; size++) {
121 if (size == sig->len) {
127 memcpy(tmp_sig, sig->x, MIN(size, sig->len));
130 TEST_EQUAL(mbedtls_lmots_verify(&ctx, msg->x, msg->len, tmp_sig, size),
152 TEST_EQUAL(mbedtls_lmots_import_public_key(&ctx, pub_key->x, pub_key->len),
165 TEST_MEMORY_COMPARE(pub_key->x, pub_key->len,
186 TEST_MEMORY_COMPARE(pub_key->x, pub_key->len,
207 seed->len), 0);
209 msg->x, msg->len, sig, sizeof(sig), NULL), 0);
215 msg->x, msg->len, sig, sizeof(sig), NULL),
238 seed->len), 0);
240 msg->x, msg->len, sig, sizeof(sig), NULL), 0);