Skip to content

Commit e6eb9fc

Browse files
committed
rename xor_in to xor_into
1 parent d5900bf commit e6eb9fc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sponge-cursor/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl<Rate: ArraySize> SpongeCursor<Rate> {
113113
head
114114
};
115115

116-
xor_in::<N, Rate>(state, pos, head);
116+
xor_into::<N, Rate>(state, pos, head);
117117

118118
if is_partial {
119119
self.pos = u8::try_from(pos + head.len()).expect("the sum is smaller than Rate");
@@ -139,7 +139,7 @@ impl<Rate: ArraySize> SpongeCursor<Rate> {
139139
}
140140

141141
if !tail.is_empty() {
142-
xor_in::<N, Rate>(state, 0, tail);
142+
xor_into::<N, Rate>(state, 0, tail);
143143
}
144144

145145
self.pos = u8::try_from(tail.len()).expect("tail.len() is smaller than Rate");
@@ -208,7 +208,7 @@ impl<Rate: ArraySize> zeroize::Zeroize for SpongeCursor<Rate> {
208208
}
209209

210210
#[inline(always)]
211-
fn xor_in<const N: usize, Rate: ArraySize>(state: &mut [u64; N], offset: usize, data: &[u8]) {
211+
fn xor_into<const N: usize, Rate: ArraySize>(state: &mut [u64; N], offset: usize, data: &[u8]) {
212212
const {
213213
assert!(size_of::<Array<u8, Rate>>() <= size_of::<[u64; N]>());
214214
assert!(Rate::USIZE % size_of::<u64>() == 0);

0 commit comments

Comments
 (0)