Difference between revisions of "83Plus:BCALLs:8090"
From WikiTI
m (Changed official name to MD5Update) |
(→Outputs) |
||
Line 13: | Line 13: | ||
=== Outputs === | === Outputs === | ||
− | * [[83Plus:RAM:8269|8269]]: | + | * [[83Plus:RAM:8269|8269]]: (4 bytes) Holds the length in bits of the data hashed so far. |
− | * [[83Plus:RAM:8292|8292]]: Will be changed to contain the new | + | * [[83Plus:RAM:8292|8292]]: (16 bytes) Will be changed to contain the new (incremental) MD5 hash of the data you gave it |
=== Destroys === | === Destroys === |
Revision as of 19:03, 27 March 2005
Contents
Synopsis
Official Name: MD5Update
Other Name: CalculateMD5
BCALL Address: 8090
Calculates the MD5 checksum
Inputs
- BC: The length of the data
- HL: The location of the data
Outputs
- 8269: (4 bytes) Holds the length in bits of the data hashed so far.
- 8292: (16 bytes) Will be changed to contain the new (incremental) MD5 hash of the data you gave it
Destroys
Unkown, please add this when you test check this out.
Comments
This B_CALL incrementally changes the md5 "registers" for the data you give it. But it does not add the size word that is required to generate official MD5 hashes, you have to do this yourself if you want official hashes.
Example
B_CALL InitializeMD5 ld bc,0040h ld hl,SomeAddress B_CALL CalculateMD5
Credits and Contributions
- FloppusMaximus: For testing that this B_CALL also work with lengths unequal to 64 bytes