Difference between revisions of "83Plus:BCALLs:808D"

From WikiTI
Jump to: navigation, search
(Example)
m (Example)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[Category:83Plus:BCALLs:By Name:Cryptography|MD5Init]] [[Category:83Plus:BCALLs:By Name|MD5Init]] [[Category:83Plus:BCALLs:By Address|808D - MD5Init]]
 
== Synopsis ==
 
== Synopsis ==
'''Official Name:''' InitializeMD5
+
'''Official Name:''' MD5Init
 +
 
 +
'''Other Name:''' InitializeMD5
  
 
'''BCALL Address:''' 808D
 
'''BCALL Address:''' 808D
  
Initializes the md5 ram area
+
Initializes the MD5 RAM areas
  
 
=== Inputs ===
 
=== Inputs ===
Line 14: Line 17:
  
 
=== Destroys ===
 
=== Destroys ===
Unkown, please add this when you test check this out.
+
None
  
 
== Comments ==
 
== Comments ==
This B_CALL initializes the MD5 memory areas so that you can start generating a new MD5 checksum.
+
This B_CALL initializes the MD5 memory areas, after which you can use [[83Plus:BCALLs:8090|MD5Update]] and [[83Plus:BCALLs:8018|MD5Final]] to build up a complete MD5 hash.
  
 
== Example ==
 
== Example ==
  <nowiki>B_CALL InitializeMD5
+
  B_CALL MD5Init
ld bc,0040h
+
ld bc,14
ld hl,SomeAddress
+
ld hl,String
B_CALL CalculateMD5</nowiki>
+
B_CALL [[83Plus:BCALLs:8090|MD5Update]]
 +
B_CALL [[83Plus:BCALLs:8018|MD5Final]]
 +
; should give: f96b697d7cb7938d525a2f31aaf161d0
 +
 +
String: .db "message digest"

Latest revision as of 14:34, 30 March 2005

Synopsis

Official Name: MD5Init

Other Name: InitializeMD5

BCALL Address: 808D

Initializes the MD5 RAM areas

Inputs

None

Outputs

  • 8269: 8 bytes will be zero'ed
  • 8292: Loads the following bytes in this area 01h,23h,45h,67h,89h,ABh,CDh,EFh,FEh,DCh,BAh,98h,76h,54h,32h,10h

Destroys

None

Comments

This B_CALL initializes the MD5 memory areas, after which you can use MD5Update and MD5Final to build up a complete MD5 hash.

Example

B_CALL MD5Init
ld bc,14
ld hl,String
B_CALL MD5Update
B_CALL MD5Final
; should give: f96b697d7cb7938d525a2f31aaf161d0

String: .db "message digest"