On Mon, Feb 11, 2008, Wockenfu, Frank wrote:

> 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.
> 

I'd suggest you put the values through the rsautl utility to see if you get
the same error.

If you do try posting the public key and a few good and bad examples.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to