(context: Context, k: u32, st: ScalarType)
| 35 | } |
| 36 | |
| 37 | fn gen_b2a_graph(context: Context, k: u32, st: ScalarType) -> Result<Graph> { |
| 38 | let graph = context.create_graph()?; |
| 39 | let n = 2u64.pow(k); |
| 40 | let i = graph.input(array_type(vec![n, st.size_in_bits()], BIT))?; |
| 41 | graph.set_output_node(i.b2a(st)?)?; |
| 42 | graph.finalize()?; |
| 43 | Ok(graph) |
| 44 | } |
| 45 | |
| 46 | /// This binary prints the serialized a2b/b2a context on the non-encrypted input in (serde) JSON format. |
| 47 | /// |
no test coverage detected