Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashToInt ¶
HashToInt -- converts a hash value to an integer. There is some disagreement about how this is done. [NSA] suggests that this is done in the obvious manner, but [SECG] truncates the hash to the bit-length of the curve order first. We follow [SECG] because that's what OpenSSL does. Additionally, OpenSSL right shifts excess bits from the number if the hash is too large and we mirror that too. This is borrowed from crypto/ecdsa.
func NonceRFC6979 ¶
NonceRFC6979 generates an ECDSA nonce (`k`) deterministically according to RFC 6979. https://tools.ietf.org/html/rfc6979#section-3.2 It takes a 32-byte hash as an input and returns 32-byte nonce to be used in ECDSA algorithm.
Types ¶
This section is empty.