Renamed _memory_use in cryptography into MEMORY_USAGE
This commit is contained in:
parent
a1bed9014d
commit
559ee8f6d8
@ -3,14 +3,14 @@ import os
|
|||||||
from cryptography.exceptions import InvalidKey
|
from cryptography.exceptions import InvalidKey
|
||||||
from cryptography.hazmat.primitives.kdf.scrypt import Scrypt
|
from cryptography.hazmat.primitives.kdf.scrypt import Scrypt
|
||||||
|
|
||||||
_memory_use = 2**14
|
MEMORY_USAGE = 2**14
|
||||||
|
|
||||||
|
|
||||||
def _get_kdf(salt: bytes) -> Scrypt:
|
def _get_kdf(salt: bytes) -> Scrypt:
|
||||||
kdf = Scrypt(
|
kdf = Scrypt(
|
||||||
salt=salt,
|
salt=salt,
|
||||||
length=128,
|
length=128,
|
||||||
n=_memory_use,
|
n=MEMORY_USAGE,
|
||||||
r=8,
|
r=8,
|
||||||
p=1,
|
p=1,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user