PK11_ImportEncryptedPrivateKeyInfo(
keySlot, /* the slot which the key should be on */
epkey, /* an encrypted key info */
pwitem, /* a prepared password */
nickname, /* a prepered nickname */
pubvalue, /* an _empty_ secitem if you don't
have the public key (not a NULL) */
PR_TRUE, /* ??? */
PR_TRUE, /* ??? */
rsaKey, /* type of key */
0, /* key usage ???? */
NULL)) /* wincx */Emil
Emil Assarsson wrote:
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://mail.mozilla.org/listinfo/mozilla-crypto
