ecdsa 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -3
  3. data/lib/ecdsa/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19cab1e9d25b0f525c8a61db8e1bd928722cde6d
4
- data.tar.gz: 6cae1f2e7de3429228c3fe43c66bbd86c4662661
3
+ metadata.gz: c0121dec834c8271050e3f0ac28a4cabd7992312
4
+ data.tar.gz: 164644a297bbfba485495e665b93fa88b9e038ee
5
5
  SHA512:
6
- metadata.gz: 3bcb9fc48a95019c7fc37ed9cca870d66f566ddc7a00f538b202ccffbb6809c91a3d94ed72f373f8a098930a65e81969527c55c30fc131cde3417f95bb0c5644
7
- data.tar.gz: b91f509231cbc681a2d701e8817fe82b18b0fcdc7b95d48a0865042b5096b27c79515ff99bca3bfc7f714a40c17e17dfa526e6ee6097b04d136a2be16b2c59ba
6
+ metadata.gz: 8ac219b31a4c03e2d25e0abb85d5c3fef74cca7911e0846f72278cfb7eadb3f1e2592fabacb32419deff5c7f67358a769e22a3a788e960edfdcff40f855e4548
7
+ data.tar.gz: 0fea14c24369c83051b5aacc69cd437eae7426e4f47147f524ea5cedb45809ebfc4bdcabac8896b104bcde09badefa6da8cb4a07c449fa9f27ed0a3a9a527a7d
data/README.md CHANGED
@@ -14,6 +14,13 @@ use a pre-existing group object such as `ECDSA::Group::Secp256k1`.
14
14
  The pre-existing groups can be seen in the `lib/ecdsa/group` folder, and include all the curves
15
15
  defined in [SEC2](http://www.secg.org/collateral/sec2_final.pdf) and [NIST's Recommended Elliptic Curves for Federal Government Use](http://csrc.nist.gov/groups/ST/toolkit/documents/dss/NISTReCur.pdf).
16
16
 
17
+ This gem does not use any randomness; all the algorithms are deterministic.
18
+ In order to sign an ECDSA message, you must generate a secure random number _k_ between 0
19
+ and the order of the group and pass it as an argument to `ECDSA.sign`.
20
+ You should take measures to ensure that you never use the same random number to sign
21
+ two different messages, or else it would be easy for anyone to compute your
22
+ private key from those two signatures.
23
+
17
24
  This gem is hosted at the [DavidEGrayson/ruby_ecdsa github repository](https://github.com/DavidEGrayson/ruby_ecdsa).
18
25
 
19
26
  ## Current limitations
@@ -23,7 +30,11 @@ This gem is hosted at the [DavidEGrayson/ruby_ecdsa github repository](https://g
23
30
  - This gem can only compute square roots in prime fields over a prime _p_
24
31
  that is one less than a multiple of 4.
25
32
  Computing a square root is required for parsing public keys stored in compressed form.
26
- - There is no documentation. If you know ECDSA and know how to read Ruby source code,
27
- you can probably figure it out though.
33
+ - There is no documentation. If you know a little bit about ECDSA and know how to read
34
+ Ruby source code, you can probably figure it out though.
28
35
  - The algorithms have not been optimized for speed, and will probably never be, because that
29
- would hinder the goal of helping people understand ECDSA.
36
+ would hinder the goal of helping people understand ECDSA.
37
+
38
+ This gem was not written by a cryptography expert and has not been carefully checked.
39
+ It is provided "as is" and it is the user's responsibility to make sure it will be
40
+ suitable for the desired purpose.
@@ -1,3 +1,3 @@
1
1
  module ECDSA
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecdsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Grayson