SecreC 2 language  2.8.0 (2023.09)
Language and standard library reference
Functions
cw128Hash(key)

Functions

template<domain D :shared3p >
D xor_uint8 cw128Hash (D xor_uint8[[1]] data, D xor_uint8[[1]] key, uint rowLen)
 

Detailed Description

Hashes values in the input vector into 128-bit hashes using the Carter-Wegman algorithm.

Note
D - shared3p protection domain
Parameters
data- data vector
key- key used for hashing. See cw128GenKey cw128GenKey.
rowLen- length of one data element in bytes
Leakage
None

Function Documentation

◆ cw128Hash()

D xor_uint8 cw128Hash ( D xor_uint8[[1]]  data,
D xor_uint8[[1]]  key,
uint  rowLen 
)