A whimsical STROBE based encryption protocol
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

NEKO v0.2.1 spec, 192 bit mode, const type asserts #4

open opened by sachy.dev targeting main from nekov0.2.1
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:usjm3ynnir6y4inkcdovrfei/sh.tangled.repo.pull/3mkzgxag24m22
+3 -3
Interdiff #2 #3
.tangled/workflows/miri.yml

This file has not been changed.

src/handshake.rs

This file has not been changed.

src/lib.rs

This file has not been changed.

wharrgarbl-neko/SPEC.md

This file has not been changed.

wharrgarbl-neko/src/kats.rs

This file has not been changed.

+3 -3
wharrgarbl-neko/src/lib.rs
··· 123 123 #[must_use] 124 124 pub(crate) fn block(&self) -> usize { 125 125 let block = usize::from(self.raw_position()).div_ceil(U64_CHUNK); 126 - debug_assert!(block < Sec::RATE); 126 + debug_assert!(block <= Sec::RATE); 127 127 if block < Sec::RATE { 128 128 block 129 129 } else { ··· 135 135 #[inline(always)] 136 136 #[must_use] 137 137 fn raw_position(&self) -> u8 { 138 - debug_assert!(self.position < u8::MAX as usize && self.position < Sec::RATE * U64_CHUNK); 139 - if self.position < u8::MAX as usize && self.position < Sec::RATE * U64_CHUNK { 138 + debug_assert!(self.position < u8::MAX as usize && self.position <= Sec::RATE * U64_CHUNK); 139 + if self.position < u8::MAX as usize && self.position <= Sec::RATE * U64_CHUNK { 140 140 self.position as u8 141 141 } else { 142 142 // SAFETY: the type enforces that `position` is always smaller than
wharrgarbl-neko/src/operators.rs

This file has not been changed.

wharrgarbl-neko/src/traits.rs

This file has not been changed.

History

7 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
merge conflicts detected
expand
  • src/handshake.rs:36
  • src/lib.rs:2
  • wharrgarbl-neko/SPEC.md:1
  • wharrgarbl-neko/src/kats.rs:1
  • wharrgarbl-neko/src/lib.rs:1
  • wharrgarbl-neko/src/operators.rs:1
  • wharrgarbl-neko/src/traits.rs:1
expand 0 comments
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
expand 0 comments
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
expand 0 comments
sachy.dev submitted #3
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
expand 0 comments
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
expand 0 comments
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
expand 0 comments
sachy.dev submitted #0
1 commit
expand
NEKO v0.2.1 spec, 192 bit mode, const type asserts
expand 0 comments