summaryrefslogtreecommitdiff
path: root/lib/dns/sec/dnssafe/ahchdig.h
blob: b58eec7e554876fbd4ef68901349f6e8e1806ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* 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 DNSSAFE_AHCHDIG_H
#define DNSSAFE_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 /* DNSSAFE_AHCHDIG_H */