Skip to content

Commit c1ab14f

Browse files
authored
nethsm backup test: scrypt p=16 (#56)
1 parent f151906 commit c1ab14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nethsm/backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def parse(cls, data: bytes) -> "EncryptedBackup":
9292

9393
def _key(self, passphrase: str) -> bytes:
9494
return hashlib.scrypt(
95-
password=passphrase.encode(), salt=self.salt, n=16384, r=8, p=1, dklen=32
95+
password=passphrase.encode(), salt=self.salt, n=16384, r=8, p=16, dklen=32
9696
)
9797

9898
def decrypt(self, passphrase: str) -> Backup:

0 commit comments

Comments
 (0)