amrkg.c revision 40f53fa8d9c6a4fc38c0014495e7a42b08f52481
/* 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
}