SecreC 2 language 2.9.0 (2026.10)
Language and standard library reference
Loading...
Searching...
No Matches
Functions

Functions

template<domain D :shared3p >
D uint kl_strHamming (D xor_uint8 s, D xor_uint8 t)
 

Detailed Description

Function for finding the number of bytes two inputs differ in.

Note
D - shared3p protection domain
Supported types - xor_uint8
Parameters
s,t- input string vectors of supported type
Precondition
the input strings are of equal length
Returns
returns the number of bytes that the inputs differ in
Leakage
None

Function Documentation

◆ kl_strHamming()

template<domain D :shared3p >
D uint kl_strHamming ( D xor_uint8  s,
D xor_uint8  t 
)