Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Deleted_U_Intel
Employee
80 Views

How to use RSA library functions

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
80 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!!!

 

 

 

 

Chao_Y_Intel
Employee
80 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

Reply