diff options
author | Felix Lange <fjl@twurst.com> | 2016-11-15 01:10:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 01:10:03 +0800 |
commit | 8dcea0ac0785c92df84d55b8322281e12189d8fb (patch) | |
tree | 18d9c033f86af4eda374261e4c0a165ac2c733c0 /accounts/key_store_passphrase.go | |
parent | d89ea3e6f90c32a97bad58b82a15af0d81f4250e (diff) | |
parent | dfe79cc7845d94d14c2bc091c7eeac082f6b1e90 (diff) | |
download | dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.gz dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.bz2 dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.lz dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.xz dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.tar.zst dexon-8dcea0ac0785c92df84d55b8322281e12189d8fb.zip |
Merge pull request #2977 from karalabe/initial-mobile-suport
mobile: initial wrappers for mobile support
Diffstat (limited to 'accounts/key_store_passphrase.go')
-rw-r--r-- | accounts/key_store_passphrase.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/accounts/key_store_passphrase.go b/accounts/key_store_passphrase.go index 3a5155e13..4a777956d 100644 --- a/accounts/key_store_passphrase.go +++ b/accounts/key_store_passphrase.go @@ -46,12 +46,20 @@ import ( const ( keyHeaderKDF = "scrypt" - // n,r,p = 2^18, 8, 1 uses 256MB memory and approx 1s CPU time on a modern CPU. + // StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB + // memory and taking approximately 1s CPU time on a modern processor. StandardScryptN = 1 << 18 + + // StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB + // memory and taking approximately 1s CPU time on a modern processor. StandardScryptP = 1 - // n,r,p = 2^12, 8, 6 uses 4MB memory and approx 100ms CPU time on a modern CPU. + // LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB + // memory and taking approximately 100ms CPU time on a modern processor. LightScryptN = 1 << 12 + + // LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB + // memory and taking approximately 100ms CPU time on a modern processor. LightScryptP = 6 scryptR = 8 |