Files
bind9/lib/dns/sec/dnssafe/ahdigest.h
David Lawrence 4be63b1fd8 144. [cleanup] libdns header files too numerous to name were made
to conform to the same style for multiple inclusion
                        protection.
2000-04-29 02:02:38 +00:00

50 lines
1.7 KiB
C

/* Copyright (C) RSA Data Security, Inc. created 1990, 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.
*/
#ifndef DNSSAFE_AHDIGEST_H
#define DNSSAFE_AHDIGEST_H 1
#include "btypechk.h"
/* Use the THIS_DIGEST macro to define the type of object in the
virtual function prototype. It defaults to the most base class, but
derived modules may define the macro to a more derived class before
including this header file.
*/
#ifndef THIS_DIGEST
#define THIS_DIGEST struct AHDigest
#endif
struct AHDigest;
typedef struct {
void (*Destructor) PROTO_LIST ((THIS_DIGEST *));
int (*DigestInit) PROTO_LIST
((THIS_DIGEST *, B_Key *, B_ALGORITHM_CHOOSER, A_SURRENDER_CTX *));
int (*DigestUpdate) PROTO_LIST
((THIS_DIGEST *, unsigned char *, unsigned int, A_SURRENDER_CTX *));
int (*DigestFinal) PROTO_LIST
((THIS_DIGEST *, unsigned char *, unsigned int *, unsigned int,
A_SURRENDER_CTX *));
} AHDigestVTable;
typedef struct AHDigest {
B_TypeCheck typeCheck; /* inherited */
AHDigestVTable *vTable; /* pure virtual */
} AHDigest;
/* The constructor does not set the vTable since this is a pure base class.
*/
void AHDigestConstructor PROTO_LIST ((AHDigest *));
/* No destructor because it is pure virtual. Also, do not call destructor
for B_TypeCheck, since this will just re-invoke this virtual
destructor. */
#endif /* DNSSAFE_AHDIGEST_H */