Author Topic: Donkey´s AES encryption algorithm (Rijndael)  (Read 4253 times)

ragdog

  • Member
  • ****
  • Posts: 609
Donkey´s AES encryption algorithm (Rijndael)
« 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,
« Last Edit: February 16, 2014, 04:26:51 AM by ragdog »

dedndave

  • Member
  • *****
  • Posts: 8828
  • Still using Abacus 2.0
    • DednDave
Re: Donkey´s AES encryption algorithm (Rijndael)
« Reply #1 on: February 16, 2014, 06:59:38 AM »
Code: [Select]
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

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1196
Re: Donkey´s AES encryption algorithm (Rijndael)
« Reply #2 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 (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.

Well Microsoft, here’s another nice mess you’ve gotten us into.

ragdog

  • Member
  • ****
  • Posts: 609
Re: Donkey´s AES encryption algorithm (Rijndael)
« Reply #3 on: February 17, 2014, 05:13:07 AM »
Thanks you


Gunther

  • Member
  • *****
  • Posts: 4145
  • Forgive your enemies, but never forget their names
Re: Donkey´s AES encryption algorithm (Rijndael)
« Reply #4 on: February 17, 2014, 05:27:44 AM »
Michael,

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

Gunther
You have to know the facts before you can distort them.

ragdog

  • Member
  • ****
  • Posts: 609
Re: Donkey´s AES encryption algorithm (Rijndael)
« Reply #5 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