
ii RSAEuro Technical Reference
R_DIGEST_CTX..................................................................................................................................................14
MD2_CTX.............................................................................................................................................................14
MD4_CTX.............................................................................................................................................................14
MD5_CTX.............................................................................................................................................................15
SHS_CTX..............................................................................................................................................................15
Examples....................................................................................................................................................................15
Generating a message digest..................................................................................................................................15
Generating a message digest of memory-resident data..........................................................................................16
DIGITAL SIGNATURE ROUTINES
Introduction................................................................................................................................................................17
Functions....................................................................................................................................................................17
R_SignInit..............................................................................................................................................................17
R_SignUpdate........................................................................................................................................................18
R_SignFinal...........................................................................................................................................................18
R_SignBlock..........................................................................................................................................................18
R_VerifyInit...........................................................................................................................................................18
R_VerifyUpdate.....................................................................................................................................................18
R_VerifyFinal........................................................................................................................................................19
R_VerifyBlockSignature........................................................................................................................................19
Data Types.................................................................................................................................................................19
R_SIGNATURE_CTX..........................................................................................................................................19
R_RSA_PRIVATE_KEY......................................................................................................................................19
R_RSA_PUBLIC_KEY.........................................................................................................................................19
Examples....................................................................................................................................................................19
Signing and verifying a block of data....................................................................................................................19
Signing and verifying a block of memory-resident data.........................................................................................21
ENVELOPE PROCESSING
Introduction................................................................................................................................................................23
Sealing data in digital envelopes............................................................................................................................23
Opening digital envelopes......................................................................................................................................23
Functions....................................................................................................................................................................24
R_SealInit..............................................................................................................................................................24
R_SealUpdate........................................................................................................................................................24
R_SealFinal............................................................................................................................................................24
R_OpenInit............................................................................................................................................................25
R_OpenUpdate......................................................................................................................................................25
R_OpenFinal..........................................................................................................................................................25
Data Types.................................................................................................................................................................26
R_ENVELOPE_CTX............................................................................................................................................26
R_RSA_PRIVATE_KEY......................................................................................................................................26
R_RSA_PUBLIC_KEY.........................................................................................................................................26
R_RANDOM_STRUCT........................................................................................................................................26
Examples....................................................................................................................................................................26
Sealing and opening an envelope...........................................................................................................................26
PEM FUNCTIONS
Introduction................................................................................................................................................................29
Functions....................................................................................................................................................................29
R_EncodePEMBlock.............................................................................................................................................29
R_DecodePEMBlock.............................................................................................................................................30
R_SignPEMBlock..................................................................................................................................................30
R_VerifyPEMSignature.........................................................................................................................................30
R_SealPEMBlock..................................................................................................................................................31
R_OpenPEMBlock................................................................................................................................................31
R_EncryptOpenPEMBlock....................................................................................................................................32
R_DecryptOpenPEMBlock....................................................................................................................................32
Data Types.................................................................................................................................................................32
R_RSA_PRIVATE_KEY......................................................................................................................................32