1.Functional Description
1.1Purpose
This function will take a pointer ID to any size string as an input. The actual pointer is retrieved by
jdeRetrieveDataPtr API. The function will produce a 32 character string (plus Null terminator),
which is an ASCII translation of a message digest (128 bits chunk of memory).
The function will use the MD5 algorithm to produce a digest.
Note: The driver is derived from Custom Works sample code.
The calling application is responsible for loading all appropriate values.
1.3Special Logic
Derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm"
http://www.ietf.org/rfc/rfc1321.txt?number=1321
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
GENLNGOriginalStringPoinerIDI/OY
EV01Suppress Error MessagesIN1=Suppress runtime error message handling. 0=Allow runtime error
message handling.
DTAIError Message IDON
CFGSIDUniqueConfigurationIDOY32 characters string ( plus string terminator)
2.2Related Tables
Table Table Description
F3211
2.3Related Business Functions
Source NameFunction Name
B3200600
2.4Processing
Set default values for variables
If OriginalStringPointerID > zero
If retrieved pointer is not Null
Within I3201440_MDString run following subroutines:
I3201440_MD5Update
I3201440_MD5Final
Within I3201440_MD5Final run:
Note: do it four times to process whole 128 bit Number (Digest)
address of ConfiguredStringID array string and offset index)
And we will load consecutive elements of char array ConfiguredStringID
With ASCII codes (possible characters: 0-9 and A-F)
Null terminate ConfiguredStringID array string
Copy ConfiguredStringID string into UniqueConfigurationID
Perform logic regarding setting errors
D3201440 - BuildUniqueConfigurationID
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
idOriginalStringPointer | GENLNG | ID | OPT | NONE |
General purpose ID variable. | ||||
cSuppressErrorMessage | EV01 | char | OPT | NONE |
An option that specifies the type of processing for an event. | ||||
szErrorMessageID | DTAI | char | OPT | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
szUniqueConfigurationID | CFGSID | char | OPT | NONE |
An identifier that represents a unique configuration. It is generated from an encryption algorithm. Regardless of the number of segments or
|
None |
None |