-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: switch from num-bigint-dig to crypto-bigint #394
base: master
Are you sure you want to change the base?
Conversation
I tried testing this PR in a
|
@dignifiedquire |
no, haven't had time to fix the afformentioned issues yet |
@dignifiedquire |
@tarcieri current benchmarks
|
@dignifiedquire created #462 for fixing these issues. Take a look. Feel free to change anything. |
The `n` in both cases is 257 bytes, with first element being 0 Re-encoded the number into 256 bytes and now the decoding works. Note that ff you want to keep the previous Base64 `n`, then the BoxedUint must take 2056 as the `bits_precision` parameter
CI is finally green again, time for lots of review and cleanup |
@zeerooth |
let mut pi = prime_limit / (prime_limit.ln() - 1f64); | ||
#[cfg(not(feature = "std"))] | ||
let mut pi = prime_limit / (libm::logf(prime_limit as f32) as f64 - 1f64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not entirely correct or optimal, but I am not sure what other way there is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fjarri is there anything in crypto-primes
for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, nothing like that currently
Very, very WIP
Uncomplete, unordered task list
RsaPrivateKey
RsaPublicKey
decrypt
implementationBigUint
to return owned versionsTests
algorithms::pad::tests::test_left_pad
algorithms::pkcs1v15::tests::test_non_zero_bytes
algorithms::rsa::tests::recover_primes_works
key::tests::build_key_from_p_q
key::tests::build_key_from_primes
key::tests::invalid_coeff_private_key_regression
algorithms::generate::tests::key_generation_128
key::tests::key_generation_128
algorithms::generate::tests::test_impossible_keys
algorithms::generate::tests::key_generation_multi_3_256
algorithms::generate::tests::key_generation_multi_4_64
key::tests::key_generation_multi_4_64
key::tests::reject_oversized_private_key
key::tests::test_from_into
key::tests::key_generation_multi_3_256
key::tests::test_serde
oaep::decrypting_key::tests::test_serde
oaep::encrypting_key::tests::test_serde
oaep::tests::test_decrypt_oaep_invalid_hash
oaep::tests::test_decrypt_oaep_invalid_hash_traits
oaep::tests::test_encrypt_decrypt_oaep
oaep::tests::test_encrypt_decrypt_oaep_traits
pkcs1v15::decrypting_key::tests::test_serde
pkcs1v15::encrypting_key::tests::test_serde
pkcs1v15::signature::tests::test_serde
pkcs1v15::signing_key::tests::test_serde
pkcs1v15::tests::test_decrypt_pkcs1v15
pkcs1v15::tests::test_decrypt_pkcs1v15_traits
pkcs1v15::tests::test_encrypt_decrypt_pkcs1v15
pkcs1v15::tests::test_encrypt_decrypt_pkcs1v15_traits
pkcs1v15::tests::test_sign_pkcs1v15
pkcs1v15::tests::test_sign_pkcs1v15_digest_signer
pkcs1v15::tests::test_sign_pkcs1v15_signer
pkcs1v15::tests::test_sign_pkcs1v15_signer_sha2_256
pkcs1v15::tests::test_sign_pkcs1v15_signer_sha3_256
pkcs1v15::tests::test_unpadded_signature
pkcs1v15::tests::test_unpadded_signature_hazmat
pkcs1v15::tests::test_verify_pkcs1v15
pkcs1v15::tests::test_verify_pkcs1v15_digest_signer
pkcs1v15::tests::test_verify_pkcs1v15_signer
pkcs1v15::verifying_key::tests::test_serde
pss::blinded_signing_key::tests::test_serde
pss::signature::tests::test_serde
pss::signing_key::tests::test_serde
algorithms::generate::tests::key_generation_1024
pss::test::test_sign_and_verify_pss_blinded_hazmat
pss::test::test_sign_and_verify_pss_hazmat
pss::test::test_sign_and_verify_roundtrip
pss::test::test_sign_and_verify_roundtrip_blinded_digest_signer
pss::test::test_sign_and_verify_roundtrip_blinded_signer
pss::test::test_sign_and_verify_roundtrip_digest_signer
pss::test::test_sign_and_verify_roundtrip_signer
pss::test::test_sign_blinded_and_verify_roundtrip
pss::test::test_verify_pss
pss::test::test_verify_pss_digest_signer
pss::test::test_verify_pss_hazmat
pss::test::test_verify_pss_signer
algorithms::generate::tests::key_generation_multi_5_64
pss::verifying_key::tests::test_serde
key::tests::test_negative_decryption_value
key::tests::key_generation_multi_5_64
pss::test::test_sign_and_verify_2049bit_key
key::tests::key_generation_1024
algorithms::generate::tests::key_generation_multi_8_576
key::tests::key_generation_multi_8_576