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.
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.
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 (18.104.22.168269)
ippCP AVX (e9) 9.0.3 (r51269) built at Apr 8 2016 for CPU e9 (22.214.171.124269)
bitsP = 512
bitsQ = 512
keyCtxSizeBytes *sizeof(Ipp8u) = 1603
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.
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