Felix Lange
ad78db4d62
crypto: fix Sha3Hash and add a test for it
2015-03-17 01:32:35 +01:00
Felix Lange
64490897f3
crypto: add Sha3Hash
2015-03-16 17:27:24 +01:00
obscuren
b523441361
Moved ethutil => common
2015-03-16 11:27:38 +01:00
obscuren
58909117be
Use ECDSA instead of elliptic
2015-03-11 01:10:25 +01:00
Felix Lange
62ebce304e
crypto: delete old key management stuff
2015-03-10 02:12:55 +01:00
Gustav Simonsson
923950ccaa
Fix key store address hex decoding and accounts test
...
Thanks to https://github.com/jaekwon for original fix!
2015-02-24 18:05:10 +01:00
Maran
40adb7feb6
Implement OS sensitive dataDirs
2015-02-23 11:28:20 +01:00
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.
2015-02-17 13:05:58 +01:00
obscuren
8f69b5c7a2
Added invalid sec key test
2015-02-16 13:19:57 +01:00
obscuren
238f39a42e
Validate seckey when generating pub key
2015-02-15 02:20:31 +01:00
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
2015-02-14 00:25:47 +01:00
obscuren
396f1a0a33
Add 'crypto/ecies/' from commit '7c0f4a9b18d992166452d8cd32caaefd92b26386'
...
git-subtree-dir: crypto/ecies
git-subtree-mainline: 49a739c8d647739b3d815966f8854a4e9978df56
git-subtree-split: 7c0f4a9b18d992166452d8cd32caaefd92b26386
2015-02-13 23:45:38 +01:00
obscuren
12b2d57629
Merge branch 'align_key_and_ecdsa_nonce_entropy' of https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-align_key_and_ecdsa_nonce_entropy
2015-02-13 23:31:20 +01:00
Gustav Simonsson
f35d62b759
Remove secp256_rand.go and update tests
2015-02-13 18:25:25 +01:00
Gustav Simonsson
39434e383b
Unexport randEntropy type and use exported Reader instead
2015-02-13 15:38:26 +01:00
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
2015-02-10 22:49:28 +01:00
Felix Lange
0c7df37351
crypto: add key loading functions
2015-02-10 12:29:50 +01:00
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()
2015-02-06 00:00:36 +01:00
obscuren
0d97c3ce13
Merge branch 'bounty' into develop
2015-01-31 17:50:43 +01:00
obscuren
19cff8ecca
Fixed n
2015-01-31 17:50:28 +01:00
obscuren
bb2e847363
Merge branch 'bounty' into develop
2015-01-31 17:44:42 +01:00
obscuren
a008c21cf0
Fixed Sign nonce
2015-01-31 17:44:34 +01:00
obscuren
c48644490f
Fixed whisper pub key bug
...
* Unrecoverable messages would cause segfault when recovering invalid
pub key
2015-01-30 13:24:20 +01:00
Gustav Simonsson
8d9752a557
Address pull request comments
...
* Use crypto.Sign instead of directly calling secp256k1 lib
* Rename UserAccount to Account and Addr to Address (for consistency)
* Change AccountManager.Sign to take ptr to Account instead of
address byte array
* Simplify copying of Accounts in Accounts()
* PubkeyToAddress and GetEntropyCSPRNG now exported
2015-01-28 05:12:57 +01:00
Gustav Simonsson
512ffa2bf4
Add accounts package and refactor key stores
...
* Add initial UserAccount and AccountManager structs
* Add NewAccount, Sign and Accounts functions
* Refactor key stores to use key address as main identifier
while keeping the UUID.
* Use key address as file/dir names instead of UUID
2015-01-26 04:30:17 +01:00
obscuren
a125b0fbc3
Merge branch 'import_presale_keys' of https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-import_presale_keys
...
Conflicts:
crypto/crypto.go
2015-01-22 22:42:39 +01:00
obscuren
0dfe511370
Use curve params instead of hardcoded 32 bytes
2015-01-22 18:15:11 +01:00
obscuren
d4cc2d3503
Pad private key when signing & length check for hashes in sign
2015-01-22 18:12:05 +01:00
obscuren
67f9783e6a
Moved obscuren
secp256k1-go
2015-01-22 00:35:00 +01:00
obscuren
6eaa404187
Moved sha3 from obscuren
2015-01-22 00:25:00 +01:00
Gustav Simonsson
8af42d42da
CamelCase aesCBCDecrypt
2015-01-21 19:08:05 +01:00
Gustav Simonsson
1f8290ca44
Add ImportPreSaleKey
...
* ImportPreSaleKey takes a KeyStore, a presale key JSON (e.g. file content)
and a password string. It stores the key in the given key store.
* Refactored common AES decryption and moved some functions to crypto.go
2015-01-21 16:35:43 +01:00
obscuren
4dd7be7ed0
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
2015-01-20 15:04:30 +01:00
Gustav Simonsson
d48140cab3
Address pull request comments
...
* Further simplify "constructor" function's allocation of structs
* Fix formatting
2015-01-19 22:12:22 +01:00
Gustav Simonsson
3cf038f300
Address pull request comments
...
* Allocate with composite literal instead of new
* Remove check of number of bytes read from rand
2015-01-19 20:24:30 +01:00
obscuren
bcb1166e52
Added 0 key proof error
...
Private key \x00\x00...\x00 returns the _exact_ same public key as \x11
\x11...\x11. Currently investigating.
2015-01-19 11:22:56 +01:00
Gustav Simonsson
9caf32befe
Update code comments
2015-01-15 19:58:38 +01:00
Gustav Simonsson
47d3b3dd58
Address pull request comments
...
* Remove flags field from key struct
* Change JSON struct fields from string to []byte
* Change GenerateNewKey API to take io.Reader for random source
* Remove mixing entropy source function
* Use testing Fatal in tests
2015-01-15 19:40:10 +01:00
Gustav Simonsson
a1c2749380
Address pull request comments
...
* Simplify scrypt constants with const block
* Add key store constructors and make their types private
* Simplify key store and file namings to be less Java Enterprise™
* Change test error logging to use t.Error(err)
* Reduce number of naked returns (just like my ex-gf)
* Simplify file reading path code
2015-01-15 19:40:10 +01:00
Gustav Simonsson
945798f913
Add new key_store interface and two new key stores
...
* Add new generic key_store interface
* Add new plaintext key store storing unprotected keys on disk
* Add new encrypted key store storing encrypted keys on disk
* Add new entropy mixing function using OS and go runtime sources
2015-01-15 19:40:10 +01:00
obscuren
35fe4313d5
pre-pow
2015-01-12 10:19:27 +01:00
obscuren
f8061fcba8
fixed tests
2014-12-12 22:38:54 +01:00
obscuren
06e76422b5
Added length checkes
2014-12-12 22:24:04 +01:00
obscuren
0f5c6c5e2d
Changed new methods to use ecdsa package for pub prv keys
2014-12-10 14:17:10 +01:00
obscuren
87adff7e18
Added Encrypt & Decrypt using the ECIES w/ tests
2014-12-10 00:03:21 +01:00
obscuren
c24018e273
Added S256 curve
2014-12-10 00:02:43 +01:00
obscuren
085f604b27
Show newly created private key during startup. Closes #126
2014-12-04 17:09:47 +01:00
Taylor Gerring
dd9e99a418
try to get full coverage report on travis
2014-11-14 20:58:09 -06:00
obscuren
fd9da72536
ethcrypto => crypto
2014-10-31 12:37:43 +01:00