amrkg.c revision 65c4736d9c0ebc6d9b1d991593b55566909da9cd
/* Copyright (C) RSA Data Security, Inc. created 1994, 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 "algae.h"
#include "rsakeygn.h"
#include "balgmeth.h"
#include "amgen.h"
extern struct B_AlgorithmInfoType AIT_RSAKeyGen;
extern struct B_KeyInfoType KIT_PKCS_RSAPrivate;
static int RSAKeyGenQuery PROTO_LIST
((unsigned int *, unsigned int *, unsigned int *, struct B_KeyInfoType **,
POINTER));
static int RSAKeyGenInit PROTO_LIST
static int RSAKeyGen PROTO_LIST
static A_GENERATE_ALGA A_RSA_KEY_GEN =
(POINTER)&A_RSA_KEY_GEN};
static int RSAKeyGenQuery
unsigned int *contextLen;
unsigned int *secondContextLen;
unsigned int *randomBlockLen;
struct B_KeyInfoType **resultInfoType;
{
/* Can't support a keypair of this size. */
return (AE_MODULUS_LEN);
*contextLen = sizeof (A_RSA_KEY_GEN_CTX);
*secondContextLen = 0;
return (0);
}
{
return (A_RSAKeyGenInit
}
unsigned char *randomBlock;
{
return (A_RSAKeyGen
}