This commit is contained in:
Jahongir Qurbonov 2024-10-07 13:54:44 +05:00
parent 0643958b7e
commit 005a2354fc

View File

@ -3,14 +3,14 @@ try:
def ige_encrypt( def ige_encrypt(
plaintext: bytes | bytearray | memoryview, key: bytes, iv: bytes plaintext: bytes | bytearray | memoryview, key: bytes, iv: bytes
) -> bytes: # noqa: F811 ) -> bytes:
return cryptg.encrypt_ige( return cryptg.encrypt_ige(
bytes(plaintext) if not isinstance(plaintext, bytes) else plaintext, key, iv bytes(plaintext) if not isinstance(plaintext, bytes) else plaintext, key, iv
) )
def ige_decrypt( def ige_decrypt(
ciphertext: bytes | bytearray | memoryview, key: bytes, iv: bytes ciphertext: bytes | bytearray | memoryview, key: bytes, iv: bytes
) -> bytes: # noqa: F811 ) -> bytes:
return cryptg.decrypt_ige( return cryptg.decrypt_ige(
bytes(ciphertext) if not isinstance(ciphertext, bytes) else ciphertext, bytes(ciphertext) if not isinstance(ciphertext, bytes) else ciphertext,
key, key,