Lines Matching refs:output
199 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
207 TEST_EQUAL(0, mbedtls_md(md_info, src, src_len, output));
209 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
219 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
227 TEST_EQUAL(0, mbedtls_md(md_info, src_str->x, src_str->len, output));
230 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
243 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
271 TEST_EQUAL(0, mbedtls_md_finish(&ctx, output));
272 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
275 memset(output, 0x00, sizeof(output));
278 TEST_EQUAL(0, mbedtls_md_finish(&ctx_copy, output));
279 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
291 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
318 TEST_EQUAL(0, mbedtls_md_finish(&ctx, output));
319 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
322 memset(output, 0x00, sizeof(output));
325 TEST_EQUAL(0, mbedtls_md_finish(&ctx_copy, output));
326 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
340 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
350 src_str->x, src_str->len, output));
352 TEST_MEMORY_COMPARE(output, trunc_size, hash->x, hash->len);
363 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
385 TEST_EQUAL(0, mbedtls_md_hmac_finish(&ctx, output));
387 TEST_MEMORY_COMPARE(output, trunc_size, hash->x, hash->len);
390 memset(output, 0x00, sizeof(output));
395 TEST_EQUAL(0, mbedtls_md_hmac_finish(&ctx, output));
397 TEST_MEMORY_COMPARE(output, trunc_size, hash->x, hash->len);
409 unsigned char output[MBEDTLS_MD_MAX_SIZE] = { 0 };
417 TEST_EQUAL(0, mbedtls_md_file(md_info, filename, output));
419 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);