This error occurs if RSA encrypted data using OAEP padding is decrypted with the assumption that PKCS v1.5 padding was used. To solve the problem, set the OaepPadding property = true prior to decrypting.
…
RSA_decrypt:
KeyType: Private
InputSize: 128
Padding: PKCS v1.5
ModulusBitLen: 1024
Invalid PKCS v1.5 padding header (1)
FoundBlockType: 197
ExpectingBlockType: 2
…