Re: Alternative for SGN_DecodeDigestInfo

2012-04-06 Thread Brian Smith
Robert Relyea wrote: > Why are they linking with Freebl anyway? It's intended to be a > private interface for softoken. It's a very good way to find > yourself backed into a corner. Right. This was a long time ago. You helped me add the J-PAKE implementation to Softoken after we discovered this p

Re: Alternative for SGN_DecodeDigestInfo

2012-04-05 Thread Robert Relyea
On 04/04/2012 05:57 PM, Wan-Teh Chang wrote: On Wed, Apr 4, 2012 at 4:39 PM, Brian Smith wrote: I don't know what platform JV is on, but I know on Mac OS X, all the internal symbols in FreeBL and maybe other libraries are exported. This is how the Firefox Sync developers got so far in developin

Re: Alternative for SGN_DecodeDigestInfo

2012-04-04 Thread Wan-Teh Chang
On Wed, Apr 4, 2012 at 4:39 PM, Brian Smith wrote: > > I don't know what platform JV is on, but I know on Mac OS X, > all the internal symbols in FreeBL and maybe other libraries > are exported. This is how the Firefox Sync developers got > so far in developing their JavaScript implementation of J

Re: Alternative for SGN_DecodeDigestInfo

2012-04-04 Thread Brian Smith
Robert Relyea wrote: > 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()? I don't know what platform JV is on, but I know on Mac OS X, all the internal symbols in FreeBL and maybe oth

Re: Alternative for SGN_DecodeDigestInfo

2012-04-02 Thread Robert Relyea
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

Alternative for SGN_DecodeDigestInfo

2012-03-26 Thread VJ
I'm trying to use RSA_HashCheckSign() function to verify the message. 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