Shared variable storage/ Encryption Corruption

From: Phil C. (charlestek_at_rcn.com)
Date: 06/29/05


Date: Wed, 29 Jun 2005 12:58:04 -0400

Hi.
I'm testing some Aes Encryption/Decryption for an asp.net application.
As part of testing forward encryption and backwards decryption,
I have some aspx pages with code behind that have a shared field/property
storing the IV generated during encryuption in byte array format to be used
during decryption of ascii
text that was encrypted with AES. I'm getting PKCS7 errors during
decryption,
so the thought that comes to mind is that either the shared value has
gotten corrupted,
or that my aes key stored as Base64 is getting corrupted when being
converted back to
a byte array. If the former is the case, I'm not exactly sure how the
shared values are stored??? on the heap of the server???
If the later is the case, I'm going to right now generate a key as a byte
array and store it as a byte array in a shared variable to see what happens
during decryption.



Relevant Pages

  • RSA Encrypt/Decrypt with OAEP.
    ... I am trying to do encryption/decryption with RSA. ... The idea is to take a 80 byte array and encrypt it and then ... do the decryption I am getting a "Error occurred while decoding OAEP ...
    (microsoft.public.platformsdk.security)
  • RSA Encrypt/Decrypt with OAEP.
    ... I am trying to do encryption/decryption with RSA. ... The idea is to take a 80 byte array and encrypt it and then ... do the decryption I am getting a "Error occurred while decoding OAEP ...
    (microsoft.public.dotnet.security)
  • Re: How can we avoid the extra storage or latency in AES algorithm
    ... I was thinking of a implemenation of the AES algorithm. ... found very critical in my design is the decryption algorithm. ... if you can run the AES encryption key schedule ... For 16 byte keys this is especially easy since the 16 byte blocks in the expanded key coincide with the AES round keys so the key update process can be synchrinised with each encryption/decryption round. ...
    (sci.crypt)
  • Re: Rijndael decryption succeeds SOMETIMES
    ... Here is another thing concerning your use of 256 bit AES key. ... And if you talk about decryption operation - one decryption operation is ... > Sometimes you can give it a passphrase and the decryption of the encrypted ... > CryptoStream cryptoStream = new CryptoStream(cipherStream, decryptor, ...
    (microsoft.public.dotnet.security)
  • Re: Compression and crypto
    ... AES via BICOM. ... With something like BICOM you not limited to 256 possible ... If I CTR encrypt one byte then the decryption has only 256 possible ... Even if the decompressor is keyed there are still ...
    (sci.crypt)