Felix Lange
453d2c9ce1
crypto: fix build with Go 1.5
9 years ago
Felix Lange
67598d9d08
crypto/sha3: add full license headers
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
f4acdea402
crypto: fix license of curve.go
...
crypto/curve.go is not our code and has its own license. This commit
excludes it in update-license.go and removes our GPL header.
9 years ago
Felix Lange
06d5898d6a
crypto: remove debug print call after decrypting a key from disk
9 years ago
zelig
589f1c85b9
: colon => dash - in keyfile name - slight deviation from ISO8601 for WIN FS compatibility
9 years ago
Felix Lange
4fb28e0dab
all: goimports -w
9 years ago
Felix Lange
e813626ee1
all: remove @author comments
9 years ago
Felix Lange
ea54283b30
all: update license information
9 years ago
zelig
1959346793
account update: migrate or change password
...
* account.Update
* KeyStore.Cleanup
* fix dir rm for old format deleteKey
10 years ago
zelig
fc17a527bc
fix account ordering
...
* chronological order of creation
* new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex>
* KeyStore2 -> KeyStore
* backward compatibility
* refactor keyStore methods
10 years ago
zelig
a4df9d74ea
accounts order by keyfile ctime
10 years ago
Gustav Simonsson
d23ec6c419
Change keystore to version 3
...
* Change password protection crypto in keystore to version 3
* Update KeyStoreTests/basic_tests.json
* Add support for PBKDF2 with HMAC-SHA256
* Change MAC and encryption key to avoid unnecessary hashing
* Add tests for test vectors in new wiki page defining version 3
* Add tests for new keystore tests in ethereum/tests repo
* Move JSON loading util to common for use in both tests and
crypto packages
* Add backwards compatibility with key store version 1
10 years ago
obscuren
0f51ee6c88
crypto: return common.Address rather than raw bytes
10 years ago
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