Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-24 Thread Wan-Teh Chang
On Mon, Nov 24, 2008 at 9:10 PM, NZzi <[EMAIL PROTECTED]> wrote: > > But can you give me some days, because my project is close to > release dead line(at the end of this month), so this test can only > be done at this weekend or next monday. I'm terribly sorry for > this :( No problem. Take your

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

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-21 Thread Wan-Teh Chang
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. I'm so

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 of

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-17 Thread Robert Relyea
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 of the nss code that

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-14 Thread Ken
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 of the nss code that

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-14 Thread Robert Relyea
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 additional

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-14 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: 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

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 additional

Re: how to decrypt with pubkey without pkcs1 padding things

2008-11-13 Thread Wan-Teh Chang
On Thu, Nov 13, 2008 at 7:41 PM, NZzi <[EMAIL PROTECTED]> wrote: > now the test code failed in PK11_Sign() with 8192 error, > and as i have said error code description about this errno is > senseless. The -8192 error (SEC_ERROR_IO) is the default error code that NSS currently uses for many crypto

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 Robert Relyea
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/decryption/macing). In

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, not plaint

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 wa

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 P