Cryptography for Intel(R) Integrated Performance Primitives Developer Reference

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


Initializes the SM3 multi-buffer context for future use.


mbx_status16 mbx_sm3_init_mb16 (SM3_CTX_mb16*p_state);

Include Files




Pointer to the SM3_CTX_mb16 context being initialized.

The function sets up the SM3_CTX_mb16 digest context pointed by p_state.

Return Values

The mbx_sm3_init_mb16 function returns the status that indicates whether the operation completed successfully or not. The status value of 0 indicates that the context was initialized 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