Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions firebase_admin/_user_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def standard_scrypt(cls, memory_cost, parallelization, block_size, derived_key_l
"""Creates a new standard Scrypt algorithm instance.

Args:
memory_cost: Memory cost as a non-negaive integer.
memory_cost: CPU Memory cost as a non-negative integer.
parallelization: Parallelization as a non-negative integer.
block_size: Block size as a non-negative integer.
derived_key_length: Derived key length as a non-negative integer.
Expand All @@ -463,7 +463,7 @@ def standard_scrypt(cls, memory_cost, parallelization, block_size, derived_key_l
UserImportHash: A new ``UserImportHash``.
"""
data = {
'memoryCost': _auth_utils.validate_int(memory_cost, 'memory_cost', low=0),
'cpuMemCost': _auth_utils.validate_int(memory_cost, 'memory_cost', low=0),
'parallelization': _auth_utils.validate_int(parallelization, 'parallelization', low=0),
'blockSize': _auth_utils.validate_int(block_size, 'block_size', low=0),
'dkLen': _auth_utils.validate_int(derived_key_length, 'derived_key_length', low=0),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_user_mgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ def test_standard_scrypt(self):
memory_cost=14, parallelization=2, block_size=10, derived_key_length=128)
expected = {
'hashAlgorithm': 'STANDARD_SCRYPT',
'memoryCost': 14,
'cpuMemCost': 14,
'parallelization': 2,
'blockSize': 10,
'dkLen': 128,
Expand Down