You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reuse BN_BLINDING multiple times in RSA signing #234
Right now, we create a new temporary BN_BLINDING value before signing and then throw it away right after signing, never using it again. Instead, we should make use of the reuse facilities already built into BN_BLINDING by saving a pointer to the BN_BLINDING in the RSAKeyPair. It should be saved in a Mutex so that multiple threads can access the blinding safely.
export BN_BLINDING_COUNTER as an extern GFp_BN_BLINDING_COUNTER.
Create a test that uses the same BN_BLINDING at least GFp_BN_BLINDING_COUNTER +1 times, to exercise all the code paths in blinding.c. This should be complete the test coverage of bn_blinding_update.
Create a test that is similar to test_agreement_suite_b_ecdh_generate, where the RAND returns unusable values forever, to test the logic where the blinding gives up after a bunch of tries.
Look at the coveralls report to make sure that everything in BN_BLINDING is now covered.
Hi there! I'd like to take on this work. I'm really excited to pitch in on this project!
FYI, master currently doesn't build due to an unused variable warning introduced here, in 690ca69. Without that definition, everything builds, tests pass. I'm not sure if its inclusion was an accident, or if it will be used once your work in #247 lands, so I'll leave that to you (rather than fixing it), and just rebase once a fix lands in master.
Activity
briansmith commentedon Jul 2, 2016
Extra testing is needed:
BN_BLINDING_COUNTERas an externGFp_BN_BLINDING_COUNTER.BN_BLINDINGat leastGFp_BN_BLINDING_COUNTER+1 times, to exercise all the code paths in blinding.c. This should be complete the test coverage ofbn_blinding_update.test_agreement_suite_b_ecdh_generate, where theRANDreturns unusable values forever, to test the logic where the blinding gives up after a bunch of tries.BN_BLINDINGis now covered.ranweiler commentedon Jul 14, 2016
Hi there! I'd like to take on this work. I'm really excited to pitch in on this project!
FYI,
mastercurrently doesn't build due to an unused variable warning introduced here, in 690ca69. Without that definition, everything builds, tests pass. I'm not sure if its inclusion was an accident, or if it will be used once your work in #247 lands, so I'll leave that to you (rather than fixing it), and just rebase once a fix lands inmaster.briansmith commentedon Jul 14, 2016
Awesome!
Thanks! I'll fix that now!
briansmith commentedon Jul 14, 2016
Fixed. Thanks again!
briansmith commentedon Jul 29, 2016
Fixed with #258. Thanks again!