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

Re: [iaik-jce] JCE Applet Edition reporting iaik.java.security.SignatureException: Not in signing state.



DSA is the Digital Signature Algorithm and it was designed for
signing/verifying only, it cannot be used for encryption. For asymmetric
encryption we currently support RSA and DH, although DH is of course a
key agreement scheme and cannot do real encryption.

 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at

-----Ursprüngliche Nachricht-----
Von: Dave Streeter - IICL Email <dave.streeter@iicl.co.uk>
An: Andreas Sterbenz <Andreas.Sterbenz@iaik.tu-graz.ac.at>;
<iaik-jce@iaik.tu-graz.ac.at>
Gesendet: Mittwoch, 22. September 1999 12:26
Betreff: RE: [iaik-jce] JCE Applet Edition reporting
iaik.java.security.SignatureException: Not in signing state.


> Andreas,
>
> Thanks for that, now that I have encrypted the String how do I decrypt
it (I
> do have the X509 certificate accompanying the private and the public
keys)?
>
> Regards
>
> Dave
> -----Original Message-----
> From: iaik-jce-owner@iaik.tu-graz.ac.at
> [mailto:iaik-jce-owner@iaik.tu-graz.ac.at]On Behalf Of Andreas Sterbenz
> Sent: 22 September 1999 11:21
> To: Dave Streeter - IICL Email; iaik-jce@iaik.tu-graz.ac.at
> Subject: Re: [iaik-jce] JCE Applet Edition reporting
> iaik.java.security.SignatureException: Not in signing state.
>
>
> You can only either sign or verify, not both at the same time. The
> procedure to use is initSign(), update(), sign() (and for verify
> respectively).
>
>  Andreas Sterbenz
mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at



smime.p7s