AI_PKCS_RSAPublic

AI_PKCS_RSAPublic

Purpose:

This AI allows you to encrypt data using the RSA public-key cryptosystem as defined in PKCS #1.

Type of information this allows you to use:

the RSA algorithm for performing public-key encryption as defined in PKCS #1. When encrypting, this algorithm encodes the data according to block type 02. When decrypting, this algorithm decodes the data from block type 01.

Format of info supplied to B_SetAlgorithmInfo:

NULL_PTR.

Format of info returned by B_GetAlgorithmInfo:

NULL_PTR.

Crypto-C procedures to use with algorithm object:

B_EncryptInit, B_EncryptUpdate, B_EncryptFinal, and B_DecryptInit, B_DecryptUpdate, and B_DecryptFinal. Note that B_EncryptUpdate and B_EncryptFinal require a random algorithm. You may pass (B_ALGORITHM_OBJ)NULL_PTR for the randomAlgorithm argument in B_DecryptUpdate and B_DecryptFinal.

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.

1 7 2

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 182
Image 182
RSA Security 5 manual AIPKCSRSAPublic, Amrsaencrypt for encryption or Amrsadecrypt for decryption