Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/docknetwork/crypto
/ xor
Function
xor
oblivious_transfer/src/util.rs:9–14 ·
view source on GitHub ↗
(a: &[u8], b: &[u8])
Source
from the content-addressed store, hash-verified
7
8
#[inline]
9
pub fn xor(a: &[u8], b: &[u8]) -> Vec<u8> {
10
cfg_into_iter!(a)
11
.zip(cfg_into_iter!(b))
12
.map(|(a, b)| a ^ b)
13
.collect()
14
}
15
16
#[inline]
17
pub fn and(a: &[u8], b: &[u8]) -> Vec<u8> {
Callers
15
test_xor
Function · 0.85
decrypt_
Method · 0.85
decrypt_correlated_
Method · 0.85
new_with_active_security
Method · 0.85
encrypt_random
Method · 0.85
encrypt_
Method · 0.85
encrypt_correlated_
Method · 0.85
check
Function · 0.85
new
Method · 0.85
transfer
Method · 0.85
check
Function · 0.85
encrypt
Method · 0.85
Calls
1
map
Method · 0.80
Tested by
1
test_xor
Function · 0.68