Content deleted Content added
Changed XOF to XOR |
→Example code: code style Black |
||
Line 66:
def i2osp(integer: int, size: int = 4) -> str:
return
def mgf1(input_str: str, length: int, hash=hashlib.sha1) -> str:
"""Mask generation function."""
counter = 0
output =
while
C = i2osp(counter, 4)
output += hash(input_str + C).digest()
|