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

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).

Re: MITM in the wild

2008-11-13 Thread Eddy Nigg
On 11/12/2008 05:21 PM, Ian G: No it's not. You just need the person, not their identity. LOL, you are funny...and how exactly do you get the person if you don't know who it is that you need? This is what the (verified real) identity details in certificates are here for... If you need

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

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
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 to