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
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
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
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
obscuren
c48644490f
Fixed whisper pub key bug
...
* Unrecoverable messages would cause segfault when recovering invalid
pub key
10 years ago
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
10 years ago
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
10 years ago
obscuren
0dfe511370
Use curve params instead of hardcoded 32 bytes
10 years ago
obscuren
d4cc2d3503
Pad private key when signing & length check for hashes in sign
10 years ago
obscuren
67f9783e6a
Moved `obscuren` secp256k1-go
10 years ago
obscuren
6eaa404187
Moved sha3 from `obscuren`
10 years ago
Gustav Simonsson
8af42d42da
CamelCase aesCBCDecrypt
10 years ago
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
10 years ago
obscuren
06e76422b5
Added length checkes
10 years ago
obscuren
0f5c6c5e2d
Changed new methods to use ecdsa package for pub prv keys
10 years ago
obscuren
87adff7e18
Added Encrypt & Decrypt using the ECIES w/ tests
10 years ago
obscuren
fd9da72536
ethcrypto => crypto
10 years ago
obscuren
9d86a49a73
Renamed Sha3Bin to Sha3
10 years ago
obscuren
11ace54307
ECRECOVER RIPEMD160 SHA256
10 years ago
obscuren
8ef17c2fb1
fi crypto
10 years ago
obscuren
adabd71a4a
Changed back to FIPS 180
10 years ago
obscuren
627b7c9fd7
Updated to latest sha3 implementation. Fixes #48
10 years ago
obscuren
54715586ab
Changed sha3 to official one
11 years ago
obscuren
81bc721c5c
Fixed address generation
11 years ago
zelig
4be3521727
import math/big
11 years ago
zelig
e3b911652d
move CreateAddress from ethutil/common to ethcrypto
11 years ago
zelig
d085133c6d
move ethutil helper crypto functions to ethcrypto/crypto
11 years ago