paddingschemes¶
A collection of encryption and signature padding schemes
-
paddingschemes.
MGF1
(seed, maskBytes, hashFn, hLen)[source]¶ MGF1 Mask Generation Function
Implemented according to PKCS #1 specification, see appendix B.2.1:
Parameters: hLen
: is the output length of the hash functionmaskBytes
: the number of mask bytes to return
-
class
paddingschemes.
OAEPEncryptionPadding
(_hash_type='sha1')[source]¶ Bases:
object
Authors: Gary Belvin OAEPEncryptionPadding
Implements the OAEP padding scheme. Appropriate for RSA-OAEP encryption. Implemented according to PKCS#1 v2.1 Section 7 ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf
-
class
paddingschemes.
PSSPadding
(_hash_type='sha1')[source]¶ Bases:
object
Authors: Gary Belvin PSSSignaturePadding
Implements the PSS signature padding scheme. Appropriate for RSA-PSS signing. Implemented according to section 8 of ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-1/pkcs-1v2-1.pdf.