why nss has very little doc about usage of api

2008-11-03 Thread NZzi
hi all: when i use nss to develop some cipher program(just for local, not internet), i.e. just perform miscellaneous cryptographic operations, the only reference i can use is the example code from MDC. when i want a detail parameter explanation, what i got is just this function's MXR source. I

Re: why nss has very little doc about usage of api

2008-11-05 Thread NZzi
Robert Relyea wrote: Ken wrote: 2008/11/5 Robert Relyea [EMAIL PROTECTED]: NZzi wrote: hi all: when i use nss to develop some cipher program(just for local, not internet), i.e. just perform miscellaneous cryptographic operations, the only reference i can use is the example code from

how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread NZzi
hi all: I want to use private key to encrypt a message, and decrypt with public key. i know there is PK11_PubDecryptRaw, PK11_PubEncrptRaw, but all these don't do padding things(PKCS1) for me. and SGN_*(), VFY_*(), PK11_Verify*() give me the digest message, not plaint message i want. i find

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread NZzi
NZzi wrote: hi all: I want to use private key to encrypt a message, and decrypt with public key. i know there is PK11_PubDecryptRaw, PK11_PubEncrptRaw, but all these don't do padding things(PKCS1) for me. and SGN_*(), VFY_*(), PK11_Verify*() give me the digest message, not plaint message i

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread NZzi
NZzi wrote: NZzi wrote: hi all: I want to use private key to encrypt a message, and decrypt with public key. i know there is PK11_PubDecryptRaw, PK11_PubEncrptRaw, but all these don't do padding things(PKCS1) for me. and SGN_*(), VFY_*(), PK11_Verify*() give me the digest message

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread NZzi
Robert Relyea wrote: NZzi wrote: hi all: I want to use private key to encrypt a message, and decrypt with public key. Are you encrypting data or a symmetric Key? Most of the nss code that does these operations does so on actual symetric keys (which are then used to do additional encryption

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread NZzi
NZzi wrote: Robert Relyea wrote: NZzi wrote: hi all: I want to use private key to encrypt a message, and decrypt with public key. Are you encrypting data or a symmetric Key? Most of the nss code that does these operations does so on actual symetric keys (which are then used to do

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread NZzi
NZzi wrote: NZzi wrote: Robert Relyea wrote: NZzi wrote: hi all: I want to use private key to encrypt a message, and decrypt with public key. Are you encrypting data or a symmetric Key? Most of the nss code that does these operations does so on actual symetric keys (which are then used

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-20 Thread NZzi
Robert Relyea wrote: Ken wrote: 2008/11/15 Robert Relyea [EMAIL PROTECTED]: NZzi wrote: Robert Relyea wrote: NZzi wrote: hi all: I want to use private key to encrypt a message, and decrypt with public key. Are you encrypting data or a symmetric Key? Most

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-24 Thread NZzi
Wan-Teh Chang wrote: On Thu, Nov 20, 2008 at 9:32 PM, NZzi [EMAIL PROTECTED] wrote: yeah, in order to get the real reason of the problem, i had to compile NSS from source and debug my program with NSS code, then i found why i got 8192 error. It's because the length thing of data and signed data

Re: Memory leaks in even trivial use of nss?

2009-03-16 Thread NZzi
Nelson B Bolyard wrote: DanKegel wrote, On 2009-03-15 11:50: I'm looking at memory leaks, starting with the simple test program #include ssl.h #include stdio.h int main() { NSS_NoDB_Init(); NSS_Shutdown(); For leak testing, there's one more important call to be placed here.