The MASM Forum

General => The Campus => Topic started by: ragdog on February 15, 2014, 11:17:46 PM

Title: Donkey´s AES encryption algorithm (Rijndael)
Post by: ragdog on February 15, 2014, 11:17:46 PM
Hi

I found on Donkey´s site a lib for AES encryption algorithm (Rijndael)
Can any post a example ho i can use it for a text encryption?

http://www.donkeysstable.com/


And ehy gives not any examples about Rijndael (AES) is this to buggy?

Greets,
Title: Re: Donkey´s AES encryption algorithm (Rijndael)
Post by: dedndave on February 16, 2014, 06:59:38 AM
call Rijndael_Init
invoke Rijndael_SetEncryptKey,offset szKey
invoke Rijndael_Encrypt,offset EncOutBuffer,offset TestText

invoke Rijndael_SetDecryptKey,offset szKey
invoke Rijndael_Decrypt,offset TxtOutBuffer,offset EncOutBuffer

invoke ExitProcess,0
Title: Re: Donkey´s AES encryption algorithm (Rijndael)
Post by: MichaelW on February 16, 2014, 10:29:42 AM
The attachment contains a MASM version of the source, along with some minimal test code using one of the test vectors from a link on the  Wikipedia page (http://en.wikipedia.org/wiki/Advanced_Encryption_Standard#Test_vectors) (see CBCKeySbox256.rsp). I intended to do a more thorough test against the Windows cryptographic service provider, but I did not have time to do so.

Title: Re: Donkey´s AES encryption algorithm (Rijndael)
Post by: ragdog on February 17, 2014, 05:13:07 AM
Thanks you

Title: Re: Donkey´s AES encryption algorithm (Rijndael)
Post by: Gunther on February 17, 2014, 05:27:44 AM
Michael,

thank you for the source. Interesting use of XLAT.  :t

Gunther
Title: Re: Donkey´s AES encryption algorithm (Rijndael)
Post by: ragdog on February 17, 2014, 05:07:53 PM
I have try to find an example about AES with Windows crypto API
But Without good results.

And this from Donkey´s Goasm source is original written  from WiteG