RSA Security 5 Projection Television User Manual


 
AI_PKCS_RSAPublic
172 RSA BSAFE Crypto-C Library Reference Manual
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 keyObjec t in B_EncryptInit or B_DecryptInit:
KI_RSAPublic, KI_RSAPublicBER, or KI_RSAPublicBSAFE1.