Corrected PKCS #1 encoding.
corrected return codes