Skip to content
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

ecies: use align_num value #12139

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

ecies: use align_num value #12139

wants to merge 4 commits into from

Conversation

nkysg
Copy link
Contributor

@nkysg nkysg commented Oct 28, 2024

No description provided.

crates/net/ecies/src/algorithm.rs Outdated Show resolved Hide resolved
@nkysg nkysg requested a review from mattsse October 28, 2024 16:56
Comment on lines 734 to 738
/// return num alignment value
#[inline]
const fn align_num(num: usize, align: usize) -> usize {
(num + (align - 1)) & !(align - 1)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DaniPopes need help here 🙃, is this euqivalent

Copy link
Contributor Author

@nkysg nkysg Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be equal to ".next_multiple_of"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants