Re: Encryption always returning a different value with same key?
From: Michel Gallant (neutron_at_istar.ca)
Date: 10/28/05
- Previous message: sunit: "AcquireCredentialsHandle returns SEC_E_UNKNOWN_CREDENTIALS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 28 Oct 2005 11:01:40 -0400
That is normal, for RSA encryption.
The most common format for the data block, before actual encryption with
the RSA public key, a PKCS #1, type 2 encryption block is used which contains
random padding data. Having random padding data prevents someone from guessing
the encrypted data by using the public RSA key and testing for an identical
encrypted result.
Here is a simple but useful description of the process:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/simple_key_blobs.asp
- Mitch Gallant
MVP Security
"bender" <bender@discussions.microsoft.com> wrote in message news:3CAC695C-F32D-4C96-9E3C-371589CFF752@microsoft.com...
>I have created a CALG_RSA_KEYX BLOB and imported it. On each encryption run
> (using the exact same key BLOB data) I get a different value returned for my
> cipher text.
>
> I do not understand this, should each run with the same plain text, and the
> same key not return the same cipher text?
- Previous message: sunit: "AcquireCredentialsHandle returns SEC_E_UNKNOWN_CREDENTIALS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|