mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
20 lines
471 B
C
20 lines
471 B
C
// (C) 2016 University of Bristol. See License.txt
|
|
|
|
#ifndef _Commit
|
|
#define _Commit
|
|
|
|
/* Define the hash based commitment scheme */
|
|
|
|
#include "Tools/octetStream.h"
|
|
|
|
/*
|
|
* Commit using comm = hash(send_player || message || r)
|
|
* where r is SEED_SIZE random bytes
|
|
*/
|
|
void Commit(octetStream& comm, octetStream& open, const octetStream& message, int send_player);
|
|
|
|
bool Open(octetStream& message, const octetStream& comm, const octetStream& open, int send_player);
|
|
|
|
#endif
|
|
|