[prev in list] [next in list] [prev in thread] [next in thread]
List: bouncycastle-crypto-dev
Subject: Re: [dev-crypto] Get recipients of s/mime encrypted message
From: David Hook <dgh () cryptoworkshop ! com>
Date: 2017-11-11 5:33:15
Message-ID: 4819caf9-0df9-92dc-5338-a864716502ae () cryptoworkshop ! com
[Download RAW message or body]
RecipientInformation.getRID() should provide the necessary information
to match up the private key used.
Regards,
David
On 10/11/17 21:19, Simon Hain wrote:
> Hi,
>
> i have an s/mime encrypted message (envelopeddata) which i can
> successfully decrypt using CMSEnvelopedDataParser if i use the correct
> private key.
> This message is encrypted for a different recipient so my code loads
> the wrong key when it looks it up using the mail address.
> Is it possible to extract the recipient from the encrypted content
> (from RecipientInformation or the like) before actually decrypting it?
>
> Cheers,
> Simon
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
RecipientInformation.getRID() should provide the necessary
information to match up the private key used.<br>
<br>
Regards,<br>
<br>
David<br>
<br>
On 10/11/17 21:19, Simon Hain wrote:<br>
</div>
<blockquote type="cite"
cite="mid:trinity-da72bab4-d5a8-47af-9ae8-955ee1924197-1510309180323@3c-app-gmx-bs39">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hi,</div>
<div> </div>
<div>i have an s/mime encrypted message (envelopeddata) which i
can successfully decrypt using CMSEnvelopedDataParser if i use
the correct private key.</div>
<div>This message is encrypted for a different recipient so my
code loads the wrong key when it looks it up using the mail
address.</div>
<div>Is it possible to extract the recipient from the encrypted
content (from RecipientInformation or the like) before
actually decrypting it?</div>
<div> </div>
<div>Cheers,</div>
<div>Simon</div>
</div>
</blockquote>
<p><br>
</p>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic