Developer Reference for Intel® Integrated Performance Primitives Cryptography 2018
Subtracts one integer big number from another.
IppStatus ippsSub_BN(IppsBigNumState *a, IppsBigNumState *b, IppsBigNumState * r);
ippcp.h
a |
First integer big number of the data type IppsBigNumState. |
b |
Second integer big number of the data type IppsBigNumState. |
r |
Subtraction result. |
The function subtracts one integer big number from another regardless of their signs and sizes and returns the result of the operation.
The following pseudocode represents this function:
(*r) ← (*a) - (*b).
ippStsNoErr |
Indicates no error. Any other value indicates an error or warning. |
ippStsNullPtrErr |
Indicates an error condition if any of the specified pointers is NULL. |
ippStsOutOfRangeErr |
Indicates an error condition if IppsBigNumState *r is smaller than the result data length. |
The function executes only under the condition that size of IppsBigNumState *r is not less than either the length of IppsBigNumState *a or that of IppsBigNumState *b.