Daniel Liu
f11cf2cce7
fix(crypto): fix ECIES invalid-curve handling #33669 ( #2043 )
...
Co-authored-by: fengjian <445077+fengjian@users.noreply.github.com>
2026-02-28 17:00:35 +04:00
Daniel Liu
03da570aca
crypto/ecies: use aes blocksize ( #1946 )
...
Co-authored-by: lightclient <lightclient@protonmail.com>
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2026-01-19 11:25:15 +05:30
Daniel Liu
241a5b3fb2
all: using testing.B.Loop ( #1554 )
...
* p2p: using testing.B.Loop
* core/state: using testing.B.Loop
* eth: using testing.B.Loop
* log: using testing.B.Loop
* core: using testing.B.Loop
* core/vm: using testing.B.Loop
* core/types: using testing.B.Loop
* crypto: using testing.B.Loop
2025-09-24 07:59:48 +08:00
Daniel Liu
f7c46d0ad7
crypto: fix some typos in comments and names ( #31023 )
2025-03-19 18:02:46 +08:00
Daniel Liu
d0566e4165
crypto: update to go version 1.22 ( #28946 )
2025-01-04 11:00:57 +08:00
Daniel Liu
949fa6358e
crypto/ecies: use AES-192 for curve P384 ( #24139 )
...
Using curve P384 for encryption causes the error "ecies: shared key params
are too big". Also, readme.md says curve P384 should use AES192 not AES256.
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
2024-12-09 17:49:00 +08:00
Daniel Liu
ee303c9f3d
crypto/ecies: improve concatKDF ( #20836 )
2024-12-09 17:48:59 +08:00
Daniel Liu
6033722b72
crypto: use golangci-lint ( #20295 )
2024-12-09 17:48:59 +08:00
Daniel Liu
e1eb00ef99
crypto: make unit tests work with Go 1.13 ( #20053 )
2024-12-09 17:48:59 +08:00
Daniel Liu
8dcea8ddf8
crypto: replace t.Log(); t.FailNow() with t.Fatal() ( #19849 )
2024-12-09 17:48:59 +08:00
Daniel Liu
b9054b220c
crypto: replace fmt.Println calls with t.Log in tests ( #19670 )
2024-12-09 17:48:59 +08:00
Daniel Liu
9d9bd65a01
crypto/ecies: remove unused function ( #19096 )
2024-12-09 17:48:59 +08:00
JukLee0ira
2d89951e5b
all: use errrors.New instead of empty fmt.Errorf
2024-06-14 19:19:21 +08:00
olumuyiwadad
b5abbfed79
new EVM Upgrade
...
- Solidity Upgraded up to v0.8.0
- Fixed and Added eth_chainId
- Fix error in TransactionRecipet
- Reward halving issue fixed
2021-09-21 16:53:46 +05:30
olumuyiwadad
571c41f891
FIx Bad block error.
2021-09-17 17:59:06 +05:30
Jianrong
2d92ccb59b
fix all XDCÐ tests and enable it in CI
2021-08-25 23:51:42 +10:00
David Huie
23ac783332
ecies: drop randomness parameter from PrivateKey.Decrypt ( #16374 )
...
The parameter `rand` is unused in `PrivateKey.Decrypt`. Decryption in
the ECIES encryption scheme is deterministic, so randomness isn't
needed.
2018-03-26 13:46:18 +03:00
Furkan KAMACI
b8caba9709
various: remove redundant parentheses ( #15793 )
2018-01-03 14:14:47 +02:00
Egon Elbre
10ce8b0e3c
crypto: fix megacheck warnings ( #14917 )
...
* crypto: fix megacheck warnings
* crypto/ecies: remove ASN.1 support
2017-08-08 13:58:22 +03:00
Felix Lange
9b0af51386
crypto: add btcec fallback for sign/recover without cgo ( #3680 )
...
* vendor: add github.com/btcsuite/btcd/btcec
* crypto: add btcec fallback for sign/recover without cgo
This commit adds a non-cgo fallback implementation of secp256k1
operations.
* crypto, core/vm: remove wrappers for sha256, ripemd160
2017-02-18 09:24:12 +01:00
Péter Szilágyi
18c77744ff
all: fix spelling errors
2017-01-06 19:44:35 +02:00
Felix Lange
f2da6581ba
all: fix issues reported by honnef.co/go/simple/cmd/gosimple
2017-01-06 18:18:07 +01:00
Felix Lange
35a7dcb162
all: gofmt -w -s
2017-01-06 15:52:03 +01:00
Felix Lange
6fdd0893c3
all: fix go vet warnings
2016-04-15 11:17:27 +02:00
Felix Lange
fdb936ee95
crypto/ecies: make authenticated shared data work
...
The s2 parameter was not actually written to the MAC.
2016-02-12 09:49:18 +01:00
Gustav Simonsson
c8ad64f33c
crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar mult
...
thanks to Felix Lange (fjl) for help with design & impl
2015-11-30 13:43:32 +01:00
Pavol Rusnak
3f07afbbd2
remove elliptic.P224 usage
...
Fedora/RedHat distros comply with US patent law and remove this curve,
which makes it impossible to run ethereum with distro provided Golang.
File crypto/ecies/README claims it is unsupported anyway.
2015-07-30 12:47:45 +02:00
Felix Lange
ea54283b30
all: update license information
2015-07-07 14:12:44 +02:00
Gustav Simonsson
aa4ff52d84
Add IsOnCurve check to EC unmarshalling in ECIES decryption
2015-04-07 23:50:04 +02:00
obscuren
396f1a0a33
Add 'crypto/ecies/' from commit '7c0f4a9b18d992166452d8cd32caaefd92b26386'
...
git-subtree-dir: crypto/ecies
git-subtree-mainline: 49a739c8d6
git-subtree-split: 7c0f4a9b18
2015-02-13 23:45:38 +01:00