fix: increase iterations to 600k
This commit is contained in:
parent
1ca46dddd4
commit
9782907c90
|
@ -133,7 +133,7 @@ func configureS5Protocol(proto *S5Protocol) (*s5config.NodeConfig, error) {
|
||||||
proto.logger.Fatal("protocol.s5.db_path is required")
|
proto.logger.Fatal("protocol.s5.db_path is required")
|
||||||
}
|
}
|
||||||
|
|
||||||
derivedSeed := pbkdf2.Key(proto.identity, []byte("s5"), 10000, 32, sha256.New)
|
derivedSeed := pbkdf2.Key(proto.identity, []byte("s5"), 600000, 32, sha256.New)
|
||||||
|
|
||||||
p := ed25519.NewKeyFromSeed(derivedSeed)
|
p := ed25519.NewKeyFromSeed(derivedSeed)
|
||||||
cfg.KeyPair = s5ed.New(p)
|
cfg.KeyPair = s5ed.New(p)
|
||||||
|
|
Loading…
Reference in New Issue