Closed nmeum closed 2 years ago
asn1crypto
1.5.1 does support rsassa_pss
:
if self._bit_size is None:
if self.algorithm == 'rsa' or self.algorithm == 'rsassa_pss':
prime = self['private_key'].parsed['modulus'].native
elif self.algorithm == 'dsa':
You need to update asn1crypto
in your build environment.
Indeed, my bad. Sorry for the noise.
Hi,
While upgrading the Alpine Linux oscrypto package to 1.3.0 I noticed the following test failure:
Looking at the tests, the problem seems to be this test case:
https://github.com/wbond/oscrypto/blob/41c21afdc5f04afcfa47ee2b65455fe31e15d6f5/tests/test_asymmetric.py#L140-L143
This seems to create a key with algorithm
rsassa_pss
, however, thebit_size()
implementation from/usr/lib/python3.10/site-packages/asn1crypto/keys.py
does not seem to support this algorithm:That is,
prime
is unset if the algorithm is neitherrsa
nordsa
. As such, I would assume this to be a bug in oscrypto.