Skip to content

Conversation

@fjarri
Copy link
Contributor

@fjarri fjarri commented Feb 13, 2025

Replaces the current approximate logf() which we don't really need for this specific form of the argument.

Note: I am not sure why we calculate log(2^floor(bit_size / nprimes)) while we could just as well calculate log(2^(bit_size/nprimes)), but I left that part intact.

@tarcieri
Copy link
Member

tarcieri commented Feb 13, 2025

Sidebar: @fjarri any thoughts on including some prime counting functionality in crypto-primes? I believe there are some more recent optimized algorithms

Edit: sorry if I've asked this before, I know you said it doesn't currently exist but I forget what you said about potentially including it

@fjarri
Copy link
Contributor Author

fjarri commented Feb 13, 2025

I think it will be appropriate there. If you have some specific formulas/papers in mind, could you make an issue?

@tarcieri tarcieri merged commit 84dde17 into RustCrypto:master Feb 14, 2025
11 checks passed
@fjarri fjarri deleted the log branch March 5, 2025 23:23
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