Difference between revisions of "83Plus:BCALLs:8018"

From WikiTI
Jump to: navigation, search
m (Inputs)
m (Comments: Changed addresses to names to be in-line with style)
Line 20: Line 20:
  
 
== Comments ==
 
== Comments ==
This B_CALL "completes" a hash started by [[83Plus:BCALLs:808D|808D]] and [[83Plus:BCALLs:8090|8090]].
+
This B_CALL "completes" a hash started by [[83Plus:BCALLs:808D|MD5Init]] and [[83Plus:BCALLs:8090|MD5Update]].
  
 
== Example ==  
 
== Example ==  

Revision as of 18:32, 27 March 2005

Synopsis

Official Name: MD5Final

Other Name: FinishMD5

BCALL Address: 8018

Finishes an MD5 hash by adding padding and length bits.

Inputs

  • 8269: (8 bytes) Holds the length in bits of the data hashed so far.
  • 8292: (16 bytes) Current MD5 hash

Outputs

  • 8292: (16 bytes) Completed MD5 hash

Destroys

  • 8259: (16 bytes) Alternate registers (roughly equivalent to the AA, BB, CC, and DD registers specified in the MD5 standard.)
  • 83A5: (64 bytes) Buffer holding data to be hashed.

Comments

This B_CALL "completes" a hash started by MD5Init and MD5Update.

Example

B_CALL InitializeMD5
ld bc,0040h
ld hl,SomeAddress
B_CALL CalculateMD5
B_CALL FinishMD5