Lines Matching refs:output
11 unsigned char output[41];
13 memset(output, 0x00, 41);
16 TEST_ASSERT(mbedtls_sha1(src_str->x, src_str->len, output) == 0);
18 TEST_ASSERT(mbedtls_test_hexcmp(output, hash->x, 20, hash->len) == 0);
45 unsigned char output[57];
47 memset(output, 0x00, 57);
50 TEST_EQUAL(mbedtls_sha256(src_str->x, src_str->len, output, 1), 0);
52 TEST_EQUAL(mbedtls_test_hexcmp(output, hash->x, 28, hash->len), 0);
59 unsigned char output[65];
61 memset(output, 0x00, 65);
64 TEST_EQUAL(mbedtls_sha256(src_str->x, src_str->len, output, 0), 0);
66 TEST_EQUAL(mbedtls_test_hexcmp(output, hash->x, 32, hash->len), 0);
93 unsigned char output[97];
95 memset(output, 0x00, 97);
98 TEST_EQUAL(mbedtls_sha512(src_str->x, src_str->len, output, 1), 0);
100 TEST_EQUAL(mbedtls_test_hexcmp(output, hash->x, 48, hash->len), 0);
107 unsigned char output[129];
109 memset(output, 0x00, 129);
112 TEST_EQUAL(mbedtls_sha512(src_str->x, src_str->len, output, 0), 0);
114 TEST_EQUAL(mbedtls_test_hexcmp(output, hash->x, 64, hash->len), 0);
156 unsigned char *output = NULL;
158 TEST_CALLOC(output, hash->len);
160 TEST_ASSERT(mbedtls_sha3(family, in->x, in->len, output, hash->len) == 0);
162 TEST_MEMORY_COMPARE(output, hash->len, hash->x, hash->len);
165 mbedtls_free(output);
172 unsigned char output[32];
179 TEST_EQUAL(mbedtls_sha3_finish(&ctx, output, 0), MBEDTLS_ERR_SHA3_BAD_INPUT_DATA);
182 TEST_EQUAL(mbedtls_sha3_finish(&ctx, output, 31), MBEDTLS_ERR_SHA3_BAD_INPUT_DATA);
185 TEST_EQUAL(mbedtls_sha3_finish(&ctx, output, 32), 0);
195 unsigned char *output = NULL;
199 TEST_CALLOC(output, hash->len);
208 TEST_ASSERT(mbedtls_sha3_finish(&ctx, output, hash->len) == 0);
210 TEST_MEMORY_COMPARE(output, hash->len, hash->x, hash->len);
213 mbedtls_free(output);
271 unsigned char output[64];
294 TEST_ASSERT(mbedtls_sha3_finish(&ctx, output, sizeof(output)) == 0);
295 TEST_MEMORY_COMPARE(output, hash1->len, hash1->x, hash1->len);
300 TEST_ASSERT(mbedtls_sha3_finish(&ctx, output, sizeof(output)) == 0);
301 TEST_MEMORY_COMPARE(output, hash2->len, hash2->x, hash2->len);