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

Functions

template<domain D :shared3p , dim N>
D xor_uint16 CRC16 (D xor_uint8[[N]] input, D xor_uint16 hash)
 
template<domain D :shared3p , dim N>
D xor_uint32 CRC32 (D xor_uint8[[N]] input, D xor_uint32 hash)
 

Detailed Description

Compute CRC hash of the input byte array with given initial hash.

Note
D - shared3p protection domain
Supported types - xor_uint8
Parameters
input- the input byte vector
hash- the initial hash of type xor_uint16 or xor_uint32
Leakage
None

Function Documentation

◆ CRC16()

D xor_uint16 CRC16 ( D xor_uint8[[N]]  input,
D xor_uint16  hash 
)

◆ CRC32()

D xor_uint32 CRC32 ( D xor_uint8[[N]]  input,
D xor_uint32  hash 
)