Re: PK11_pubEncrypt/decryptRaw and PK11PubEncrypt/privdecryptPKCS1

2011-06-22 Thread Crypto User
On Jun 22, 11:56 am, Robert Relyea 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

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 dev-tech-crypto@lists.

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 th

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 th

Re: undefined reference to `PK11_CopyToSlot'

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

Re: undefined reference to `PK11_CopyToSlot'

2011-06-10 Thread Crypto User
On May 25, 11:33 am, Crypto User 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 e

Re: undefined reference to `PK11_CopyToSlot'

2011-06-10 Thread Crypto User
On May 25, 11:33 am, Crypto User 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 e

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 s

Re: Hashing function in NSS

2011-03-23 Thread Crypto User
On Mar 23, 12:05 pm, Honza Bambas 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 API

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) http://mxr.mozilla.org

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

Using the NSS API to create CMS/PKCS#7 signatures with multiple signers (co- signatures)

2010-05-11 Thread firefox3.user
Hi everybody, I'm trying to use NSS for adding a new signer to a previously computed CMS signature, but i can't achieve that, and i have found examples nowhere. The first signature is made with the call sequence : NSS_CMSMessage_Create / NSS_CMSSignedData_Create / NSS_CMSSignerInfo_Create / NSS_C

Re: Mozilla CA Certificate Policy (Version 1.1) ammendment recommendations

2007-12-02 Thread user
Dear Moo, I pray this some how gets to you, and I hope it makes makes sense to you. As you know I'm still Novice and I'll be leaving here a Novice. One thing I know for sure you have a lot of followers that are Novices also. I can only speak for me, so many things a way above my head, so I d

Importing CRL using NSS API

2006-05-26 Thread user
Hi! I'm trying to import a CRL (in DER format) using NSS API. Since 3.4 API does not have an import function available, I took the source code from the crlutil and massaged it to fit into our application. The crlutil code, however, uses method SECU_ReadDERFromFile, which is not exported as p

Re: PKCS #7

2006-04-19 Thread user
Nelson B wrote: Bruno Boutteau wrote: Nelson B wrote: Bruno Boutteau wrote: How can we import a PKCS #7 certificate or .cer in Firefox? It is easy with IE just click on it and accept the next OKs up to FINISH!!! Thanks in advance (Certificate was delivered on crypto smart card) Thanks for

Re: PKCS #7

2006-04-15 Thread user
Nelson B wrote: Bruno Boutteau wrote: How can we import a PKCS #7 certificate or .cer in Firefox? It is easy with IE just click on it and accept the next OKs up to FINISH!!! Thanks in advance (Certificate was delivered on crypto smart card) Bruno, why not use it on the smart card? NSS is quite

PKCS #7

2006-04-11 Thread user
How can we import a PKCS #7 certificate in Firefox? It is easy with IE just click on it and accept the next OK up to FINISH!!! ___ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto