balg.c revision 65c4736d9c0ebc6d9b1d991593b55566909da9cd
/* 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.
*/
#include "global.h"
#include "bsafe2.h"
#include "bkey.h"
#include "balg.h"
#include "btypechk.h"
#include "ainfotyp.h"
void B_AlgorithmConstructor (algorithm)
{
/* Construct immediate base class. */
}
void B_AlgorithmDestructor (algorithm)
{
}
/* Destroy base class */
}
{
return (BE_ALGORITHM_NOT_SET);
return (BE_ALG_OPERATION_UNKNOWN);
return (0);
}
{
int status;
/* Check the type first. */
return (status);
return (BE_ALGORITHM_NOT_INITIALIZED);
return (0);
}
{
int status;
return (BE_ALGORITHM_ALREADY_SET);
/* This will cache the encoding. */
return (status);
/* Allocate the algorithm handler. NewHandler returns NULL_PTR for error.
*/
return (BE_ALLOC);
return (0);
}
{
int status;
return (BE_ALGORITHM_NOT_SET);
/* First check if the encoding is already in the encoding cache.
*/
return (0);
/* Info is not in the cache, go ahead and encode.
*/
return (status);
return (B_InfoCacheAddInfo
}