flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
JohnFound 09 Dec 2012, 15:57
FreshLib has md5lib.asm.
|
|||
![]() |
|
typedef 09 Dec 2012, 16:34
JohnFound, I have to give you my hats off at what you've accomplished.
How long has it taken you to finish FreshLib? |
|||
![]() |
|
clamicun 14 Jun 2014, 15:16
On December 09/2012 thomashandersen
asked this in the fasm forum: " Any MD5 code examples (as used in ssl)? interest to realise some code, which genereate md5 hash from byte array, but can't find any example. also, there is no header files for md5 functions. on C lang i just can include "openssl/md5.h", need the same thing for flat assembler. ty. " Answer of JohnFound " FreshLib has md5lib.asm. " Yes there it is. But how to include this in an application ? module "MD5 library" ;gives an error - illegal instruction struct TContextMD5 ;same error .__cntx rb 88 .value rb 16 ends " " How to compile this ? |
|||
![]() |
|
baldr 15 Jun 2014, 01:51
|
|||
![]() |
|
JohnFound 15 Jun 2014, 19:33
clamicun wrote: How to compile this ? 1. You can, as baldr already suggested, use FreshLib for your application. It has tons of useful functions, but will include only what you are using. 2. You can with a little effort adapt the code for your own library/code. It uses only 2..3 functions for dynamic memory allocation and for string processing. (The description of these functions is in the reference manual, but you can ask if something is not clear). Notice: The source repository is moved to a new host: Fresh IDE main repository The mentioned library is: md5lib.asm _________________ Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9 |
|||
![]() |
|
clamicun 22 Jun 2014, 11:57
Yes thank you baldr and JohnFound.
I read TFM |
|||
![]() |
|
clamicun 25 Jun 2014, 16:16
include '%finc%\win32\win32a.inc'
include "%lib%\freshlib.asm" " " call DataMD5 " " ----- OK fellers,I give up working with fresh IDE. It might be the best thing in the world, but it is at least not very "userfriendly". I spent hours to call DataMD5 and it always gives me "undefined symbol" or "already defined symbol". e.g. invoke HeapAlloc, [_hHeap], HEAP_ZERO_MEMORY, [.size] undefined symbol _hHeap. --------------------- I am back to FASM |
|||
![]() |
|
JohnFound 25 Jun 2014, 17:07
The FreshLib base template is very simple. You don't need to include any other library include files. See the simple example:
Code: include "%lib%/freshlib.inc" @BinaryType console include "%lib%/freshlib.asm" start: InitializeAll stdcall StrDup, 'This is simple example.' stdcall StrMD5, eax stdcall FileWriteString, [STDOUT], eax stdcall FileReadLine, [STDIN] FinalizeAll stdcall Terminate, 0 Here I use StrMD5, but DataMD5 is accessible as well. Notice also, that the above example can be compiled for Linux or for Windows, depending on %TargetOS% environment variable ('Win32' or 'Linux'). |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.