ahencryp.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#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.
*/
#include "port_before.h"
#include "global.h"
#include "bsafe2.h"
#include "bkey.h"
#include "balg.h"
#include "ahencryp.h"
#include "port_after.h"
{
/* Construct base class, setting type tag. */
/* Don't set vTable since this is a pure virtual base class. */
}
{
int status;
if ((status = B_AlgorithmCheckType
(algorithm, TypedAHEncryptDecryptDestructor)) != 0)
return (status);
if ((status =
surrenderContext)) != 0)
return (status);
return (0);
}
{
int status;
if ((status = B_AlgorithmCheckType
(algorithm, TypedAHEncryptDecryptDestructor)) != 0)
return (status);
if ((status =
surrenderContext)) != 0)
return (status);
return (0);
}
unsigned char *partOut;
unsigned int *partOutLen;
unsigned int maxPartOutLen;
unsigned char *partIn;
unsigned int partInLen;
{
int status;
(algorithm, TypedAHEncryptDecryptDestructor)) != 0)
return (status);
}
unsigned char *partOut;
unsigned int *partOutLen;
unsigned int maxPartOutLen;
const unsigned char *partIn;
unsigned int partInLen;
{
int status;
(algorithm, TypedAHEncryptDecryptDestructor)) != 0)
return (status);
}
unsigned char *partOut;
unsigned int *partOutLen;
unsigned int maxPartOutLen;
{
int status;
(algorithm, TypedAHEncryptDecryptDestructor)) != 0)
return (status);
}
unsigned char *partOut;
unsigned int *partOutLen;
unsigned int maxPartOutLen;
{
int status;
(algorithm, TypedAHEncryptDecryptDestructor)) != 0)
return (status);
}
static void TypedAHEncryptDecryptDestructor (typeCheck)
{
((AHEncryptDecrypt *)typeCheck);
}