summaryrefslogtreecommitdiff
path: root/sys/lib/python/idlelib/macosxSupport.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-02-10 00:08:38 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-02-10 00:08:38 +0100
commit24007b91208f732400e3f63a7f8d1d134e454d7b (patch)
tree9cd0816b16ab9384cfa12e125839d1459d438ae3 /sys/lib/python/idlelib/macosxSupport.py
parente8045cbcbf1d232011194ecc77325af72c394860 (diff)
libsec: revert asn1mpint(), rewrite rsa signature validation, cleanups
reverting asn1mpint() as all users really just expect unsigned integers here. also openssl seems to interpret rsa modulus as unsigned no matter what... so keeping it as it was before. handle nil cipher bytes in factotum_rsa_decrypt() due to pkcs1padbuf() failing. apply some lessions from intels berzerk paper: instead of parsing the decrypted digest info blob, we generate the *expected* blob's for all digest algorithms that match the digest size and compare the results. provide pkcs1 pad and unpad functions that consistently enforce minimum padding size and handles block types 1 and 2.
Diffstat (limited to 'sys/lib/python/idlelib/macosxSupport.py')
0 files changed, 0 insertions, 0 deletions