Lines Matching refs:result
542 int result;
544 result = mbedtls_sha3(id,
547 if (result != 0) {
550 type_name, test_num, result);
553 return result;
558 result = memcmp(hash, test_hash_sha3_224[test_num], 28);
561 result = memcmp(hash, test_hash_sha3_256[test_num], 32);
564 result = memcmp(hash, test_hash_sha3_384[test_num], 48);
567 result = memcmp(hash, test_hash_sha3_512[test_num], 64);
573 if (0 != result) {
595 int result = 0;
605 result = mbedtls_sha3_starts(&ctx, id);
606 if (result != 0) {
614 result = mbedtls_sha3_update(&ctx, buffer, 1000);
615 if (result != 0) {
617 mbedtls_printf("update error code: %i\n", result);
624 result = mbedtls_sha3_finish(&ctx, hash, sizeof(hash));
625 if (result != 0) {
627 mbedtls_printf("finish error code: %d\n", result);
635 result = memcmp(hash, long_kat_hash_sha3_224, 28);
638 result = memcmp(hash, long_kat_hash_sha3_256, 32);
641 result = memcmp(hash, long_kat_hash_sha3_384, 48);
644 result = memcmp(hash, long_kat_hash_sha3_512, 64);
650 if (result != 0) {
662 return result;