On Thu, Feb 10, 2005, Manuel Sánchez Cuenca wrote:

> Hello all, I have written the following code in java using the IAIK library:
> ===========================================================
>      byte[] byte_key = ....;
>      SecretKey aes_key = new SecretKey(byte_key, 
> "Rijndael/ECB/PKCS5Padding");
>      Cipher rijndael = Cipher.getInstance("Rijndael/ECB/PKCS5Padding", 
> "IAIK");
>      rijndael.init(Cipher.DECRYPT_MODE, aes_key);
>      byte[] decrypted = rijndael.doFinal(encrypted, 0, 288);
> ===========================================================
> 
> does anybody know how to write the equivalent C code with openssl?
> 
> Thanks in advance.
> 

Read the EVP_EncryptInit() manual page.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to