python-rsa icon indicating copy to clipboard operation
python-rsa copied to clipboard

Add BLAKE2 support

Open yjqiang opened this issue 5 years ago • 1 comments

https://github.com/sybrenstuvel/python-rsa/pull/96 I checked black2s and black2b like 👆(sha3), and it works. But Python 3.6 has support for black2 in hashlib but older versions of Python do not. So what should we do? And sorry about that, I can't calculate asn1_code for black2, so I didn't pull request.

yjqiang avatar Jan 09 '20 02:01 yjqiang

Update0: https://github.com/dchest/pyblake2 but it's not pure python.

yjqiang avatar Jan 09 '20 02:01 yjqiang

This library implements RSA according to PKCS#1, which does not include BLAKE2. A case could be made to add support if BLAKE2 is frequently used with RSA in practice. However, OpenSSL (one of the most popular cryptography libraries) does not support BLAKE2 with RSA, so adding this configuration would be unusual.

Please feel free to reopen this issue if you know of a compelling use case and we can reconsider adding BLAKE2 support.

myheroyuki avatar Dec 21 '23 12:12 myheroyuki