Developer Reference for Intel® Integrated Performance Primitives Cryptography 2018

Get_BN

Extracts the sign and value of the integer big number from the input structure.

Syntax

IppStatus ippsGet_BN(IppsBigNumSGN *sgn, int *length, Ipp32u *data, const IppsBigNumState *x);

Include Files

ippcp.h

Parameters

sgn

Sign of IppsBigNumState *x.

length

Array length of the input data.

data

Data array.

x

Integer big number of the context IppsBigNumState.

Description

The function extracts the sign and value of the integer big number from the input structure.

Return Values

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.

ippStsContextMatchErr

Indicates an error condition if the context parameter does not match the operation.