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

Reply via email to