mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
chore: update gmpy2_pkcs10aep_cipher.py (#4314)
This commit is contained in:
parent
8cc492721b
commit
e6db7ad1d5
|
@ -48,7 +48,7 @@ class PKCS1OAEP_Cipher:
|
||||||
`Crypto.Hash.SHA1` is used.
|
`Crypto.Hash.SHA1` is used.
|
||||||
mgfunc : callable
|
mgfunc : callable
|
||||||
A mask generation function that accepts two parameters: a string to
|
A mask generation function that accepts two parameters: a string to
|
||||||
use as seed, and the lenth of the mask to generate, in bytes.
|
use as seed, and the length of the mask to generate, in bytes.
|
||||||
If not specified, the standard MGF1 consistent with ``hashAlgo`` is used (a safe choice).
|
If not specified, the standard MGF1 consistent with ``hashAlgo`` is used (a safe choice).
|
||||||
label : bytes/bytearray/memoryview
|
label : bytes/bytearray/memoryview
|
||||||
A label to apply to this particular encryption. If not specified,
|
A label to apply to this particular encryption. If not specified,
|
||||||
|
@ -218,7 +218,7 @@ def new(key, hashAlgo=None, mgfunc=None, label=b'', randfunc=None):
|
||||||
|
|
||||||
:param mgfunc:
|
:param mgfunc:
|
||||||
A mask generation function that accepts two parameters: a string to
|
A mask generation function that accepts two parameters: a string to
|
||||||
use as seed, and the lenth of the mask to generate, in bytes.
|
use as seed, and the length of the mask to generate, in bytes.
|
||||||
If not specified, the standard MGF1 consistent with ``hashAlgo`` is used (a safe choice).
|
If not specified, the standard MGF1 consistent with ``hashAlgo`` is used (a safe choice).
|
||||||
:type mgfunc: callable
|
:type mgfunc: callable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user