|
template<domain D :shared3p > |
D uint | bl_strHamming (D xor_uint8[[1]] s, D xor_uint8[[1]] t) |
|
Function for finding the number of bytes that the two input strings differ in.
- Note
- D - shared3p protection domain
-
Supported types - xor_uint8
- Parameters
-
s,t | - input string vectors of supported type |
- Returns
- returns the number of bytes that the inputs differ in
- Precondition
- bl_strLength(s) == bl_strLength(t), otherwise the behaviour is undefined
- Leakage
- None
◆ bl_strHamming()
D uint bl_strHamming |
( |
D xor_uint8[[1]] |
s, |
|
|
D xor_uint8[[1]] |
t |
|
) |
| |