Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

ippsECCPGet reporting ippStsLnNegArg error

Sreekanth_M_Intel
1,089 Views

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
1,089 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?

0 Kudos
Gennady_F_Intel
Moderator
1,089 Views

which version of IPP Crypto do you use?

0 Kudos
Sergey_K_Intel4
Employee
1,089 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

0 Kudos
Sreekanth_M_Intel
1,089 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

0 Kudos
Reply