RSA Security 5 Projection Television User Manual


 
Chapter 2 Algorithm Info Types 211
AI_RSAPrivate
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.
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:
AI_RSAPrivate may include the hardware algorithm method
AM_TOKEN_RSA_CRT_ENCRYPT or AM_TOKEN_RSA_CRT_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_RSAPrivate
should be used with
KI_Token or KI_KeypairToken.