1. 19 6月, 2018 1 次提交
    • S
      Implement coordinate blinding for EC_POINT · f667820c
      Sohaib ul Hassan 提交于
      This commit implements coordinate blinding, i.e., it randomizes the
      representative of an elliptic curve point in its equivalence class, for
      prime curves implemented through EC_GFp_simple_method,
      EC_GFp_mont_method, and EC_GFp_nist_method.
      
      This commit is derived from the patch
      https://marc.info/?l=openssl-dev&m=131194808413635 by Billy Brumley.
      
      Coordinate blinding is a generally useful side-channel countermeasure
      and is (mostly) free. The function itself takes a few field
      multiplicationss, but is usually only necessary at the beginning of a
      scalar multiplication (as implemented in the patch). When used this way,
      it makes the values that variables take (i.e., field elements in an
      algorithm state) unpredictable.
      
      For instance, this mitigates chosen EC point side-channel attacks for
      settings such as ECDH and EC private key decryption, for the
      aforementioned curves.
      
      For EC_METHODs using different coordinate representations this commit
      does nothing, but the corresponding coordinate blinding function can be
      easily added in the future to extend these changes to such curves.
      Co-authored-by: NNicola Tuveri <nic.tuv@gmail.com>
      Co-authored-by: NBilly Brumley <bbrumley@gmail.com>
      Reviewed-by: NAndy Polyakov <appro@openssl.org>
      Reviewed-by: NMatt Caswell <matt@openssl.org>
      (Merged from https://github.com/openssl/openssl/pull/6501)
      f667820c
  2. 20 6月, 2017 1 次提交
  3. 18 5月, 2016 1 次提交
  4. 02 3月, 2016 1 次提交
  5. 29 2月, 2016 1 次提交
  6. 27 1月, 2016 1 次提交
    • R
      Remove /* foo.c */ comments · 34980760
      Rich Salz 提交于
      This was done by the following
              find . -name '*.[ch]' | /tmp/pl
      where /tmp/pl is the following three-line script:
              print unless $. == 1 && m@/\* .*\.[ch] \*/@;
              close ARGV if eof; # Close file to reset $.
      
      And then some hand-editing of other files.
      Reviewed-by: NViktor Dukhovni <viktor@openssl.org>
      34980760
  7. 01 5月, 2015 1 次提交
    • R
      free NULL cleanup 7 · 23a1d5e9
      Rich Salz 提交于
      This gets BN_.*free:
          BN_BLINDING_free BN_CTX_free BN_FLG_FREE BN_GENCB_free
          BN_MONT_CTX_free BN_RECP_CTX_free BN_clear_free BN_free BUF_MEM_free
      
      Also fix a call to DSA_SIG_free to ccgost engine and remove some #ifdef'd
      dead code in engines/e_ubsec.
      Reviewed-by: NRichard Levitte <levitte@openssl.org>
      23a1d5e9
  8. 22 1月, 2015 1 次提交
  9. 09 12月, 2014 1 次提交
  10. 08 12月, 2014 1 次提交
  11. 21 8月, 2014 1 次提交
  12. 15 2月, 2011 1 次提交
    • D
      Reorganise ECC code for inclusion in FIPS module. · 84b08eee
      Dr. Stephen Henson 提交于
      Move compression, point2oct and oct2point functions into separate files.
      
      Add a flags field to EC_METHOD.
      
      Add a flag EC_FLAGS_DEFAULT_OCT to use the default compession and oct
      functions (all existing methods do this). This removes dependencies from
      EC_METHOD while keeping original functionality.
      84b08eee
  13. 24 4月, 2008 1 次提交
  14. 28 6月, 2005 1 次提交
  15. 04 5月, 2005 1 次提交
  16. 27 4月, 2005 1 次提交
  17. 12 4月, 2005 1 次提交
  18. 09 2月, 2003 1 次提交
  19. 07 2月, 2003 1 次提交
  20. 28 1月, 2003 1 次提交
  21. 18 11月, 2002 2 次提交
  22. 15 11月, 2002 1 次提交
  23. 04 11月, 2002 1 次提交
  24. 29 10月, 2002 1 次提交
  25. 28 10月, 2002 2 次提交
  26. 02 8月, 2002 2 次提交
    • B
      Rename implementations of method functions so that they match · 35b73a1f
      Bodo Möller 提交于
      the new method names where _GF... suffixes have been removed.
      
      Revert changes to ..._{get/set}_Jprojective_coordinates_...:
      The current implementation for ECC over binary fields does not use
      projective coordinates, and if it did, it would not use Jacobian
      projective coordinates; so it's OK to use the ..._GFp prefix for all
      this.
      
      Add author attributions to some files so that it doesn't look
      as if Sun wrote all of this :-)
      35b73a1f
    • B
      add support for elliptic curves over binary fields · 7793f30e
      Bodo Möller 提交于
      Submitted by: Duglas Stebila <douglas.stebila@sun.com>,
                    Sheueling Chang <sheueling.chang@sun.com>
      
      (CHANGES entries by Bodo Moeller)
      7793f30e
  27. 20 3月, 2002 1 次提交
  28. 18 3月, 2002 1 次提交
    • B
      Fix bugs and typos. · af28dd6c
      Bodo Möller 提交于
      Add some WTLS curves.
      New function EC_GROUP_check() (this will probably
      be implemented differently soon).
      
      Submitted by: Nils Larsch
      Reviewed by: Bodo Moeller
      af28dd6c
  29. 11 3月, 2001 1 次提交
  30. 10 3月, 2001 1 次提交
    • D
      · 24a93e6c
      Dr. Stephen Henson 提交于
      In crypto/ec #if 0 out structures which reference (currently)
      non existent functions because this breaks shared libraries.
      24a93e6c
  31. 09 3月, 2001 2 次提交
  32. 08 3月, 2001 3 次提交
  33. 07 3月, 2001 2 次提交