You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

221 lines
5.8 KiB

  1. TweetNaCl.js Changelog
  2. ======================
  3. v0.14.5
  4. -------
  5. * Fixed incomplete return types in TypeScript typings.
  6. * Replaced COPYING.txt with LICENSE file, which now has public domain dedication
  7. text from The Unlicense. License fields in package.json and bower.json have
  8. been set to "Unlicense". The project was and will be in the public domain --
  9. this change just makes it easier for automated tools to know about this fact by
  10. using the widely recognized and SPDX-compatible template for public domain
  11. dedication.
  12. v0.14.4
  13. -------
  14. * Added TypeScript type definitions (contributed by @AndSDev).
  15. * Improved benchmarking code.
  16. v0.14.3
  17. -------
  18. Fixed a bug in the fast version of Poly1305 and brought it back.
  19. Thanks to @floodyberry for promptly responding and fixing the original C code:
  20. > "The issue was not properly detecting if st->h was >= 2^130 - 5, coupled with
  21. > [testing mistake] not catching the failure. The chance of the bug affecting
  22. > anything in the real world is essentially zero luckily, but it's good to have
  23. > it fixed."
  24. https://github.com/floodyberry/poly1305-donna/issues/2#issuecomment-202698577
  25. v0.14.2
  26. -------
  27. Switched Poly1305 fast version back to original (slow) version due to a bug.
  28. v0.14.1
  29. -------
  30. No code changes, just tweaked packaging and added COPYING.txt.
  31. v0.14.0
  32. -------
  33. * **Breaking change!** All functions from `nacl.util` have been removed. These
  34. functions are no longer available:
  35. nacl.util.decodeUTF8
  36. nacl.util.encodeUTF8
  37. nacl.util.decodeBase64
  38. nacl.util.encodeBase64
  39. If want to continue using them, you can include
  40. <https://github.com/dchest/tweetnacl-util-js> package:
  41. <script src="nacl.min.js"></script>
  42. <script src="nacl-util.min.js"></script>
  43. or
  44. var nacl = require('tweetnacl');
  45. nacl.util = require('tweetnacl-util');
  46. However it is recommended to use better packages that have wider
  47. compatibility and better performance. Functions from `nacl.util` were never
  48. intended to be robust solution for string conversion and were included for
  49. convenience: cryptography library is not the right place for them.
  50. Currently calling these functions will throw error pointing to
  51. `tweetnacl-util-js` (in the next version this error message will be removed).
  52. * Improved detection of available random number generators, making it possible
  53. to use `nacl.randomBytes` and related functions in Web Workers without
  54. changes.
  55. * Changes to testing (see README).
  56. v0.13.3
  57. -------
  58. No code changes.
  59. * Reverted license field in package.json to "Public domain".
  60. * Fixed typo in README.
  61. v0.13.2
  62. -------
  63. * Fixed undefined variable bug in fast version of Poly1305. No worries, this
  64. bug was *never* triggered.
  65. * Specified CC0 public domain dedication.
  66. * Updated development dependencies.
  67. v0.13.1
  68. -------
  69. * Exclude `crypto` and `buffer` modules from browserify builds.
  70. v0.13.0
  71. -------
  72. * Made `nacl-fast` the default version in NPM package. Now
  73. `require("tweetnacl")` will use fast version; to get the original version,
  74. use `require("tweetnacl/nacl.js")`.
  75. * Cleanup temporary array after generating random bytes.
  76. v0.12.2
  77. -------
  78. * Improved performance of curve operations, making `nacl.scalarMult`, `nacl.box`,
  79. `nacl.sign` and related functions up to 3x faster in `nacl-fast` version.
  80. v0.12.1
  81. -------
  82. * Significantly improved performance of Salsa20 (~1.5x faster) and
  83. Poly1305 (~3.5x faster) in `nacl-fast` version.
  84. v0.12.0
  85. -------
  86. * Instead of using the given secret key directly, TweetNaCl.js now copies it to
  87. a new array in `nacl.box.keyPair.fromSecretKey` and
  88. `nacl.sign.keyPair.fromSecretKey`.
  89. v0.11.2
  90. -------
  91. * Added new constant: `nacl.sign.seedLength`.
  92. v0.11.1
  93. -------
  94. * Even faster hash for both short and long inputs (in `nacl-fast`).
  95. v0.11.0
  96. -------
  97. * Implement `nacl.sign.keyPair.fromSeed` to enable creation of sign key pairs
  98. deterministically from a 32-byte seed. (It behaves like
  99. [libsodium's](http://doc.libsodium.org/public-key_cryptography/public-key_signatures.html)
  100. `crypto_sign_seed_keypair`: the seed becomes a secret part of the secret key.)
  101. * Fast version now has an improved hash implementation that is 2x-5x faster.
  102. * Fixed benchmarks, which may have produced incorrect measurements.
  103. v0.10.1
  104. -------
  105. * Exported undocumented `nacl.lowlevel.crypto_core_hsalsa20`.
  106. v0.10.0
  107. -------
  108. * **Signature API breaking change!** `nacl.sign` and `nacl.sign.open` now deal
  109. with signed messages, and new `nacl.sign.detached` and
  110. `nacl.sign.detached.verify` are available.
  111. Previously, `nacl.sign` returned a signature, and `nacl.sign.open` accepted a
  112. message and "detached" signature. This was unlike NaCl's API, which dealt with
  113. signed messages (concatenation of signature and message).
  114. The new API is:
  115. nacl.sign(message, secretKey) -> signedMessage
  116. nacl.sign.open(signedMessage, publicKey) -> message | null
  117. Since detached signatures are common, two new API functions were introduced:
  118. nacl.sign.detached(message, secretKey) -> signature
  119. nacl.sign.detached.verify(message, signature, publicKey) -> true | false
  120. (Note that it's `verify`, not `open`, and it returns a boolean value, unlike
  121. `open`, which returns an "unsigned" message.)
  122. * NPM package now comes without `test` directory to keep it small.
  123. v0.9.2
  124. ------
  125. * Improved documentation.
  126. * Fast version: increased theoretical message size limit from 2^32-1 to 2^52
  127. bytes in Poly1305 (and thus, secretbox and box). However this has no impact
  128. in practice since JavaScript arrays or ArrayBuffers are limited to 32-bit
  129. indexes, and most implementations won't allocate more than a gigabyte or so.
  130. (Obviously, there are no tests for the correctness of implementation.) Also,
  131. it's not recommended to use messages that large without splitting them into
  132. smaller packets anyway.
  133. v0.9.1
  134. ------
  135. * Initial release