Page 2 of 5
Posted: Fri Aug 13, 2004 11:58 am
by newbie
@the fool
I found that on the net :
Sabharwal says that AES offers far stronger encryption than RC4. The main drawback is that AES requires more processing horsepower, and may only be used with new WLAN products. "Longer-term vendors should look towards AES simply because it is essentially a more secure encryption technology, versus RC4 (which both WEP and TKIP use)," says Sabharwal.
Posted: Fri Aug 13, 2004 1:02 pm
by thefool
ok thanks.
Posted: Fri Aug 13, 2004 1:15 pm
by Max.²
newbie wrote:yes
what are the modifications ? just to know
EDIT : I did the test, and here the results :
Sec's lib = 1281ms
Max's lib = 1578ms
of course those results are only for my computer

Yep, I can confirm this.
Maybe I should use this opportunity to learn on optimazation.
@ the fool:
I think, AES is stronger, but RC4 is easier to use. It doesn't work with blocks so doesn't need padding.
Posted: Fri Aug 13, 2004 2:01 pm
by sec
newbie wrote:what are the modifications ? just to know
AES256Encrypt(@plain,@key) replaces with AES256Encrypt(@plain) and
Add AES256Init(@key), call this function first and call once expect change key.
I got this idea from Max^2

) (but it is exist in blowfish lib heh)
Posted: Fri Aug 13, 2004 2:05 pm
by blueznl
similar function names would be nice
i'm not deep enough into en/de cryption yet, does this do asymmetric keys as well?
Posted: Fri Aug 13, 2004 2:05 pm
by dell_jockey
Hi,
great AES libs! Thanks a lot!
One question: does someone know an URL where the AES specifiation is published?
Posted: Fri Aug 13, 2004 2:09 pm
by Pupil
dell_jockey wrote:Hi,
great AES libs! Thanks a lot!
One question: does someone know an URL where the AES specifiation is published?
I guess you can find something useful here:
http://csrc.nist.gov/CryptoToolkit/aes/
Posted: Fri Aug 13, 2004 2:16 pm
by newbie
I have updated my code for the v2 Lib from Sec on the page 1 :
viewtopic.php?p=66818#66818
About the official document, doesn't the FIPS PDF document linked on my first post is what you are looking for ?
@blueznl
AES is a symetric encryption algorithm only, so, for those who may be don't know, means that the same key is used to both encrypt and decrypt.
An example of an asymetric algorithm could be the well known RSA.
@Sec
better like that indeed, no more "static" variables in my procedure (using a global was making the whole to bug).
More convenient

Posted: Fri Aug 13, 2004 4:17 pm
by Max.²
sec wrote:On my machine , mine is abit faster

Eat this!
http://www.host4scripts.de/pub/AES
Posted: Fri Aug 13, 2004 4:48 pm
by sec
maybe but in fact
mine/yours
766/860 ms
765/907
781/875
Do not go to use mmx or special things
Posted: Fri Aug 13, 2004 4:52 pm
by Max.²
sec wrote:maybe but in fact
mine/yours
766/860 ms
765/907
781/875
Do not go to use mmx or special things
Lol! That is funny. I got (for 5000000 loops) 5000ms to 2500.
Edit: Did with the original sample and the result is 1052/510.
Ah, just saw the disclaimer. MMX is cool, hehe.
Posted: Fri Aug 13, 2004 4:58 pm
by sec
I tried to
2147483647loops and mine have a better result.
LOlz (please don't try)

maybe newbie or other will give result (not me or you

)
Posted: Fri Aug 13, 2004 5:08 pm
by Max.²
sec wrote:I tried to
2147483647loops and mine have a better result.
LOlz (please don't try)

maybe newbie or other will give result (not me or you

)
Updated it another time. The latest one doesn't use MMX but strangely gives better results (slightly).
http://www.host4scripts.de/pub/AES
Going to try them on my notebook to check there.
Posted: Fri Aug 13, 2004 5:33 pm
by sec
Have do any special thing? can give me hint improve mine
mine/yours
765/656
797/640
796/641
btw I will return later.
Posted: Fri Aug 13, 2004 5:37 pm
by Max.²
sec wrote:Have do any special thing? can give me hint improve mine
mine/yours
765/656
797/640
796/641
btw I will return later.
At the moment I am just confused; the one lib you tried isn't supposed to work. At least it doesn't on my notebook. Or I copied the wrong file. WHAT A MESS.
Ah, looks like this is a problem with the Beta 3.91 on the Notebook. The Lib works.