flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
Has anyone tried implementing DES/3DES in assembly? I need one, and was going to do it myself, but just thought it would be good to check if someone got it already.
|
|||
![]() |
|
vid
boss says DES is not safe anymore... and that you should use AES
|
|||
![]() |
|
Tomasz Grysztar
Not that I have choice.
![]() It's for SmartCards, BTW. PS. As for AES/Rijandel, we've got it already on the board somewhere... |
|||
![]() |
|
vid
ummm, some HW-close smartcard driver coding? mmmmmmm....
![]() |
|||
![]() |
|
f0dder
Tomasz, try looking for "john the ripper", a unix password cracker... it has some DES routines that should be very optimized, or so it's said.
|
|||
![]() |
|
Reverend
There are lots of crypto implementations on Witeg's site. All are in masm, but written very, very well and thus easy to make fasm-compilable. There's no DES/3DES, but I found:
Quote: NewDES (SRC) 2.82 KB NewDES algo (anything like a new version of DES... and weaker than DES) |
|||
![]() |
|
Tomasz Grysztar
I found some here, but it's GAS syntax, which is strange enough that I finally done it myself.
![]() It's far from being optimized but at least it appears to be working, and that's enough for me right now. I'm attaching it here in case of someone else searching for such solution. Note: the provided functions encode/decode just 64-bit blocks given in EDX:EAX. But it should easy to put them in a loop (combined with XOR operation for CBC) to make larger encodings.
|
|||||||||||
![]() |
|
f0dder
When you get the need for speed, google for "DES bitslice", and perhaps add MMX or DES to the party too
![]() |
|||
![]() |
|
Ivan2k2
try this DES, it's masm syntax
|
|||||||||||
![]() |
|
Ivan2k2
...and fasm version: http://www.wasm.ru/src/9/des.rar
|
|||
![]() |
|
Vasilev Vjacheslav
_________________ [not enough memory] |
|||||||||||||||||||||||||||||||
![]() |
|
Vasilev Vjacheslav
and another
_________________ [not enough memory] |
|||||||||||||||||||||
![]() |
|
weiss
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.