Skip to content
  1. Aug 30, 2018
  2. Aug 28, 2018
  3. Aug 24, 2018
  4. Aug 23, 2018
  5. Aug 22, 2018
  6. Aug 18, 2018
  7. Aug 17, 2018
  8. Aug 14, 2018
  9. Aug 13, 2018
  10. Aug 11, 2018
  11. Aug 10, 2018
  12. Aug 07, 2018
  13. Aug 06, 2018
  14. Aug 05, 2018
  15. Aug 03, 2018
  16. Aug 01, 2018
  17. Jul 31, 2018
  18. Jul 29, 2018
  19. Jul 27, 2018
  20. Jul 26, 2018
    • Andy Polyakov's avatar
      bn/bn_{mont|exp}.c: switch to zero-padded intermediate vectors. · 2f19065b
      Andy Polyakov authored
      
      
      Note that exported functions maintain original behaviour, so that
      external callers won't observe difference. While internally we can
      now perform Montogomery multiplication on fixed-length vectors, fixed
      at modulus size. The new functions, bn_to_mont_fixed_top and
      bn_mul_mont_fixed_top, are declared in bn_int.h, because one can use
      them even outside bn, e.g. in RSA, DSA, ECDSA...
      
      Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/6707)
      
      (cherry picked from commit 71883868)
      
      Resolved conflicts:
      	crypto/bn/bn_exp.c
      	crypto/bn/bn_mont.c
      	crypto/include/internal/bn_int.h
      2f19065b
    • Andy Polyakov's avatar
      bn/bn_lib.c: add BN_FLG_FIXED_TOP flag. · b7862891
      Andy Polyakov authored
      
      
      The new flag marks vectors that were not treated with bn_correct_top,
      in other words such vectors are permitted to be zero padded. For now
      it's BN_DEBUG-only flag, as initial use case for zero-padded vectors
      would be controlled Montgomery multiplication/exponentiation, not
      general purpose. For general purpose use another type might be more
      appropriate. Advantage of this suggestion is that it's possible to
      back-port it...
      
      bn/bn_div.c: fix memory sanitizer problem.
      bn/bn_sqr.c: harmonize with BN_mul.
      
      Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/6707)
      
      (cherry picked from commit 305b68f1)
      
      Resolved conflicts:
      	crypto/bn/bn_lcl.h
      b7862891