1. 27 Jan, 2020 1 commit
  2. 10 Aug, 2018 1 commit
  3. 27 May, 2018 1 commit
  4. 26 May, 2018 2 commits
  5. 18 May, 2018 1 commit
  6. 19 Mar, 2018 1 commit
    • Luca Boccassi's avatar
      Problem: global random init/deinit breaks existing applications · 8f5fc705
      Luca Boccassi authored
      Solution: restrict it only to the original issue #2632, Tweetnacl on
      *NIX when using /dev/urandom, ie: without the new Linux getrandom()
      syscall.
      
      Existing applications might use atexit to register cleanup functions
      (like CZMQ does), and the current change as-is imposes an ordering
      that did not exist before - the context MUST be created BEFORE
      registering the cleanup with atexit. This is a backward incompatible
      change that is reported to cause aborts in some applications.
      
      Although libsodium's documentation says that its initialisation APIs
      is not thread-safe, nobody has ever reported an issue with it, so
      avoiding the global init/deinit in the libsodium case is the less
      risky option we have.
      
      Tweetnacl users on Windows and on Linux with getrandom (glibc 2.25 and
      Linux kernel 3.17) are not affected by the original issue.
      
      Fixes #2991
      8f5fc705
  7. 07 Mar, 2018 1 commit
  8. 06 Mar, 2018 1 commit
  9. 05 Mar, 2018 1 commit
  10. 02 Feb, 2018 1 commit
  11. 28 Jul, 2017 2 commits
    • Luca Boccassi's avatar
      Problem: reading from /dev/urandom is clunky · fbb6bbdc
      Luca Boccassi authored
      Solution: if available use the getrandom function as it doesn't
      require any synchronization, state or cleanup
      fbb6bbdc
    • Luca Boccassi's avatar
      Problem: fd leak in tweetnacl with one ctx per thread · e015a0f8
      Luca Boccassi authored
      Solution: add a crypto [de-]initialiser, refcounted and serialised
      through critical sections.
      This is necessary as utility APIs such as zmq_curve_keypair also
      call into the sodium/tweetnacl libraries and need the initialisation
      outside of the zmq context.
      Also the libsodium documentation explicitly says that sodium_init
      must not be called concurrently from multiple threads, which could
      have happened until now. Also the randombytes_close function does
      not appear to be thread safe either.
      This change guarantees that the library is initialised only once at
      any given time across the whole program.
      Fixes #2632
      e015a0f8
  12. 14 May, 2016 1 commit
  13. 18 Feb, 2016 1 commit
  14. 28 Jan, 2016 1 commit
  15. 02 Jun, 2015 1 commit
  16. 22 Jan, 2015 1 commit
  17. 02 Jan, 2014 1 commit
  18. 12 Mar, 2013 1 commit
    • Pieter Hintjens's avatar
      Removed corporate advertisements from source file headers · f0f16505
      Pieter Hintjens authored
      Copyrights had become ads for Sustrik's corporate sponsors, going against the original
      agreement to share copyrights with the community (that agreement was: one line stating
      iMatix copyright + one reference to AUTHORS file). The proliferation of corporate ads
      is also unfair to the many individual authors. I've removed ALL corporate title from
      the source files so the copyright statements can now be centralized in AUTHORS and
      source files can be properly updated on an annual basis.
      f0f16505
  19. 01 Nov, 2011 1 commit
  20. 31 Oct, 2011 1 commit
  21. 15 Jul, 2011 1 commit
  22. 23 Jun, 2011 1 commit
  23. 22 Jun, 2011 1 commit
  24. 02 Mar, 2011 1 commit
  25. 30 Oct, 2010 1 commit
  26. 13 Feb, 2010 1 commit
  27. 12 Feb, 2010 2 commits
  28. 05 Jan, 2010 1 commit
  29. 10 Dec, 2009 1 commit
  30. 03 Nov, 2009 1 commit
  31. 05 Oct, 2009 1 commit
  32. 03 Aug, 2009 1 commit
  33. 29 Jul, 2009 1 commit