OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 /* $Id: hasht.h,v 1.11 2013/02/05 18:10:46 wtc%google.com Exp $ */ | 4 /* $Id$ */ |
5 | 5 |
6 #ifndef _HASHT_H_ | 6 #ifndef _HASHT_H_ |
7 #define _HASHT_H_ | 7 #define _HASHT_H_ |
8 | 8 |
| 9 #include "prtypes.h" |
| 10 |
9 /* Opaque objects */ | 11 /* Opaque objects */ |
10 typedef struct SECHashObjectStr SECHashObject; | 12 typedef struct SECHashObjectStr SECHashObject; |
11 typedef struct HASHContextStr HASHContext; | 13 typedef struct HASHContextStr HASHContext; |
12 | 14 |
13 /* | 15 /* |
14 * The hash functions the security library supports | 16 * The hash functions the security library supports |
15 * NOTE the order must match the definition of SECHashObjects[]! | 17 * NOTE the order must match the definition of SECHashObjects[]! |
16 */ | 18 */ |
17 typedef enum { | 19 typedef enum { |
18 HASH_AlgNULL = 0, | 20 HASH_AlgNULL = 0, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 HASH_HashType type; | 55 HASH_HashType type; |
54 void (*end_raw)(void *, unsigned char *, unsigned int *, unsigned int); | 56 void (*end_raw)(void *, unsigned char *, unsigned int *, unsigned int); |
55 }; | 57 }; |
56 | 58 |
57 struct HASHContextStr { | 59 struct HASHContextStr { |
58 const struct SECHashObjectStr *hashobj; | 60 const struct SECHashObjectStr *hashobj; |
59 void *hash_context; | 61 void *hash_context; |
60 }; | 62 }; |
61 | 63 |
62 #endif /* _HASHT_H_ */ | 64 #endif /* _HASHT_H_ */ |
OLD | NEW |