HF RL Explorer

sc pkcs1 strip 02 padding constant time incorrectly accepts invalid PKCS 1 v1.5 type 2 padding

sc pkcs1 strip 02 padding constant time incorrectly accepts invalid PKCS 1 v1.5 type 2 padding: a task in LegoFlow-SWE (Harbor dataset). The function sc pkcs1 strip 02 padding constant time is supposed to strip PKCS 1 type 2 padding from RSA‑encrypted data in constant time. However, it currently…

The task

The function `sc_pkcs1_strip_02_padding_constant_time` is supposed to strip PKCS#1 type 2 padding from RSA‑encrypted data in constant time. However, it currently fails to reject several classes of malformed input that must be rejected according to the PKCS#1 v1.5 specification. This leads to improper handling of…

Part of Lego-X/LegoFlow-SWE.