Skip to content

Commit

Permalink
KBKDF: have blocation= be an optional kwarg
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanpaulgalea committed Aug 10, 2022
1 parent 27f55ca commit e98c7aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cryptography/hazmat/primitives/kdf/kbkdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ def __init__(
rlen: int,
llen: typing.Optional[int],
location: CounterLocation,
blocation: typing.Optional[int],
label: typing.Optional[bytes],
context: typing.Optional[bytes],
fixed: typing.Optional[bytes],
backend: typing.Any = None,
blocation: typing.Optional[int] = None,
):
if not isinstance(algorithm, hashes.HashAlgorithm):
raise UnsupportedAlgorithm(
Expand Down Expand Up @@ -224,11 +224,11 @@ def __init__(
rlen: int,
llen: typing.Optional[int],
location: CounterLocation,
blocation: typing.Optional[int],
label: typing.Optional[bytes],
context: typing.Optional[bytes],
fixed: typing.Optional[bytes],
backend: typing.Any = None,
blocation: typing.Optional[int] = None,
):
if not issubclass(
algorithm, ciphers.BlockCipherAlgorithm
Expand Down

0 comments on commit e98c7aa

Please sign in to comment.