Cryptography for Intel(R) Integrated Performance Primitives Developer Reference

ID 768738
Date 12/16/2022
Document Table of Contents


Computes SM3 digest values of the input messages with known length.


mbx_status16 mbx_sm3_msg_digest_mb16(const int8u *pa_msg[16], intlen[16], int8u *pa_hash[16]);

Include Files




Array of pointers to the input message.


Array of message lengths in bytes.


Array of pointers to the resultant digests.

The function uses the SM3 hashing scheme to compute digest values of the entire (non-streaming) input messages passed by pa_msg parameter in parallel. The lengths of the messages are specified in len array and can be different in different buffers. Produced hash values are stored in the memory locations specified by the pa_hash parameter.

Return Values

The mbx_sm3_msg_digest_mb16 function returns the status that indicates whether the operation completed successfully or not. The status value of 0 indicates that digest values for all messages were computed successfully. In case of non-zero status value, MBX_GET_HIGH_PART_STS16() and MBX_GET_LOW_PART_STS16() can help to get the low and high parts of the mbx_status16 , which can be analyzed separately with MBX_GET_STS() call. The low part includes first eight statuses, while the high part includes remaining 8 statuses for each operation.

Did you find the information on this page useful?

Characters remaining:

Feedback Message