airsakgn.c revision 40f53fa8d9c6a4fc38c0014495e7a42b08f52481
/* Copyright (C) RSA Data Security, Inc. created 1990, 1996. This is an
unpublished work protected as such under copyright law. This work
contains proprietary, confidential, and trade secret information of
RSA Data Security, Inc. Use, disclosure or reproduction without the
express written authorization of RSA Data Security, Inc. is
prohibited.
*/
#include "global.h"
#include "bsafe2.h"
#include "bkey.h"
#include "balg.h"
#include "intitem.h"
#include "aichgen.h"
static B_AlgorithmInfoTypeVTable V_TABLE =
int AI_RSAKeyGen (infoType)
{
/* Return 0 to indicate a B_AlgorithmInfoType, not a B_KeyInfoType */
return (0);
}
{
int status;
if ((status = B_MemoryPoolAlloc
sizeof (A_RSA_KEY_GEN_PARAMS))) != 0)
return (status);
if ((status = AllocAndCopyIntegerItems
sizeof (KEY_GEN_PARAMS_ITEMS) / sizeof (KEY_GEN_PARAMS_ITEMS[0]),
return (status);
return (B_InfoCacheAddInfo
}