Re: PK11_pubEncrypt/decryptRaw and PK11PubEncrypt/privdecryptPKCS1

2011-06-22 Thread Crypto User
Ok. So I got it that Encrypt and decrypt Raw supports no padding . So the data has to be exactly the length of modulus. Correct? But , PK11_pubEncryptPKCS1/ PK11_PrivDecryptPKCS1 gives error -8023. Can anybody pl. provide any pointer. Thanks -- dev-tech-crypto mailing list

Re: PK11_pubEncrypt/decryptRaw and PK11PubEncrypt/privdecryptPKCS1

2011-06-22 Thread Crypto User
On Jun 22, 11:56 am, Robert Relyea rrel...@redhat.com wrote: On 06/22/2011 10:54 AM, Crypto User wrote: Ok. So I got it that Encrypt and decrypt Raw supports no padding . So the data has to be exactly the length of modulus. Correct? Right. If you try to encrypt something smaller than

PK11_pubEncrypt/decryptRaw and PK11PubEncrypt/privdecryptPKCS1

2011-06-21 Thread Crypto User
Hi , I have a couple of questions regarding the RSa encrypt/decrypt operations. 1. PK11PubencryptRaw does not support any padding , So it will Encrypt data only = to the modulus length .is that correct? So what happens if data is less than modulus length? It does not seem to fail if you give

PK11_pubEncrypt/decryptRaw and PK11PubEncrypt/privdecryptPKCS1

2011-06-21 Thread Crypto User
Hi , I have a couple of questions regarding the RSa encrypt/decrypt operations. 1. PK11PubencryptRaw does not support any padding , So it will Encrypt data only = to the modulus length .is that correct? So what happens if data is less than modulus length? It does not seem to fail if you give

Re: undefined reference to `PK11_CopyToSlot'

2011-06-12 Thread Crypto User
On Jun 11, 5:57 am, Nelson B Bolyard nel...@bolyard.me wrote: On 2011-06-10 16:43 PDT, Crypto User wrote: On May 25, 11:33 am, Crypto User cryptou...@gmail.com wrote: Hi ,  I am trying to use this method to move my symmetric key to the key for wrapping.  when I use this method , I

Re: undefined reference to `PK11_CopyToSlot'

2011-06-10 Thread Crypto User
On May 25, 11:33 am, Crypto User cryptou...@gmail.com wrote: Hi ,  I am trying to use this method to move my symmetric key to the key for wrapping.  when I use this method , I get undefined reference to `PK11_CopyToSlot' collect2: ld returned 1 exit status which is linker error. I am

Re: undefined reference to `PK11_CopyToSlot'

2011-06-10 Thread Crypto User
On May 25, 11:33 am, Crypto User cryptou...@gmail.com wrote: Hi ,  I am trying to use this method to move my symmetric key to the key for wrapping.  when I use this method , I get undefined reference to `PK11_CopyToSlot' collect2: ld returned 1 exit status which is linker error. I am

undefined reference to `PK11_CopyToSlot'

2011-05-25 Thread Crypto User
Hi , I am trying to use this method to move my symmetric key to the key for wrapping. when I use this method , I get undefined reference to `PK11_CopyToSlot' collect2: ld returned 1 exit status which is linker error. I am including the pk11priv.h file. I have the latest nss library after using

PK11_DigestBegin vs MD5_Begin()

2011-03-23 Thread Crypto User
For creating hash I found 2 sets of APIs . There seem to be different APIs. E.g CreateDigestContext(SECOidTag hashAlg) and PK11_DigestBegin related APIs in https://developer.mozilla.org/en/NSS/Cryptography_functions or MD5_Begin() and related hash API from (hash_Begin etc)

Hashing function in NSS

2011-03-23 Thread Crypto User
Hi , I am trying to create APIS which will provide Hashing functionality to end user. I am using NSS to provide this on Linux. I was trying to find the correct APIs in NSS to provide this functionality and I was confused. There seem to be different APIs. E.g CreateDigestContext(SECOidTag hashAlg)

Re: Hashing function in NSS

2011-03-23 Thread Crypto User
On Mar 23, 12:05 pm, Honza Bambas honzab@firemni.cz wrote: On 3/22/2011 10:29 PM, Crypto User wrote: Hi ,   I am trying to create APIS which will provide Hashing functionality to end user. I am using NSS to provide this on Linux. I was trying to find the correct APIs in NSS to provide