§
é!ñ_çÿ¤õã ó€ — d dl mZ d dlZd dlmZmZ d dlZd dlmZm Z m
Z
d dlmZ d dlm
Z
G d„ d¦ « Zdd
„ZdS )é )ÚMGF1N)ÚbordÚ_copy_bytes)Úceil_divÚ
bytes_to_longÚ
long_to_bytes)Ústrxor)ÚRandomc ó0 — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ ZdS )ÚPKCS1OAEP_CipherzXCipher object for PKCS#1 v1.5 OAEP.
Do not create directly: use :func:`new` instead.c ó¸ ‡ — |‰ _ |r|‰ _ nt j j ‰ _ |r|‰ _ n
ˆ fd„‰ _ t
dd|¦ « ‰ _ |‰ _ dS )a Initialize this PKCS#1 OAEP cipher object.
:Parameters:
key : an RSA key object
If a private half is given, both encryption and decryption are possible.
If a public half is given, only encryption is possible.
hashAlgo : hash object
The hash function to use. This can be a module under `Crypto.Hash`
or an existing hash object created from any of such modules. If not specified,
`Crypto.Hash.SHA1` is used.
mgfunc : callable
A mask generation function that accepts two parameters: a string to
use as seed, and the lenth of the mask to generate, in bytes.
If not specified, the standard MGF1 consistent with ``hashAlgo`` is used (a safe choice).
label : bytes/bytearray/memoryview
A label to apply to this particular encryption. If not specified,
an empty string is used. Specifying a label does not improve
security.
randfunc : callable
A function that returns random bytes.
:attention: Modify the mask generation function only if you know what you are doing.
Sender and receiver must use the same one.
c ó0 •— t | |‰j ¦ « S )N)r Ú_hashObj)ÚxÚyÚselfs €úz/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/PKCS1_OAEP.pyú