It's a bit hard to use these new functions; there are no sample code and the functions is very low on comments. But I guess it will be better when folks are starting using them more...
Anyway, I think it's great that these pkcs8 functions are added and I hope they stay.
Emil
Robert Relyea wrote:
Public Value varies depending on the key type. For RSA it's the modulus. NSS uses this value to build and index for the key in the database.
bob
Emil Assarsson wrote on Thu, 29 Apr 04, 7:33 AM:
How should I use PK11_ImportEncryptedPrivateKeyInfo?
I have no clue what to do with "publicValue". Is this somthing I have to compute by somthing else? Or should I use something like pubkey->u.rsa.modulus or what...
Any way I get -8191 (SEC_ERROR_LIBRARY_FAILURE)
--- decl --- SECStatus PK11_ImportEncryptedPrivateKeyInfo(PK11SlotInfo *slot, SECKEYEncryptedPrivateKeyInfo *epki, SECItem *pwitem, SECItem *nickname, SECItem *publicValue, PRBool isPerm, PRBool isPrivate, KeyType type, unsigned int usage, void *wincx);
Emil Assarsson _______________________________________________ mozilla-crypto mailing list [EMAIL PROTECTED] http
_______________________________________________ mozilla-crypto mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-crypto
