IBM 2 Computer Hardware User Manual


 
CCA Release 2.54 MDC_Generate
Format
CSNBMDG
return_code Input Integer
reason_code Input Integer
exit_data_length In/Output Integer
exit_data In/Output String exit_data_length bytes
text_length Input Integer
text Input String text_length bytes
rule_array_count Input Integer
rule_array Input String
array
rule_array_count * 8 bytes
chaining_vector In/Output String 18 bytes
MDC In/Output String 16 bytes
Parameters
For the definitions of the return_code, reason_code, exit_data_length, and exit_data
parameters, see “Parameters Common to All Verbs” on page 1-11.
text_length
The text_length parameter is a pointer to an integer variable containing the
length (in bytes) of text to process.
text
The text parameter is a pointer to a string variable containing the text for which
the verb calculates the MDC value.
rule_array_count
The rule_array_count parameter is a pointer to an integer variable containing
the number of elements in the rule array. The value of the rule_array_count
must be zero, one, or two for this verb.
rule_array
The rule_array parameter is a pointer to an array of keywords. The keywords
are eight-bytes in length, and must be left-justified and padded on the right with
space characters. The rule_array keywords are shown below:
Figure 4-2 (Page 1 of 2). MDC_Generate Rule_Array Keywords
Keyword Meaning
Segmenting and Key Control (one, optional)
ONLY Specifies that segmenting is not used and the default key is
used. This is the default.
FIRST Specifies the first segment of text, and use of the default key.
MIDDLE Specifies an intermediate segment of text, or the first segment
of text and use of a user-supplied key.
LAST Specifies the last segment of text, or that segmenting is not
used, and use of a user-supplied key.
Chapter 4. Hashing and Digital Signatures 4-11