plugeth/crypto
Jonathan Chappelow 830231c1c4
crypto: use btcec/v2 for no-cgo (#24533)
This updates the no-cgo implementations in the crypto package to use
the github.com/btcsuite/btcd/btcec/v2 module instead of the older btcec
package that was part of the main github.com/btcsuite/btcd module.

name                   old time/op  new time/op  delta
EcrecoverSignature-32   198µs ± 0%   144µs ± 0%  -27.11%
VerifySignature-32      177µs ± 0%   128µs ± 0%  -27.44%
DecompressPubkey-32    20.9µs ± 0%  10.1µs ± 0%  -51.51%

Use (*ModNScalar).IsOverHalfOrder instead of math/big.Int when checking
for malleable signatures.
2022-03-16 14:23:14 +01:00
..
blake2b all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
bls12381 crypto/bls12381: fix typo in comment (#24509) 2022-03-08 10:48:25 +01:00
bn256 crypto/bn256/cloudflare: fix asm for dynamic linking (#24476) 2022-03-09 00:23:13 +01:00
ecies crypto/ecies: use AES-192 for curve P384 (#24139) 2022-01-12 11:09:10 +01:00
secp256k1 all: fix 'the the' in comments (#24036) 2021-12-02 15:42:09 +01:00
signify all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
crypto_test.go core: implement background trie prefetcher 2021-01-21 01:46:38 +02:00
crypto.go core: implement background trie prefetcher 2021-01-21 01:46:38 +02:00
signature_cgo.go all: add go:build lines (#23468) 2021-08-25 18:46:29 +02:00
signature_nocgo.go crypto: use btcec/v2 for no-cgo (#24533) 2022-03-16 14:23:14 +01:00
signature_test.go crypto: ensure that VerifySignature rejects malleable signatures (#15708) 2017-12-20 14:30:00 +02:00