aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/key_store_passphrase.go
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/key_store_passphrase.go')
-rw-r--r--accounts/key_store_passphrase.go12
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