Re: Importing public and private keys into nss

2012-05-03 Thread VJ
On Thursday, 3 May 2012 00:21:59 UTC+8, Robert Relyea wrote: > On 05/01/2012 12:01 PM, VJ wrote: > > On Tuesday, 1 May 2012 00:46:21 UTC+8, Robert Relyea wrote: > >> On 04/30/2012 02:22 AM, VJ wrote: > >>> Hi, > >>> I've tested encryption, d

Re: Importing public and private keys into nss

2012-05-01 Thread VJ
On Tuesday, 1 May 2012 00:46:21 UTC+8, Robert Relyea wrote: > On 04/30/2012 02:22 AM, VJ wrote: > > Hi, > > I've tested encryption, decryption, signing and verification with public > > (NSSLOWKEYPublicKey) and private keys (NSSLOWKEYPrivateKey) in low level. > Bi

Importing public and private keys into nss

2012-04-30 Thread VJ
Hi, I've tested encryption, decryption, signing and verification with public (NSSLOWKEYPublicKey) and private keys (NSSLOWKEYPrivateKey) in low level. However, Now I have a public/private keys in the below format: -BEGIN RSA PUBLIC KEY- MIGHAoGBAK12Da7PWjz1Yf01Hp2gaRxBWU2lXchh/lGaQI05Jus

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

Implementation of C_Encrypt function

2012-03-12 Thread VJ
Im porting all RSA encryption from the nss library. Im a newbie, may I know where C_Encrypt function under pk11_PubEncryptRaw() function is implemented. Also, I would like to know if anyone has ever ported only RSA related functions? Regards, Vejey -- dev-tech-crypto mailing list dev-tech-crypto@