summaryrefslogtreecommitdiff
path: root/lib/dns/sec/dnssafe/md5rand.h
blob: f19741069515b12ad5d767f25f8f6e2f81181362 (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
34
35
36
/* Copyright (C) RSA Data Security, Inc. created 1994, 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 _MD5RAND_H_
#define _MD5RAND_H_ 1

#include "digrand.h"
#include "md5.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef struct A_MD5_RANDOM_CTX {
  A_DigestRandom digestRandom;                               /* "base class" */
  
  unsigned char state[3 * A_MD5_DIGEST_LEN];
  A_MD5_CTX md5Context;
} A_MD5_RANDOM_CTX;

void A_MD5RandomInit PROTO_LIST ((A_MD5_RANDOM_CTX *));
void A_MD5RandomUpdate PROTO_LIST
  ((A_MD5_RANDOM_CTX *, unsigned char *, unsigned int));
void A_MD5RandomGenerateBytes PROTO_LIST
  ((A_MD5_RANDOM_CTX *, unsigned char *, unsigned int));

#ifdef __cplusplus
}
#endif

#endif