RSA Security logo

RSA BSAFE Cert-C
API Reference

certcryp.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 1999-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 
00009 #ifndef _CERTCRYP_H_
00010 #define _CERTCRYP_H_ 1
00011 
00018 #include "service.h"
00019 
00020 /* Ideally, this value would come from the Crypto-C
00021  * header files.  Until then...
00022  */
00023 #ifndef MAX_RSA_MODULUS_BITS
00024 #define MAX_RSA_MODULUS_BITS (4096)
00025 #endif
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00064 int C_GetChooser (
00065   CERTC_CTX       ctx,                /* Cert-C context */
00066   B_ALGORITHM_CHOOSER
00067                   *chooser);          /* Crypto-C chooser */
00068 
00093 int C_GetRandomObject (
00094   CERTC_CTX       ctx,                /* Cert-C context */
00095   B_ALGORITHM_OBJ *randomObj);        /* Crypto-C random algorithm object */
00096 
00125 int C_CopyPrivateKey (
00126   B_KEY_OBJ       newKey,             /* created but uninitialized key */
00127   B_KEY_OBJ       oldKey);            /* key to be copied */
00128 
00129 #ifdef __cplusplus
00130 }
00131 #endif
00132 
00133 #endif /* _CERTCRYP_H_ */



RSA BSAFE® Cert-C 2.7 API Reference