AES (Rijndael) Encryption with CryptoAPI

From: Abe Simpson (abe_at_simpson.com)
Date: 06/25/04

  • Next message: Brandon Swamy: "Retrieving Logon Date and Time"
    Date: Thu, 24 Jun 2004 18:04:48 -0400
    
    

    Hi all,

    I have managed to get CryptoAPI on XP to work with AES (Rijndael) via the
    contstants CALG_AES_128, CALG_AES_192 and CALG_AES_256. However I can't seem
    to be able to verify the correctness of encryption.

    When I encrypt plaintext that is 1 to 15 bytes long, the resultant
    ciphertext is always 16 bytes, and a 16-byte plaintext results in a 32-byte
    cipher text.

    Rijndael specs provide sample results where 16-byte plaintext becomes
    16-byte ciphertext. How do I achieve the same result?

    Thanks in advance.

    Abe


  • Next message: Brandon Swamy: "Retrieving Logon Date and Time"

    Relevant Pages

    • Re: Conspiracy in the Surveillance Society
      ... (requiring brute-forcing the ... that the plaintext is independent of the encryption key. ... But the key ain't transfered in the ciphertext. ...
      (rec.arts.sf.science)
    • Re: Using a Magic Value in Place of Authentication
      ... encryption functions for keys k1 and k2) share a single mapping from a specifc plaintext to a specific ciphertext. ... When did we restrict the plaintext or key of an encryption method to plain English? ...
      (sci.crypt)
    • Re: Using a Magic Value in Place of Authentication
      ... the encryption functions for keys k1 and k2) share a single mapping from a specifc plaintext to a specific ciphertext. ... If the attacker had some chosen plaintext, then that would lead to a partial if not a total mapping of the key. ... Of course you could just test a single ciphertext over all possible keys and indeed determine after 2^128 encryptions that it can only be the result of a specific plaintext and key. ...
      (sci.crypt)
    • Indistinguishability and integrity in symmetric encryption
      ... "The 'right' security property for general-purpose symmetric encryption". ... >symmetric encryption scheme (for which the empty plaintext is not ... A has interfaces to an encryption oracle ... It is assumed that the ciphertext returned by A is different to all those ...
      (sci.crypt)
    • RE: How to verify a decrypted cyphertext
      ... a given ciphertext might decode into several different ... Mathematical encryption might not be the only encoding of the ... Japanese (nothing guarantees that the plaintext will be in English!) ... But in the case of a encrypted random string ...
      (Security-Basics)