aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/key.go
Commit message (Collapse)AuthorAgeFilesLines
* Address pull request commentsGustav Simonsson2015-01-201-5/+1
| | | | | * Allocate with composite literal instead of new * Remove check of number of bytes read from rand
* Address pull request commentsGustav Simonsson2015-01-161-122/+28
| | | | | | | | * 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
* Address pull request commentsGustav Simonsson2015-01-161-11/+11
| | | | | | | | | * 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
* Add new key_store interface and two new key storesGustav Simonsson2015-01-161-0/+205
* 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