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

the function"ippsRSA_SetPrivateKeyType2" return error,the return value is ippStsBadArgErr

Nai-Ting_H_
Beginner
472 Views

Dear Intel support,

Recently we met a ipp library load rsa private key issue.when I use ipp librara to load a special RSA private key,
the function"ippsRSA_SetPrivateKeyType2" return error,the return value is ippStsBadArgErr. But ipp 6.2 can load this special RSA private key.
By the way,openssl can load this special RSA private key.
I will attach a simple test code,RSA private key and certificate file.

P.s, we are working on FreeBSD 10.0 platform.IPP version is 8.2

Need your help.
Thanks.

Regards,
LiuQin

 

0 Kudos
3 Replies
Ying_H_Intel
Employee
472 Views

Hi Nai-Ting,

I noticed the problem was opened for a while.  Have your problem solved? 

As we reimplement the RSA API (type1, type2 keys based) in latest version,  you may try the latest version IPP 9.0 xx and see if was fixed.

You can get the IPP 9.0 update  free from https://software.intel.com/en-us/intel-ipp/  => Get This Library for Free!

Best Regards,
Ying

0 Kudos
GMU
Beginner
472 Views

Dear Intel Support,

We have tried IPP 9.0.3 and we also tried the latest 2017 version, the issue still happens. The same key/cert can work with stock OpenSSL and Cavium hardware.
I attached the new sample code, the code output is as below on our CentOS 7.2 system:
[root@AN test]# ./ipp_rsa_test
ippCore 9.0.3 (r51269) built at Apr  8 2016 for CPU core (9.0.3.51269)
ippCP AVX (e9) 9.0.3 (r51269) built at Apr  8 2016 for CPU e9 (9.0.3.51269)
bitsP = 512
bitsQ = 512
keyCtxSizeBytes=1603
keyCtxSizeBytes *sizeof(Ipp8u) = 1603
set error----
ret = -12
[root@AN test]# uname -a
Linux AN 3.10.0-327.3.1.el7.x86_64 #1 SMP Wed Dec 9 14:09:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Please kindly suggest.

Regards,

Nai-Ting
 

0 Kudos
Ying_H_Intel
Employee
472 Views

Hi Nai-Ting,

Thank you for the repot. Yes, there is still a bug in the function.  Good news is IPP 2017 update 1 release today, this update is supposed to fix the issue. You are welcomed to try and let us know if any problem

Best Regards,

Ying

0 Kudos
Reply