Skip to content
Snippets Groups Projects
  1. Oct 01, 2018
  2. Jul 04, 2018
  3. Jun 28, 2018
  4. Jun 27, 2018
  5. Jan 09, 2018
  6. Mar 01, 2017
  7. Jan 18, 2017
  8. Jan 09, 2017
  9. Jan 06, 2017
  10. Dec 22, 2016
  11. Dec 19, 2016
  12. Dec 16, 2016
    • Richard van der Hoff's avatar
      Avoid buffer overrun on encryption · 8e554ab5
      Richard van der Hoff authored
      Make sure we null-terminate encrypted strings before passing them to
      UTF8ToString.
      
      This used to work when we allocated the buffer on the stack, because it turns
      out that allocate() zeroinits the returned memory. malloc(), of course, does
      not.
      8e554ab5
  13. Dec 15, 2016
  14. Dec 14, 2016
  15. Dec 12, 2016
  16. Oct 25, 2016
  17. Oct 20, 2016
  18. Sep 14, 2016
  19. Sep 13, 2016
  20. Sep 06, 2016
  21. Sep 05, 2016
  22. Sep 04, 2016
    • Richard van der Hoff's avatar
      Fix megolm decryption of UTF-8 · 1d4c13c7
      Richard van der Hoff authored
      Repeat the fix from b10f90d for megolm messages.
      
      It turns out that the 'length' argument to 'Pointer_stringify' doesn't work if
      the input includes characters >= 128.
      
      Rather than try to figure out which methods can return UTF-8, and which always
      return plain ascii, replace all uses of Pointer_stringify with a 'length'
      argument with the version that expects a NULL-terminated input, and extend the
      buffer by a byte to allow space for a null-terminator.
      
      In the case of decrypt, we need to add the null ourself.
      
      Fixes https://github.com/vector-im/vector-web/issues/2078.
      1d4c13c7
    • Richard van der Hoff's avatar
      OlmSession.has_received_message · 2e9021c2
      Richard van der Hoff authored
      I find myself wanting to know if an OlmSession is in the pre-key state or not,
      to help debugging at the application level.
      2e9021c2
  23. Sep 01, 2016
    • Richard van der Hoff's avatar
      Bump version in package.json · 0c3f527d
      Richard van der Hoff authored
      ... to match the Makefile
    • Richard van der Hoff's avatar
      Fix Ed25519 keypair generation · 0c462cff
      Richard van der Hoff authored
      Ed25519 private keys, it turns out, have 64 bytes, not 32.
      
      We were previously generating only 32 bytes (which is all that is required to
      generate the public key), and then using the public key as the upper 32 bytes
      when generating the per-message session key. This meant that everything
      appeared to work, but the security of the private key was severely compromised.
      
      By way of fixes:
      
       * Use the correct algorithm for generating the Ed25519 private key, and store
         all 512 bits of it.
      
       * Update the account pickle format and refuse to load the old format (since we
         should consider it compromised).
      
       * Bump the library version, and add a function to retrieve the library
         version, so that applications can verify that they are linked against a
         fixed version of the library.
      
       * Remove the curve25519_{sign, verify} functions which were unused and of
         dubious quality.
      0c462cff
  24. Jul 11, 2016
  25. Jul 06, 2016
    • Richard van der Hoff's avatar
      JS: make sure returned strings are null-terminated · 939aa747
      Richard van der Hoff authored
      It turns out that the 'length' argument to 'Pointer_stringify' doesn't work if
      the input includes characters >= 128.
      
      Rather than try to figure out which methods can return UTF-8, and which always
      return plain ascii, replace all uses of Pointer_stringify with a 'length'
      argument with the version that expects a NULL-terminated input, and extend the
      buffer by a byte to allow space for a null-terminator.
      
      In the case of decrypt, we need to add the null ourself.
      
      Fixes https://github.com/vector-im/vector-web/issues/1719.
      939aa747
  26. May 26, 2016
  27. May 25, 2016
Loading