You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Berin Lautenbach <be...@wingsofhermes.org> on 2004/08/04 13:18:24 UTC

[Fwd: Re: Encrypting with multiple public keys]

Milan,

I've just done a very simple fix in XMLCipher to better handle a 
CryptoException.  Let me know if it fixes the problem!

Cheers,
	Berin

-------- Original Message --------
Subject: Re: Encrypting with multiple public keys
Date: Wed, 04 Aug 2004 19:51:56 +1000
From: Berin Lautenbach <be...@wingsofhermes.org>
Reply-To: security-dev@xml.apache.org
To: security-dev@xml.apache.org
References: <00...@Majestix>

Milan Tomic wrote:
>>Is an exception being thrown at all?
> 
> Yes, the exception message is "WinCAPI:RSA privateKeyDecrypt - Error
> Decrypting PKCS1_5 padded RSA encrypt" in WinCAPICryptoKeyRSA.cpp.
> 
> 

Hmm.  Which is a XSECCryptoException.  So what I might do is put a catch
clause in there for anything derived from XSECCryptoException and
continue.  If anything else comes through (which would indicate a more
serious problem), then that would fall through to the (...) catch clause
and get re-thrown.

Will check something in - hopefully tonight.

Cheers,
	Berin




RE: [Fwd: Re: Encrypting with multiple public keys]

Posted by Milan Tomic <mi...@setcce.org>.
	So far, so good. :>

Thank you,
Milan


> -----Original Message-----
> From: Berin Lautenbach [mailto:berin@wingsofhermes.org] 
> Sent: Wednesday, August 04, 2004 1:18 PM
> To: security-dev@xml.apache.org
> Subject: [Fwd: Re: Encrypting with multiple public keys]
> 
> 
> Milan,
> 
> I've just done a very simple fix in XMLCipher to better handle a 
> CryptoException.  Let me know if it fixes the problem!
> 
> Cheers,
> 	Berin
> 
> -------- Original Message --------
> Subject: Re: Encrypting with multiple public keys
> Date: Wed, 04 Aug 2004 19:51:56 +1000
> From: Berin Lautenbach <be...@wingsofhermes.org>
> Reply-To: security-dev@xml.apache.org
> To: security-dev@xml.apache.org
> References: <00...@Majestix>
> 
> Milan Tomic wrote:
> >>Is an exception being thrown at all?
> > 
> > Yes, the exception message is "WinCAPI:RSA 
> privateKeyDecrypt - Error 
> > Decrypting PKCS1_5 padded RSA encrypt" in WinCAPICryptoKeyRSA.cpp.
> > 
> > 
> 
> Hmm.  Which is a XSECCryptoException.  So what I might do is 
> put a catch clause in there for anything derived from 
> XSECCryptoException and continue.  If anything else comes 
> through (which would indicate a more serious problem), then 
> that would fall through to the (...) catch clause and get re-thrown.
> 
> Will check something in - hopefully tonight.
> 
> Cheers,
> 	Berin
> 
>