AI_PKCS_RSAPublicBER

Algorithm methods to include in application’s algorithm chooser:

AM_RSA_ENCRYPT for encryption and AM_RSA_DECRYPT for decryption.

Key info types for keyObject in B_EncryptInit or B_DecryptInit:

KI_RSAPublic, KI_RSAPublicBER or KI_RSAPublicBSAFE1.

Compatible representation:

AI_PKCS_RSAPublic, AI_PKCS_RSAPublicPEM.

Input constraints:

The total number of bytes to encrypt may not be more than k – 11, where k is the key’s modulus size in bytes.

Output considerations:

The output of encryption will be the same size as the key’s modulus.

C h a p t e r 2 A l g o r i t h m I n f o Ty p e s

175

Page 185
Image 185
RSA Security 5 manual Amrsaencrypt for encryption and Amrsadecrypt for decryption