Re: Encryption always returning a different value with same key?

From: Michel Gallant (neutron_at_istar.ca)
Date: 10/28/05

  • Next message: sunit: "Re: AcquireCredentialsHandle returns SEC_E_UNKNOWN_CREDENTIALS"
    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?


  • Next message: sunit: "Re: AcquireCredentialsHandle returns SEC_E_UNKNOWN_CREDENTIALS"

    Relevant Pages

    • Re: Symmetric encryption algorithm with group like properties
      ... >> Solutions that exist today are not as secure as they can be. ... I wouldn't expect more than PGP / GPG type encryption, ... > versions - with the key, protected by RSA encryption under a RSA public key ... > Alice needs a secure decryption mechanism to read her emails, ...
      (sci.crypt)
    • RE: rsa encrtyption
      ... It seems to work for her now and all we did was apply some Sql Server updates. ... My only guess was that the MS dll she used to apply the RSA encryption was ... According to the RSA encryption reference, I've performed some local tests, ... Export the machine-level RSA key container: ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • RE: rsa encrtyption
      ... According to the RSA encryption reference, I've performed some local tests, ... Grant Read Access to the RSA Encryption Key: ... Export the machine-level RSA key container: ... Import the the machine-level RSA key container on the 2nd server: ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Rabin vs. RSA/ElGamal
      ... the speed difference between RSA ... encryption and Rabin encryption probably is irrelevant. ... For RSA or ElGamal you need exponentiation. ...
      (sci.crypt)
    • Re: Rabin vs. RSA/ElGamal
      ... the speed difference between RSA ... encryption and Rabin encryption probably is irrelevant. ... What DOES takes the time is decryption. ... This also doesn't change the fact that Rabin encryption is still a lot ...
      (sci.crypt)