Legrandin / pycryptodome

A self-contained cryptographic library for Python
https://www.pycryptodome.org
Other
2.81k stars 502 forks source link

object of type 'DerOctetString' has no len() #771

Closed qy527145 closed 12 months ago

qy527145 commented 12 months ago

这里digest是一个DerOctetString对象,应该修改成len(digestInfo) https://github.com/Legrandin/pycryptodome/blob/eeffcf5cd35fe7d8688c9cbbc5d66a2293babdae/lib/Crypto/Signature/pkcs1_15.py#L205

Legrandin commented 12 months ago

Thanks, fixed with https://github.com/Legrandin/pycryptodome/commit/739558f4d6174c2870431fe081964613567ea1fc.