Commit Graph
9 Commits
Author SHA1 Message Date
Yunus Shaikh 13c396c3c4 test(libressl): pin the 8-byte minimum of PKCS#1 type 1 padding
RSA_padding_check_PKCS1_type_1 refuses a block with fewer than eight
0xFF bytes, but no case reached that check: lowering it to one byte
still passed. RSA_public_decrypt now gets a type 1 block with seven
0xFF bytes, which must be refused, and one with eight, which must give
its payload. The RSA_flags entry also drops its sentence that no export
creates a key: RSA_new and d2i_RSA_PUBKEY do now.
2026-11-03 07:04:07 -08:00
Yunus Shaikh 7cf76af1d5 test(libSceLibreSsl): stop requiring unimplemented RSA features to throw
The RSA test pinned features that aren't implemented yet as throwing:
RSA_free with an ENGINE, ex_data, blinding or Montgomery context set,
the BER forms of d2i_RSA_PUBKEY and of a signature's DigestInfo, SSLv23
and X9.31 padding, moduli over 8192 bits, a custom bn_mod_exp, and the
digest types with no object. A test shouldn't lock in a missing
feature, so these checks and the OtherModExp fixture go. The calls still
refuse them, as the debt entries say; the null-pointer, malformed-input
and invalid-length checks stay.

Asked for in oneandonlydean's review.
2026-10-27 22:35:31 -07:00
Yunus Shaikh 8cd8de977d feat(libSceLibreSsl): implement RSA_verify 2026-10-27 22:34:14 -07:00
Yunus Shaikh dfccc19bde feat(libSceLibreSsl): implement RSA_public_encrypt and RSA_public_decrypt 2026-10-27 22:34:12 -07:00
Yunus Shaikh 70605292d1 feat(libSceLibreSsl): implement d2i_RSA_PUBKEY 2026-10-27 22:34:09 -07:00
Yunus Shaikh 2d360e23d2 feat(libSceLibreSsl): implement RSA_new and RSA_free 2026-10-27 22:34:07 -07:00
Alvaro 7477b90ecb refactor(libSceLibreSsl): declare the RSA exports in the public header 2026-10-26 20:17:48 +01:00
Alvaro ddb51767c0 feat(libSceLibreSsl): implement RSA_size 2026-10-26 20:17:36 +01:00
Alvaro d7928af60f feat(libSceLibreSsl): implement RSA_flags 2026-10-26 20:17:27 +01:00