Closed jelaiw closed 6 months ago
While trying the code example (for signing) at https://www.pycryptodome.org/src/signature/pkcs1_pss, I ran into a few exceptions (in Python 3.10). Figured this may be a good time to update this example.
Patch does the following:
message
SHA256.new()
RSA.import_key()
pss.new()
Crypto.Random
make html appears to build the docs as expected.
make html
Hope this helps!
Thanks!
While trying the code example (for signing) at https://www.pycryptodome.org/src/signature/pkcs1_pss, I ran into a few exceptions (in Python 3.10). Figured this may be a good time to update this example.
Patch does the following:
message
to byte string (otherwiseSHA256.new()
throws an exception).RSA.import_key()
to read DER file in binary (otherwise this call throws an exception too; plus,pss.new()
expects a byte string now).Crypto.Random
.make html
appears to build the docs as expected.Hope this helps!