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

How to use RSA library functions

Deleted_U_Intel
Employee
367 Views

Hi,

I havepublic key components, N and E. I want to use RSA crypto library funcitons, but perturbed by the prototype of

the RSA API.

All RSA functions are taking length in bits ofn and p. For ex:

IppStatus ippsRSAGetSize(int nBitsN, int nBitsP, IppRSAKeyType flag, int*

pSize);

Is this only valid for systems in which key generation and encryption takes place on one machine.

How is this valid if key generation & encryption takes place on diff machines?

It would be great if somebody could help mein figuring this out.

Thanks a lot!!!

 

 

 

0 Kudos
2 Replies
bqduong
Beginner
367 Views
Bump

Quoting - Hema Latha Gunda (Intel)

Hi,

I havepublic key components, N and E. I want to use RSA crypto library funcitons, but perturbed by the prototype of

the RSA API.

All RSA functions are taking length in bits ofn and p. For ex:

IppStatus ippsRSAGetSize(int nBitsN, int nBitsP, IppRSAKeyType flag, int*

pSize);

Is this only valid for systems in which key generation and encryption takes place on one machine.

How is this valid if key generation & encryption takes place on diff machines?

It would be great if somebody could help mein figuring this out.

Thanks a lot!!!

 

 

 

 

0 Kudos
Chao_Y_Intel
Moderator
367 Views

Hello,
here is some comments from the expert:

One can use ippRSAGetSize(nBitsN, 0, IppRSAPublic) for encryption operation, i.e. set nBitsP=0.
The nBitsP parameter is not used in case of flag= IppRSAPublic.

Thanks,
Chao

0 Kudos
Reply