plan9fox/sys
cinap_lenrek 24007b9120 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.
2017-02-10 00:08:38 +01:00
..
doc closed spew branch 2016-04-28 20:52:36 +02:00
games/lib fortunes: does that me a dipshit 2016-10-16 14:16:17 -04:00
include libsec: implement extended 192-bit nonce xchacha variant and hchacha function 2017-01-12 20:16:38 +01:00
lib /sys/lib/plumb/basic: fix rule for audio files (thanks deuteron) 2017-01-31 11:59:08 +01:00
man games/mix: implement Knuth's specification for comments 2017-02-03 18:55:02 -06:00
src libsec: revert asn1mpint(), rewrite rsa signature validation, cleanups 2017-02-10 00:08:38 +01:00