Hi all,

I have the following problem:

I want to verify a signature that was created inside a smartcard. The smartcard 
creates a digital signature with RSA 2048 bit over a hash that was created 
using SHA-512 (OpenSSL).
To verify the signature I call the OpenSSL-function 

RSA_public_decrypt

with RSA_PKCS1_PADDING as padding.
Most of the created signature are working fine with this function, but I have 
some of them that cause the error 106 that has the following error reason

RSA_R_BLOCK_TYPE_IS_NOT_01.

All signatures are created at the same time with the same card and program. All 
other signatures work fine.

What could be the problem?
I don't think that this is a problem with the card that creates the signatures.
Maybe there is some inconstistence in the hashvalue generation or the 
initialisation of OpenSSL. Could this be a reason?

Hope someone can help me.


Best regards

Frank Wockenfuß
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to