On 03/24/2012 03:05 PM, VJ wrote:
I'm trying to use RSA_HashCheckSign() function to verify the message.
How are you even Linking with RSA_HashCheckSign()? It's a completely
internal function to softoken. If you want verify an RSA signature you
can use PK11_Verify(), or better yet one of the VFY_ functions.
I found that, its using SGN_DecodeDigestInfo() function to decode the
digest using SEC_QuickDERDecodeItem() function.
My understanding is that SEC_QuickDERDecodeItem() takes the
sgn_DigestInfoTemplate array, which is loaded from DLL (Is it right?)
If so, where can I find the source cod for that dll?
Both the quick decoder and the Digest or in nssutil. The question is,
though, why do you need a different template? If your signature isn't an
RSA PKCS #1 signature, what is it (perhaps you should be using a
different mechanism).
Is there any other alternative method in NSS to decode the digest /
RSA verification?
You are looking pretty low level, so it's hard to answer this question,
what is it you are really trying to do, and what kind of signature are
you using?
Regards,
Vejey
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto