@@ -64,13 +64,14 @@ void test_sha256(std::vector<typename BlueprintFieldType::value_type> public_inp
64
64
var (0 , 0 , false , var::column_type::public_input), var (0 , 1 , false , var::column_type::public_input),
65
65
var (0 , 2 , false , var::column_type::public_input), var (0 , 3 , false , var::column_type::public_input)};
66
66
67
+ component_type component_instance ({0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 },{0 },{});
68
+
67
69
typename component_type::input_type instance_input = {input_state_var};
68
70
auto result_check = [](AssignmentType &assignment,
69
71
typename component_type::result_type &real_res) {
72
+ std::cout << std::hex << " real_res: " << var_value (assignment, real_res.output [0 ]).data << " " << var_value (assignment, real_res.output [1 ]).data << std::endl;
70
73
};
71
74
72
- component_type component_instance ({0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 },{0 },{});
73
-
74
75
crypto3::test_component<component_type, BlueprintFieldType, ArithmetizationParams, hash_type, Lambda>(
75
76
component_instance, public_input, result_check, instance_input);
76
77
}
@@ -84,6 +85,9 @@ BOOST_AUTO_TEST_CASE(blueprint_plonk_sha256_test0) {
84
85
typename BlueprintFieldType::value_type s = typename BlueprintFieldType::value_type (2 ).pow (126 );
85
86
86
87
test_sha256<BlueprintFieldType>({s, s + 1 , s + 2 , s + 3 });
88
+ test_sha256<BlueprintFieldType>({0 , 0 , 0 , 0 });
89
+ test_sha256<BlueprintFieldType>({0xffffffffffffffff_cppui64, 0xffffffffffffffff_cppui64, 0xffffffffffffffff_cppui64, 0xffffffffffffffff_cppui64});
90
+ test_sha256<BlueprintFieldType>({1 , 1 , 1 , 1 });
87
91
}
88
92
89
93
BOOST_AUTO_TEST_SUITE_END ()
0 commit comments