it sounds like you've taken the <1024 bit buffer and padded it somehow.
pfnus wrote:
>
> Hello everybody,
>
> When Communicator (4.77) called my pkcs11 module during
> C_VerifyRecover,
> after i have decrypted the signature, i found that the padding is
> wrong,(not compliant with PKCS1 format). The first and second byte is
> '0', and the third byte is '1', followed by '0xff' until a separator
> '0' again. Under PKCS1,
> this supposed to be Type 1 format, the 2nd byte should be '1' instead
> of 3rd byte. Why the first 2 consecutive bytes are zero in this case
> here? This problem always happen under C_VerifyRecover.. anybody has
> any ideas?