[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iaik-jce] PKCS8ShroudedKeyBag



decrypt and encrypt are protected methods. They are called from inside the
PKCS12 respectively AuthenticatedSafe classes. You can supply a keybag when
creating a PKCS12 object; encryption will be performed when calling the
encrypt method of the PKCS12 class:

char[] password = ...;
PKCS12 pkcs12 = new PKCS12(keyBag, certBags, false);
pkcs12.encrypt(password);

See the PKCS12 demo for an example.

Dieter Bratko

-----Ursprüngliche Nachricht-----
Von: Benoît Otjacques <otjacque@crpcu.lu>
An: <iaik-jce@iaik.tu-graz.ac.at>
Gesendet: Montag, 21. Juni 1999 15:21
Betreff: [iaik-jce] PKCS8ShroudedKeyBag


> I am using the evaluation version of IAIK-JCE
> (iaik_jce_full.jar).
>
> I am trying to use the following methods:
>
> iaik.pkcs.pkcs12.PKCS8ShroudedKeyBag.decrypt(password);
> iaik.pkcs.pkcs12.PKCS8ShroudedKeyBag.encrypt(,,);
>
>
> The compiler tells me that they don't exist. Are these
> methods implemented in the evaluation version?
>
> For example, I can use without any problem :
> iaik.pkcs.pkcs12.PKCS8ShroudedKeyBag.toASN1Object();
> And it is located in the same class.
>
> Thank you.
>
>
>
>
> --
> **********************************************************
>
>    Otjacques Benoît
>
>    CRP-CU
>    162a, Av. de la Faïencerie
>    L-1511 Luxembourg.
>
>    Tel. +352-47.02.61-373.
>    Fax  +352-47.02.64.
>
>    "Il n'a y pas de vent favorable
>     pour celui qui ne sait pas où il va."
>     Sénèque.
>
> **********************************************************
>
>
> --
> Mailinglist-archive at
http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-jce/maillist.html
>
> To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the
folowing content: UNSUBSCRIBE iaik-jce
>
>
>


smime.p7s