MEM.MD5 (FB prefix: memmd5)

This function of the CAA_Memory.library  calculates the MD5 check sum of the memory area "MemoryBlock" consisting of  "udiNumberOfBytes" bytes.

MD5, the algorithm used, is described in RFC1321.

xExecute

BOOL

A raising edge will start the calculation

see: “CAA 指南”

pMemoryBlock

DWORD

Address of memory area

udiNumberOfBytes

UINT

Size of area in bytes

xDone

BOOL

Calculation done

see: “CAA 指南”

xBusy

BOOL

Calculation being executed

see: “CAA 指南”

abyDigest

ARRAY[0..15] OF BYTE

MD5 check sum

Example:

sTest : string := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'

 ->

abyDigest[0] = 16#D1

abyDigest[1] = 16#74

abyDigest[2] = 16#AB

abyDigest[3] = 16#98

abyDigest[4] = 16#D2

abyDigest[5] = 16#77

abyDigest[6] = 16#D9

abyDigest[7] = 16#F5

abyDigest[8] = 16#A5

abyDigest[9] = 16#61

abyDigest[10] = 16#1C

abyDigest[11] = 16#2C

abyDigest[12] = 16#9F

abyDigest[13] = 16#41

abyDigest[14] = 16#9D

abyDigest[15] = 16#9F