-
Notifications
You must be signed in to change notification settings - Fork 409
Randomize initial onion packet data. #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -224,6 +224,7 @@ mod real_chacha { | |
self.offset = 0; | ||
} | ||
|
||
#[inline] // Useful cause input may be 0s on stack that should be optimized out | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A warn against too smart compiler which would align stack after function jump? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm? Not sure what you're asking. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wasn't asking anything, just wanted to be sure that inline was to prevent compiler alignement. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what you mean by "alignment", but, in any case, afaiu, #[inline] has two meanings:
|
||
pub fn process(&mut self, input: &[u8], output: &mut [u8]) { | ||
assert!(input.len() == output.len()); | ||
let len = input.len(); | ||
|
Uh oh!
There was an error while loading. Please reload this page.