Re: Importing a symmetic key into NSS database

2013-08-01 Thread John
Robert Relyea wrote On 07/30/2013 06:37 PM, John wrote: At this point I usually ask, what is it you are trying to do? usually when I see someone trying to import or export keyblobs, they are coding at the wrong level and we should be pushing more of whatever protocol you are running into NSS.

Re: Importing a symmetic key into NSS database

2013-07-31 Thread Rajesh Kareti
Hi, I need some help in setting up the NSS Cryptographic module for doing Encryption and Decryption. Could any one help me in doing that. Thanks you, Raj On Tue, Jul 30, 2013 at 9:37 PM, John jbu...@yahoo.com wrote: At this point I usually ask, what is it you are trying to do? usually

Re: Importing a symmetic key into NSS database

2013-07-31 Thread John Dennis
On 07/31/2013 09:47 AM, Rajesh Kareti wrote: Hi, I need some help in setting up the NSS Cryptographic module for doing Encryption and Decryption. Could any one help me in doing that. Thanks you, Raj Raj, please do not hijack threads, your question has nothing to do with importing a

Re: Importing a symmetic key into NSS database

2013-07-31 Thread Robert Relyea
On 07/30/2013 06:37 PM, John wrote: At this point I usually ask, what is it you are trying to do? usually when I see someone trying to import or export keyblobs, they are coding at the wrong level and we should be pushing more of whatever protocol you are running into NSS. I'm developing a One

Re: Importing a symmetic key into NSS database

2013-07-30 Thread Robert Relyea
On 07/29/2013 06:00 PM, John wrote: Hi, Is is possible to import a symmetric key such that it is persisted in the database? Short answer: use PK11_ImportSymKeyWithFlags(). Set flags=0, and isPerm to PR_TRUE. Longer answer: NOTE: neither PK11_ImportSymKey() nor PK11_ImportSymKeyWithFlags()

Re: Importing a symmetic key into NSS database

2013-07-30 Thread John
Thank you. FIPS is not enabled so PK11_ImportSymKeyWithFlags() works for me. However I'm unable to export the imported key using PK11_ExtractKeyValue() and PK11_GetKeyData(). I suspect this is by design - keys are protected from being exported? As a work around, I have tried importing the key

Re: Importing a symmetic key into NSS database

2013-07-30 Thread Robert Relyea
On 07/30/2013 05:34 PM, John wrote: Thank you. FIPS is not enabled so PK11_ImportSymKeyWithFlags() works for me. However I'm unable to export the imported key using PK11_ExtractKeyValue() and PK11_GetKeyData(). I suspect this is by design - keys are protected from being exported? keys that are

Re: Importing a symmetic key into NSS database

2013-07-30 Thread John
At this point I usually ask, what is it you are trying to do? usually when I see someone trying to import or export keyblobs, they are coding at the wrong level and we should be pushing more of whatever protocol you are running into NSS. I'm developing a One Time Password software token