Skip to content

Conversation

@sorairolake
Copy link
Contributor

@sorairolake sorairolake commented Dec 10, 2024

Currently, the N parameter can be obtained by raising 2 to the power of Params::log_n.

// example of raising 2 to the power of `Params::log_n`
let n = 1 << params.log_n();

I think it's easier to read to use a method which gets the N parameter directly instead of this way.

let n = params.n();

@newpavlov newpavlov merged commit eeefe4b into RustCrypto:master Dec 10, 2024
13 checks passed
@sorairolake sorairolake deleted the feature/n-method branch December 10, 2024 21:26
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.

2 participants