CryptExport private key only
From: Anatoly (wiretransfers_at_yahoo.com)
Date: 10/26/03
- Previous message: Anatoly: "Re: CryptEncrypt fails on pocket pc (c#)"
- Next in thread: Michel Gallant: "Re: CryptExport private key only"
- Reply: Michel Gallant: "Re: CryptExport private key only"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 26 Oct 2003 01:28:17 -0400
do I understand correctly, that when using RSA public/private key pair
encryption, CryptExport's PRIVATEKEYBLOB flag will export both private and
public keys together?
from conventional use of Public/Private key pairs, it seems that one is
supposed to use the public key to encrypt data and private key to always
decrypt data.
Is it legitimate to interchange the private/public keys in their purpose?
that is can I use the public key to decrypt and private to encrypt and
benefit from the same level of protection as the conventional scenario?
I seem to have been able to reproduce the exact results when exporting
encrypting a symmetric type of key into a blob while protecting it with
either public and private key, and then importing it from the blob again
using the opposite key (private or public), and decrypting the data with
that imported symmetric key. The resulting output data is exactly the same
as the input data.
So does this mean that mathematically the private and public keys are
interchangeable?
-Anatoly
- Previous message: Anatoly: "Re: CryptEncrypt fails on pocket pc (c#)"
- Next in thread: Michel Gallant: "Re: CryptExport private key only"
- Reply: Michel Gallant: "Re: CryptExport private key only"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|