On Oct 19, 2:38 pm, David Stutzman <dstutzman*at*dsci.com> wrote:
> [EMAIL PROTECTED] wrote:
> > I am currently trying to convert from OpenSSL to NSS (seemed like a good
> > idea at the time).
>
> Most here would argue it's a good idea :).
>
> That's a fairly small look at the code.  What is it that you are
> actually trying to accomplish with the crypto code?  How did you encrypt
> the data that you are trying to decrypt with a public key?
>
> Usually, you encrypt stuff with a symmetric key that is wrapped with the
> recipient's public key and the recipient unwraps the symmetric key with
> their private and decrypts the data.
>
> Dave

Firstly, let me say that I may be talking out of places that are not
generally used for that purpose - please feel free to point out any
obvious misunderstanding on my part!

The data that I am trying to decrypt has been obtained from a third
party source and was encrypted by that source using their private
key.  The data retrieved contains several fields (including a hash
value)  - I have to decrypt the data - re-evaluate the hash (from data
held in the fields) and compare it against the retrieved hash - at
which point we can assume that the data is from a valid source.

-- Alan Morris
-- Tel:  +44 (0)1252 644021

_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to