RSA Security logo

RSA BSAFE Cert-C
API Reference

certalg.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 2000-2002.  All rights reserved.
00003 * This work contains proprietary, confidential, and trade secret
00004 * information of RSA Security Inc.  Use, disclosure or reproduction
00005 * without the express written authorization of RSA Security Inc. is
00006 * prohibited.
00007 */
00008 
00019 #ifndef _CERTALG_H_
00020 #define _CERTALG_H_ 1
00021 
00022 /* Includes */
00023 #include "basetype.h"
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 /* Digest algorithms */
00030 #define DAI_UNDEFINED   0
00031 #define DAI_SHA1      101
00032 #define DAI_MD5       102
00033 #define DAI_PBM       103
00034 #define DAI_MD2       104
00035 
00036 /* Encryption algorithms */
00037 #define EAI_UNDEFINED   0
00038 #define EAI_DES3      201
00039 #define EAI_RC2       202
00040 #define EAI_DES       203
00041 #define EAI_RC5       204
00042 #define EAI_RC4       205
00043 
00044 /* Signature algorithms */
00045 #define SA_UNDEFINED                     0
00046 #define SA_MD2_WITH_RSA_ENCRYPTION       6
00047 #define SA_MD5_WITH_RSA_ENCRYPTION       7
00048 #define SA_SHA1_WITH_RSA_ENCRYPTION      8
00049 #define SA_OIW_SHA1_WITH_RSA_ENCRYPTION  9
00050 #define SA_DSA_WITH_SHA1                10
00051 #define SA_RSA_ENCRYPTION               20 /* not for general use -- only in
00052                                               cases where the associated
00053                                               digestAlgorithm can be inferred
00054                                               from elsewhere */
00055 
00056 /* Key encryption algorithms */
00057 #define KA_RSA_ENCRYPTION 30
00058 
00188 typedef struct {
00189   int     algorithmId;
00190   POINTER algorithmParam;
00191 } ALGORITHM_IDENTIFIER;
00192 
00193 #ifdef __cplusplus
00194 }
00195 #endif
00196 
00197 #endif



RSA BSAFE® Cert-C 2.7 API Reference