AM_RSA_CRT_DECRYPT
AM_RSA_CRT_ENCRYPT_BLIND

AI_PKCS_RSAPrivate

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.

and AM_RSA_CRT_DECRYPT_BLIND perform blinding to

protect against timing attacks, whereas AM_RSA_CRT_ENCRYPT and do not.

Key info types for keyObject in B_EncryptInit or B_DecryptInit:

KI_RSA_CRT, KI_PKCS_RSAPrivate, KI_PKCS_RSAPrivateBER, or KI_RSAPrivateBSAFE1.

1 6 6

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 176
Image 176
RSA Security 5 manual AIPKCSRSAPrivate