A SERVICE OF

logo

Chapter 2 Algorithm Info Types 177
AI_PKCS_RSAPublicPEM
Algorithm methods to include in application’s algorithm chooser:
AM_RSA_ENCRYPT for encryption or AM_RSA_DECRYPT for decryption.
Key info types for keyObjec t in B_EncryptInit or B_DecryptInit:
KI_RSAPublic, KI_RSAPublicBER, or KI_RSAPublicBSAFE1.
Compatible representation:
AI_PKCS_RSAPublic, AI_PKCS_RSAPublicBER.
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.