Parameterize cost factor N of scrypt
This commit is contained in:
parent
9567fb840d
commit
102d7c2d5f
2 changed files with 4 additions and 4 deletions
|
|
@ -29,7 +29,7 @@ func TestSubtle_DecryptWithoutIntegrity(t *testing.T) {
|
|||
|
||||
func TestSubtle_DeriveKey(t *testing.T) {
|
||||
salt, _ := hex.DecodeString("c828f258a76aad7b")
|
||||
dk, _ := DeriveKey("some password", salt)
|
||||
dk, _ := DeriveKey("some password", salt, 32768)
|
||||
if hex.EncodeToString(dk) != "9469cccfc8a8d005247f39fa3e5b35a97db456cecf18deac6d84364d0818d763" {
|
||||
t.Fatal("DeriveKey returned unexpected result")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue