Importing GPG public and private keys in NSS

2011-03-16 Thread Superpacko
Hi, im working on a software that uses GPG as a Key Manager but leaves the encryption operations to NSS. I'm having a hard time trying to figure out how to import GPG's public and private keys in NSS. GPG stores the keys in "PKT_public_key" and "PKT_private_key" structures, both have a "MPI pkey[PU

RE: Need assistance - how can pwspec write key length be 0 after the client key exchange?

2011-03-16 Thread Gil Bahat
Well, I didn't want to get much into the reasoning but then again I suppose I can't avoid it. For a short synopsis, I'd say I'm trying to write a mechanism similar to NSS key log mechanism. In more detail: You can see my project listed here: http://www.cs.tau.ac.il/~benriva/courses/secwsp10a/ U

RE: Need assistance - how can pwspec write key length be 0 after the client key exchange?

2011-03-16 Thread Gil Bahat
I'll try wrapping the key and see if that helps. Thanks! -Original Message- From: Robert Relyea [mailto:rrel...@redhat.com] Sent: Wednesday, March 16, 2011 1:45 AM To: Gil Bahat Cc: mozilla's crypto code discussion list Subject: Re: Need assistance - how can pwspec write key length be 0 a

RE: Need assistance - how can pwspec write key length be 0 after the client key exchange?

2011-03-16 Thread Gil Bahat
With regards to sending the key as plaintext - that's just in the interim, once I get that successfully done I will write the code to encrypt it. Besides, before I can wrap the key, I'd still need to pass the raw representation as a parameter, so I'm trying to get that first. With regards to ke