summaryrefslogtreecommitdiff
path: root/lib/dns/sec/dnssafe/ahchrand.h
blob: 51e0f9847ddb70e921cd85aef02e52b664e3f1c0 (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
/* 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 _AHCHRAND_H_
#define _AHCHRAND_H_ 1

#include "ahrandom.h"
#include "algchoic.h"

typedef struct AHChooseRandom {
  AHRandom random;                                             /* base class */
  AlgaChoice algaChoice;
} AHChooseRandom;

AHChooseRandom *AHChooseRandomConstructor2 PROTO_LIST
  ((AHChooseRandom *, struct B_AlgorithmInfoType *, POINTER));
void AHChooseRandomDestructor PROTO_LIST ((THIS_RANDOM *));

int AHChooseRandomInit PROTO_LIST
  ((THIS_RANDOM *, B_ALGORITHM_CHOOSER, A_SURRENDER_CTX *));
int AHChooseRandomUpdate PROTO_LIST
  ((THIS_RANDOM *, unsigned char *, unsigned int, A_SURRENDER_CTX *));
int AHChooseRandomGenerateBytes PROTO_LIST
  ((THIS_RANDOM *, unsigned char *, unsigned int, A_SURRENDER_CTX *));

#endif