This commit is contained in:
Christoph J. Scherr 2023-06-01 19:46:39 +02:00
parent b263e491aa
commit 396506aa7a
Signed by: PlexSheep
GPG Key ID: 25B4ACF7D88186CC
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ def test_rsa_oaep_inner():
def rsa_oaep_noenc(ha: bytearray, m: bytearray, verbose: bool, seed: int = random.randint(0, 2**64 - 1)):
"""
rsa-oeap without encryption
rsa-oaep without encryption
"""
# generate a seed
assert calclen(seed) == 8, "seed is wrong length: %d" % calclen(seed)
@ -170,7 +170,7 @@ def rsa_oaep(
seed: int = random.randint(0, 2**64 - 1)
) -> bytearray:
"""
rsa-oeap with encryption
rsa-oaep with encryption
"""
r: bytearray = rsa_oaep_noenc(ha, m, verbose, seed)
ri = int.from_bytes(r, 'big')