![](/images/new-backgrounds/1225625/225625449x1.webp)
AI_RSAPublic
AI_RSAPublic
Algorithm methods to include in application’s algorithm chooser:
AM_RSA_ENCRYPT for encryption or AM_RSA_DECRYPT for decryption.
Key info types for keyObject in B_EncryptInit or B_DecryptInit:
KI_RSAPublic, KI_RSAPublicBER, or KI_RSAPublicBSAFE1.
Input constraints:
Because this algorithm does not pad, the total number of input bytes must be a multiple of the key’s modulus size in bytes. Also, each
Token-based algorithm methods:
may include the hardware algorithm methods AM_TOKEN_RSA_ENCRYPT, AM_TOKEN_RSA_DECRYPT, and AM_TOKEN_RSA_PUB_DECRYPT in the algorithm chooser for use with BHAPI.
Token-based key info types:
When used with one of the hardware algorithm methods described, AI_RSAPublic should be used with KI_Token or KI_KeypairToken.
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 | 215 |