RSA Security 5 Projection Television User Manual


 
AI_PKCS_RSAPrivate
166 RSA BSAFE Crypto-C Library Reference Manual
AI_PKCS_RSAPrivate
Purpose:
This AI allows you to decrypt data encrypted using the RSA public-key cryptosystem
as defined in PKCS #1.
Type of information this allows you to use:
the RSA algorithm for performing private-key decryption as defined in PKCS #1.
When encrypting, this algorithm encodes the data according to block type 01. When
decrypting, this algorithm decodes the data from a block type 02.
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, B_DecryptInit,
B_DecryptUpdate, and B_DecryptFinal. You may pass (B_ALGORITHM_OBJ)NULL_PTR
for all
randomAlgorithm
arguments.
Algorithm methods to include in application’s algorithm chooser:
AM_RSA_CRT_ENCRYPT or AM_RSA_CRT_ENCRYPT_BLIND for encryption, or
AM_RSA_CRT_DECRYPT or AM_RSA_CRT_DECRYPT_BLIND for decryption.
AM_RSA_CRT_ENCRYPT_BLIND and AM_RSA_CRT_DECRYPT_BLIND perform blinding to
protect against timing attacks, whereas
AM_RSA_CRT_ENCRYPT and
AM_RSA_CRT_DECRYPT do not.
Key info types for keyObjec t in B_EncryptInit or B_DecryptInit:
KI_RSA_CRT, KI_PKCS_RSAPrivate, KI_PKCS_RSAPrivateBER, or KI_RSAPrivateBSAFE1.