Community
cancel
Showing results for 
Search instead for 
Did you mean: 
155 Views

ippsECCPGet reporting ippStsLnNegArg error

Hi.

This is Sreekanth here. We are using an old version of IPP library, in prebuilt form from one of the other teams. (This other team is no more with Intel).

However, we have a crypto module in our platform that supports ECC operations. To this end, we are using this API, ippsECCPGet during the generation of  ECC keys.

When we use this API we see this error, ippStsLnNegArg, not sure why, though.

Could anyone please help?

Best Regards

Sreekanth Muralidharan

0 Kudos
4 Replies
Gennady_F_Intel
Moderator
155 Views

follow the IPP Crypo manual (https://software.intel.com/en-us/ipp-crypto-reference-eccpget).  ippsECCPGet  doesn't return ippStsLnNegArg status. Could you give us a short example which we could build and check the problem?

Gennady_F_Intel
Moderator
155 Views

which version of IPP Crypto do you use?

Sergey_K_Intel4
Employee
155 Views

Status code "ippStsLnNegArg" defined in IPP (but in crypto) and means Negative Argument in Ln function.

So, the situation is not clear. Let us know

1) version of IPP you are using

2) If you send short reproducer we can try to to detect the root case

Consider possibility to re-fresh the library  

Regards

155 Views

Sergey Kirillov (Intel) wrote:

Status code "ippStsLnNegArg" defined in IPP (but in crypto) and means Negative Argument in Ln function.

So, the situation is not clear. Let us know

 

Hi Gennady, Sergey, 

>> 1) version of IPP you are using

Here is the version we use:

#define IPP_VERSION_MAJOR  2017
#define IPP_VERSION_MINOR  0
#define IPP_VERSION_UPDATE 1

#define IPP_VERSION_STR "2017.0.1"

 

>> 2) If you send short reproducer we can try to to detect the root case

Here is the snippet of the sample code which we use to call ippsECCPGet

IppsBigNumState *pPr;
IppsBigNumState *pa;
IppsBigNumState *pb;
IppsBigNumState *pgx;
IppsBigNumState *pgy;
IppsBigNumState *pO;
int cftr = 0;

// We initialize ECC context into ptr_ecc_state_context
IppStatus = ippsECCPGet(pPr, pa, pb, pgx, pgy, pO, &cftr, ptr_ecc_state_context);
printf("ippsECCPGet - %d\n", IppStatus);

 

Moreover, does this library send this error in case of a random number generator that might have not seeded with enough randomness?

>> Consider possibility to re-fresh the library 

Thanks for the quick response

Reply