ahchrand.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright (c) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (C) RSA Data Security, Inc. created 1993, 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.
*/
/* Define this so that the type of the 'this' pointer in the
virtual functions will be correct for this derived class.
*/
struct AHChooseRandom;
#define THIS_RANDOM struct AHChooseRandom
#include "port_before.h"
#include "global.h"
#include "algae.h"
#include "bsafe2.h"
#include "bkey.h"
#include "balg.h"
#include "balgmeth.h"
#include "ahchrand.h"
#include "amrandom.h"
#include "port_after.h"
static int InitRandomAlga PROTO_LIST
static AHRandomVTable V_TABLE = {
};
struct B_AlgorithmInfoType *infoType;
{
/* This constructor is being used to do a new */
== (AHChooseRandom *)NULL_PTR)
return (handler);
}
/* Construct base class */
return (handler);
}
void AHChooseRandomDestructor (handler)
{
/* There is no desructor to call for the base class. */
}
{
return (AlgaChoiceChoose
}
unsigned char *input;
unsigned int inputLen;
{
int status;
surrenderContext)) != 0)
return (ConvertAlgaeError (status));
return (0);
}
unsigned char *output;
unsigned int outputLen;
{
int status;
surrenderContext)) != 0)
return (ConvertAlgaeError (status));
return (0);
}
static int InitRandomAlga
{
int status;
unsigned int contextSize;
return (ConvertAlgaeError (status));
return (status);
surrenderContext)) != 0)
return (ConvertAlgaeError (status));
return (0);
}