aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.go
Commit message (Collapse)AuthorAgeFilesLines
* Add loading of block test privkey if presentGustav Simonsson2015-04-281-0/+13
|
* crypto: update {Load,Save}ECDSA comments to mention hex encodingFelix Lange2015-04-191-2/+3
|
* removed utility function and implemented hex conversation in crypto functionsBas van Kervel2015-04-091-2/+9
|
* Support for import/export hex encoded keys, closes #635Bas van Kervel2015-04-091-3/+3
|
* Forward and log EC recover err and remove dup pubkey len checkGustav Simonsson2015-04-071-9/+7
|
* Cleanup.obscuren2015-03-291-9/+7
|
* common: remove WriteFile and ReadAllFile (use ioutil instead)zelig2015-03-271-2/+4
|
* import/export accountszelig2015-03-271-0/+5
| | | | | | | | | | | - 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)
* Merge remote-tracking branch 'ethereum/conversion' into conversionFelix Lange2015-03-171-2/+5
|\
| * converted vmobscuren2015-03-171-2/+5
| |
* | crypto: fix Sha3Hash and add a test for itFelix Lange2015-03-171-1/+1
|/
* crypto: add Sha3HashFelix Lange2015-03-171-1/+10
|
* Moved ethutil => commonobscuren2015-03-161-5/+5
|
* crypto: switch to golang.org/x/cryptoFelix Lange2015-02-171-2/+2
| | | | | code.google.com/p/go.crypto is deprecated and will cause problems in future versions of Go.
* Moved ECIES to repo & added secondary title for webviewobscuren2015-02-141-1/+1
| | | | | * ECIES moved from obscuren to ethereum * Added html META[name=badge] to reflect menuItem.secondaryTitle
* crypto: add key loading functionsFelix Lange2015-02-101-0/+28
|
* crypto: make it easier to run Sha3 on multiple inputsFelix Lange2015-02-061-3/+4
| | | | | crypto.Sha3(append(foo, bar)) --> crypto.Sha3(foo, bar) crypto.Sha3([]byte{}) --> crypto.Sha3()
* Fixed whisper pub key bugobscuren2015-01-301-1/+1
| | | | | * Unrecoverable messages would cause segfault when recovering invalid pub key
* Address pull request commentsGustav Simonsson2015-01-281-4/+3
| | | | | | | | | * 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
* Add accounts package and refactor key storesGustav Simonsson2015-01-261-2/+8
| | | | | | | | * 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
* Merge branch 'import_presale_keys' of ↵obscuren2015-01-231-0/+105
|\ | | | | | | | | | | | | https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-import_presale_keys Conflicts: crypto/crypto.go
| * CamelCase aesCBCDecryptGustav Simonsson2015-01-221-2/+2
| |
| * Add ImportPreSaleKeyGustav Simonsson2015-01-211-0/+104
| | | | | | | | | | | | * 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
* | Use curve params instead of hardcoded 32 bytesobscuren2015-01-231-1/+1
| |
* | Pad private key when signing & length check for hashes in signobscuren2015-01-231-1/+6
|/
* Moved `obscuren` secp256k1-goobscuren2015-01-221-1/+1
|
* Moved sha3 from `obscuren`obscuren2015-01-221-1/+1
|
* Added length checkesobscuren2014-12-131-1/+18
|
* Changed new methods to use ecdsa package for pub prv keysobscuren2014-12-101-23/+32
|
* Added Encrypt & Decrypt using the ECIES w/ testsobscuren2014-12-101-0/+42
|
* ethcrypto => cryptoobscuren2014-10-311-0/+47