Closed joerowell closed 2 years ago
At the moment it's impossible to write this:
void do_garbling(const bool * const in, ...) { // Assume the 2pc object is called twopc bool out[128]; twopc.online(in, out, false); }
This is because in is not marked as const in 2pc.h:
in
const
2pc.h
void online(bool * input, bool * output, bool alice_output = false) { ...}
This PR just marks input as const. This doesn't affect the behaviour of the function at all, as input was already implicitly const (i.e it's never actually written to).
input
Thanks!
At the moment it's impossible to write this:
This is because
in
is not marked asconst
in2pc.h
:This PR just marks
input
asconst
. This doesn't affect the behaviour of the function at all, asinput
was already implicitlyconst
(i.e it's never actually written to).