MCPcopy Create free account
hub / github.com/docknetwork/crypto / and

Function and

oblivious_transfer/src/util.rs:17–22  ·  view source on GitHub ↗
(a: &[u8], b: &[u8])

Source from the content-addressed store, hash-verified

15
16#[inline]
17pub fn and(a: &[u8], b: &[u8]) -> Vec<u8> {
18 cfg_into_iter!(a)
19 .zip(cfg_into_iter!(b))
20 .map(|(a, b)| a & b)
21 .collect()
22}
23
24#[inline]
25pub fn xor_in_place(a: &mut [u8], b: &[u8]) {

Callers 1

newMethod · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected