On 28.12.2011 19:50, Dr. Stephen Henson wrote:
The public key decrypt and private encrypt operations correspond to the
-verify and -sign options to rsautl which is why I suggested them.
Now I understand. I mistakenly thought that -sign and -verify were
used to attach and examine an encrypted
Ireneusz Szcześniak
> To: openssl-users@openssl.org,
> Date: 12/28/2011 01:45 PM
> Subject: Re: decrypt with a public key
> Sent by: owner-openssl-us...@openssl.org
>
> Thank you, Steve, for your post. Let me explain what I'm trying to
> do. In the public key cryp
On Wed, Dec 28, 2011, Ireneusz Szcze??niak wrote:
> Thank you, Steve, for your post. Let me explain what I'm trying to
> do. In the public key cryptography:
>
> message = Dprv(Epub(message)) = Dpub(Eprv(message)
>
> D stands for decrypt, E for encrypt
> prv - private key, pub - private key
>
sautl -decrypt -inkey public-key -pubin -in cryptogram
The problem is that the second command gives me:
A private key is needed for this operation
Why can't one decrypt with a public key?
I do realize that I can convince the recipient of the message that
the message is indeed mine by s
l rsautl -decrypt -inkey public-key -pubin -in cryptogram
>
> The problem is that the second command gives me:
>
> A private key is needed for this operation
>
> Why can't one decrypt with a public key?
>
> I do realize that I can convince the recipient of the mes
command gives me:
A private key is needed for this operation
Why can't one decrypt with a public key?
I do realize that I can convince the recipient of the message that the
message is indeed mine by signing the message.
Thanks,
Irek
--
Ireneusz (Irek) Szczesniak
http://www.irko