MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / check_sum

Method check_sum

Tools/octetStream.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110
111
112bigint octetStream::check_sum(int req_bytes) const
113{
114 auto hash = new unsigned char[req_bytes];
115 crypto_generichash(hash, req_bytes, data, get_length(), NULL, 0);
116
117 bigint ans;
118 bigintFromBytes(ans,hash,req_bytes);
119 // cout << ans << "\n";
120 delete[] hash;
121 return ans;
122}
123
124
125bool octetStream::equals(const octetStream& a) const

Callers 3

full_secrets_filenameFunction · 0.80
executeMethod · 0.80
get_ot_secrets_filenameFunction · 0.80

Calls 1

bigintFromBytesFunction · 0.85

Tested by

no test coverage detected