Restrictions
The restrictions for CSNBMDG.
- When padding is requested (by specifying an algorithm mode keyword of PADMDC-2 or PADMDC-4), a text length of zero is valid for any segment-control keyword specified in the rule_array variable FIRST, MIDDLE, LAST, or ONLY). When LAST or ONLY is specified, the supplied text is padded with X'FF' bytes and a padding count in the last byte to bring the total text length to the next multiple of 8 that is greater than or equal to 16.
- When no padding is requested (by specifying an algorithm mode keyword of MDC-2 or MDC-4), the total length of text provided (over a single or segmented calls) must be a minimum of 16 bytes and a multiple of eight bytes. For segmented calls (that is, segmenting and key control keyword is not ONLY), a text length of zero is valid on any of the calls.