summaryrefslogtreecommitdiff
path: root/lib/dns/sec/dnssafe/ahchdig.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dns/sec/dnssafe/ahchdig.h')
-rw-r--r--lib/dns/sec/dnssafe/ahchdig.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/dns/sec/dnssafe/ahchdig.h b/lib/dns/sec/dnssafe/ahchdig.h
new file mode 100644
index 00000000..d56df5ba
--- /dev/null
+++ b/lib/dns/sec/dnssafe/ahchdig.h
@@ -0,0 +1,32 @@
+/* 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.
+ */
+
+#ifndef _AHCHDIG_H_
+#define _AHCHDIG_H_ 1
+
+#include "ahdigest.h"
+#include "algchoic.h"
+
+typedef struct AHChooseDigest {
+ AHDigest digest; /* base class */
+ AlgaChoice algaChoice;
+} AHChooseDigest;
+
+AHChooseDigest *AHChooseDigestConstructor2 PROTO_LIST
+ ((AHChooseDigest *, struct B_AlgorithmInfoType *, POINTER));
+void AHChooseDigestDestructor PROTO_LIST ((THIS_DIGEST *));
+
+int AHChooseDigestInit PROTO_LIST
+ ((THIS_DIGEST *, B_Key *, B_ALGORITHM_CHOOSER, A_SURRENDER_CTX *));
+int AHChooseDigestUpdate PROTO_LIST
+ ((THIS_DIGEST *, unsigned char *, unsigned int, A_SURRENDER_CTX *));
+int AHChooseDigestFinal PROTO_LIST
+ ((THIS_DIGEST *, unsigned char *, unsigned int *, unsigned int,
+ A_SURRENDER_CTX *));
+
+#endif