aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.go
Commit message (Collapse)AuthorAgeFilesLines
* Change go-uuid to use the current supported repository.Jeff R. Allen2015-09-121-1/+1
|
* all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* fix account orderingzelig2015-07-031-1/+1
| | | | | | | | * chronological order of creation * new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex> * KeyStore2 -> KeyStore * backward compatibility * refactor keyStore methods
* Change keystore to version 3Gustav Simonsson2015-06-241-7/+19
| | | | | | | | | | | | * 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
* crypto: return common.Address rather than raw bytesobscuren2015-06-051-4/+4
|
* Initialise curve N value in package initGustav Simonsson2015-06-031-1/+3
|
* Add EC signature validations before call to libsecp256k1Gustav Simonsson2015-06-021-0/+14
|
* Change default keystore dirGustav Simonsson2015-05-131-1/+1
|
* Update key store to new spec but keep address field for nowGustav Simonsson2015-05-121-1/+1
| | | | * Also fix address types post-rebase
* Use common.Address type for accounts.AddressGustav Simonsson2015-05-121-3/+3
|
* Improve key store passphrase cryptoGustav Simonsson2015-05-121-1/+1
| | | | | | | * 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
* 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