I typically divide the problem in two.
Do a raw public key operation. If you see something that looks random,
then the public key doesn't match the private key used to generate the
signature, or either the public key or signature has been altered. If
it looks like padding + OID + hash, then either the padding or digest
you expect is wrong.
On 6/7/2012 4:28 AM, Lunar Mushrooms wrote:
I am trying to verify the signature of a sample downloaded from NIST .
But I am getting the following output:
retval=0 err='error:0407006A:lib(4):func(112):reason(106)'
When I collected the detailed description I found:
|openssl errstr 0407006A
error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01
|
The signature verification is expected to pass as per the data input I
have provided. Something might be wrong in my code. Any help is appreciated.
The data and the example code that I used is , in
http://stackoverflow.com/q/10927586/986020
thanks for help
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majord...@openssl.org