MD5 (FB) ¶ FUNCTION_BLOCK MD5 Function calculates the MD5 checksum of given “MemoryBlock” with “udiNumberOfBytes” bytes. The used algorithm of MD5 Message-Digest is descibed in RFC1321. Prefix: “memmd5”. 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 InOut: Scope Name Type Comment Input xExecute BOOL rising edge starts calculation of “abyDigest” pMemoryBlock POINTER TO BYTE address of memory block udiNumberOfBytes UDINT number of bytes of memory block Output xDone BOOL calculation of abyDigest done xBusy BOOL calculation busy abyDigest ARRAY [0..15] OF BYTE MD5 digest Structure: Finale (Action) Init (Action) Update (Action)
MD5.Finale (ACT) ¶ MD5 finalization. Ends an MD5 message-digest operation and writes the the message digest.
MD5.Init (ACT) ¶ MD5 initialization. Begins an MD5 operation and writes a new context.
MD5.Update (ACT) ¶ MD5 block update operation. Continues an MD5 message-digest operation, processes another message block and updates the context.
Internal functions ¶ MD5_FF (Function) MD5_GG (Function) MD5_HH (Function) MD5_II (Function) MD5_Transform (Function)
MD5_FF (FUN) ¶ FUNCTION MD5_FF : DWORD MD5 transformations for rounds 1, 2, 3, and 4. InOut: Scope Name Type Return MD5_FF DWORD Input dwA DWORD dwB DWORD dwC DWORD dwD DWORD dwX DWORD dwS UINT dwT DWORD
MD5_GG (FUN) ¶ FUNCTION MD5_GG : DWORD MD5 transformations for rounds 1, 2, 3, and 4. InOut: Scope Name Type Return MD5_GG DWORD Input dwA DWORD dwB DWORD dwC DWORD dwD DWORD dwX DWORD dwS UINT dwT DWORD
MD5_HH (FUN) ¶ FUNCTION MD5_HH : DWORD MD5 transformations for rounds 1, 2, 3, and 4. InOut: Scope Name Type Return MD5_HH DWORD Input dwA DWORD dwB DWORD dwC DWORD dwD DWORD dwX DWORD dwS UINT dwT DWORD
MD5_II (FUN) ¶ FUNCTION MD5_II : DWORD MD5 transformations for rounds 1, 2, 3, and 4. InOut: Scope Name Type Return MD5_II DWORD Input dwA DWORD dwB DWORD dwC DWORD dwD DWORD dwX DWORD dwS UINT dwT DWORD
Functions ¶ GetProperty (Function)