cryptographyopensslrsamozillanss

How does OpenSSL/Mozilla NSS RSA sign and verify (PK11_Sign, PK11_Verify, PK11_VerifyRecover functions) work?


I have my RSA public and private keys (all of p,q,e,n,d) in PEM format. I am curious to know:

The context of my question is: I have seen PK11_Sign() adds some padding to my input data during signing. For example (given the key size is 162 bits):

my input = 31323334353036373839
padded input = 1FFFFFFFFFFFFFFFF0031323334353036373839

I would like to know:


Solution