RSA Security manual A p t e r 2 a l g o r i t h m I n f o Ty p e s 215

Models: 5

1 376
Download 376 pages 51.16 Kb
Page 225
Image 225
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 modulus-size block of input, interpreted as an integer with the most significant byte first, must be numerically less than the key’s modulus.

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

Page 225
Image 225
RSA Security manual A p t e r 2 a l g o r i t h m I n f o Ty p e s 215