Lines Matching refs:output
10 unsigned char output[41];
12 memset(output, 0x00, 41);
15 TEST_ASSERT( mbedtls_sha1( src_str->x, src_str->len, output ) == 0 );
17 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 20, hash->len ) == 0 );
45 unsigned char output[57];
47 memset(output, 0x00, 57);
50 TEST_ASSERT( mbedtls_sha256( src_str->x, src_str->len, output, 1 ) == 0 );
52 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 28, hash->len ) == 0 );
59 unsigned char output[65];
61 memset(output, 0x00, 65);
64 TEST_ASSERT( mbedtls_sha256( src_str->x, src_str->len, output, 0 ) == 0 );
66 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 32, hash->len ) == 0 );
94 unsigned char output[97];
96 memset(output, 0x00, 97);
99 TEST_ASSERT( mbedtls_sha512( src_str->x, src_str->len, output, 1 ) == 0 );
101 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 48, hash->len ) == 0 );
108 unsigned char output[129];
110 memset(output, 0x00, 129);
113 TEST_ASSERT( mbedtls_sha512( src_str->x, src_str->len, output, 0 ) == 0 );
115 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 64, hash->len ) == 0 );