Skip to content
  • Bodo Möller's avatar
    Totally remove the supposedly 'faster' variant in · fe035197
    Bodo Möller authored
    BN_mod_mul_montgomery, which calls bn_sqr_recursive
    without much preparation.
    
    bn_sqr_recursive requires the length of its argument to be
    a power of 2, which is not always the case here.
    There's no reason for not using BN_sqr -- if a simpler
    approach to squaring made sense, then why not change
    BN_sqr?  (Using BN_sqr should also speed up DH where g is chosen
    such that it becomes small [e.g., 2] when converted
    to Montgomery representation.)
    
    Case closed :-)
    fe035197
To find the state of this project's repository at the time of any of these versions, check out the tags.