Gustav Simonsson
edbd902a1b
Initialise curve N value in package init
10 years ago
Péter Szilágyi
14e7192d9c
crypto/sha3: pull in latest keccak from go crypto (45% speed increase)
10 years ago
Gustav Simonsson
32e1b104f8
Add EC signature validations before call to libsecp256k1
10 years ago
Gustav Simonsson
56a5592ea0
Update keystore code comments
10 years ago
Gustav Simonsson
e389585f1f
Change default keystore dir
10 years ago
Gustav Simonsson
2c1b0ff17e
Update key store to new spec but keep address field for now
...
* Also fix address types post-rebase
10 years ago
Gustav Simonsson
f98e002d98
Address pull request comments; key header and hex encoding
...
* Remove key header from unencrypted key file format and replace
it with a version field
* Change encoding of bytes in key files from base64 to hex
10 years ago
Gustav Simonsson
313eec33ad
Revert "Add key header to unencrypted key file"
...
This reverts commit a94d4ba0b53c4558ab838aaed635a2ff66ddfa53.
10 years ago
Gustav Simonsson
cd88295f5a
Add key header to unencrypted key file
10 years ago
Gustav Simonsson
29a5a92d13
Add key header to encrypted keys
...
* Add key header containing key version, kdf and kdf params
* Store key header as JSON in the key file
* Read in KDF params from key header
* Include key header in MAC calculation and MAC verification
10 years ago
Gustav Simonsson
da9fe951da
Use common.Address type for accounts.Address
10 years ago
Gustav Simonsson
6b23094cff
Improve key store passphrase crypto
...
* Change MAC-then-Encrypt to Encrypt-then-MAC
* Change AES256 to AES128
* Use first 16 bytes of KDF derived key for AES and
remaining 16 for MAC
10 years ago
Gustav Simonsson
9918b6c84e
Remove the awesome, ever misunderstood entropy mixing
10 years ago
Bas van Kervel
b79dd188d9
replaced several path.* with filepath.* which is platform independent
10 years ago
Gustav Simonsson
34c94d5fcd
Add loading of block test privkey if present
10 years ago
Gustav Simonsson
b0bf12ec87
Remove unneeded allocation
10 years ago
Gustav Simonsson
4d1887093d
Use make instead of new for allocation
10 years ago
Noel Maersk
958c04e79a
doc: crypto/secp256k1 GMP dependency package name.
...
Linux build documentation is mostly geared towards Ubuntu 14.04 (LTS).
Appropriate package is called `libgmp-dev` there.
Note that on pristine installations building `geth` with godep will
fail because this header is missing. This is not documented in the
top-level README, but is on the wiki:
https://github.com/ethereum/go-ethereum/wiki/Installation-Instructions-for-Ubuntu#building-geth-command-line-client
That page recommends `libgmp3-dev`, which ATM provides same version
as `libgmp-dev`.
10 years ago
Gustav Simonsson
9d2a156453
Fix ignore of unexpected files in key dir
10 years ago
Maran
04e216319e
Adding flags to facilitate cross compiling to ARM
10 years ago
Felix Lange
4907d28967
crypto: update {Load,Save}ECDSA comments to mention hex encoding
10 years ago
Bas van Kervel
ef393da933
removed utility function and implemented hex conversation in crypto functions
10 years ago
Bas van Kervel
b3a3fdf9a4
Support for import/export hex encoded keys, closes #635
10 years ago
Gustav Simonsson
aa4ff52d84
Add IsOnCurve check to EC unmarshalling in ECIES decryption
10 years ago
Gustav Simonsson
941f051358
libsecp256k1 #define NDEBUG
10 years ago
obscuren
50bbdfe582
Link GMP
10 years ago
Gustav Simonsson
3f306f63d4
Forward and log EC recover err and remove dup pubkey len check
10 years ago
Gustav Simonsson
d9b37b6da7
Update Go wrapper around libbsecp256k1
10 years ago
Gustav Simonsson
f4d4f1ccb2
Update bitcoin secp256k1 lib
10 years ago
obscuren
61c5edcb57
Cleanup.
10 years ago
zelig
4ec38e3932
common: remove WriteFile and ReadAllFile (use ioutil instead)
10 years ago
zelig
c4ea921876
import/export accounts
...
- cli: add passwordfile flag
- cli: change unlock flag only takes account
- cli: with unlock you are prompted for password or use passfile with password flag
- cli: unlockAccount used in normal client start (run) and accountExport
- cli: getPassword used in accountCreate and accountImport
- accounts: Manager.Import, Manager.Export
- crypto: SaveECDSA (to complement LoadECDSA) to save to file
- crypto: NewKeyFromECDSA added (used in accountImport and New = generated constructor)
10 years ago
Felix Lange
c388e7eac0
crypto: remove use of common.Value.Encode
...
This seems to be the last remaining use of it.
10 years ago
obscuren
515d9432fc
converted vm
10 years ago
Felix Lange
ad78db4d62
crypto: fix Sha3Hash and add a test for it
10 years ago
Felix Lange
64490897f3
crypto: add Sha3Hash
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
obscuren
58909117be
Use ECDSA instead of elliptic
10 years ago
Felix Lange
62ebce304e
crypto: delete old key management stuff
10 years ago
Gustav Simonsson
923950ccaa
Fix key store address hex decoding and accounts test
...
Thanks to https://github.com/jaekwon for original fix!
10 years ago
Maran
40adb7feb6
Implement OS sensitive dataDirs
10 years ago
Felix Lange
119bea22aa
crypto: switch to golang.org/x/crypto
...
code.google.com/p/go.crypto is deprecated and will cause
problems in future versions of Go.
10 years ago
obscuren
8f69b5c7a2
Added invalid sec key test
10 years ago
obscuren
238f39a42e
Validate seckey when generating pub key
10 years ago
obscuren
84f7c966f7
Moved ECIES to repo & added secondary title for webview
...
* ECIES moved from obscuren to ethereum
* Added html META[name=badge] to reflect menuItem.secondaryTitle
10 years ago
Gustav Simonsson
f35d62b759
Remove secp256_rand.go and update tests
10 years ago
Gustav Simonsson
39434e383b
Unexport randEntropy type and use exported Reader instead
10 years ago
Gustav Simonsson
8c056aebe1
Set both key generation and ECDSA nonce to use mixed entropy
...
* Move random entropy functions to new package randentropy
* Add function to get n bytes entropy where up to first 32
bytes are mixed with OS entropy sources
10 years ago
Felix Lange
0c7df37351
crypto: add key loading functions
10 years ago
Felix Lange
410b35e913
crypto: make it easier to run Sha3 on multiple inputs
...
crypto.Sha3(append(foo, bar)) --> crypto.Sha3(foo, bar)
crypto.Sha3([]byte{}) --> crypto.Sha3()
10 years ago