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

RSA usage

xwl
Beginner
243 Views
I have this chart flow in my mind:

1. ippsRSAGenerate(E) => get N, D
2. run ippsRSAEncrypt(), ippsRSADecrypt() with previous N, E, D.

My question is that ippsRSAGenerate() requires the parameter:

IppsRSAState* pCtx,

but IppStatus ippsRSAInit(int nBitsN, int nBitsP, IppRSAKeyType flag,
IppsRSAState* pCtx); requires me to provide the "flag" parameter, either public or private. I'm not sure which one I should choose?

0 Kudos
1 Reply
Vladimir_Dudnik
Employee
243 Views

Our expert recomendation is to

Choose theflag for private operation in Init function.

Regards,
Vladimir

0 Kudos
Reply