15#ifndef PRIVACY_PROOFS_ZK_LIB_ALGEBRA_HASH_H_
16#define PRIVACY_PROOFS_ZK_LIB_ALGEBRA_HASH_H_
21#include "util/crc64.h"
27uint64_t elt_hash(
const typename Field::Elt& k,
const Field& F) {
29 uint8_t buf[Field::kBytes];
30 F.to_bytes_field(buf, k);
31 for (
size_t l = 0; l < Field::kBytes; ++l) {
32 crc = crc64::update(crc, buf[l], 8);