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.9 2012/04/25 14:49:43 gerv%gerv.net Exp $ */ | 4 /* $Id: hasht.h,v 1.10 2012/06/26 22:27:33 rrelyea%redhat.com Exp $ */ |
5 | 5 |
6 #ifndef _HASHT_H_ | 6 #ifndef _HASHT_H_ |
7 #define _HASHT_H_ | 7 #define _HASHT_H_ |
8 | 8 |
9 /* Opaque objects */ | 9 /* Opaque objects */ |
10 typedef struct SECHashObjectStr SECHashObject; | 10 typedef struct SECHashObjectStr SECHashObject; |
11 typedef struct HASHContextStr HASHContext; | 11 typedef struct HASHContextStr HASHContext; |
12 | 12 |
13 /* | 13 /* |
14 * The hash functions the security library supports | 14 * The hash functions the security library supports |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void (*end)(void *, unsigned char *, unsigned int *, unsigned int); | 51 void (*end)(void *, unsigned char *, unsigned int *, unsigned int); |
52 unsigned int blocklength; /* hash input block size (in bytes) */ | 52 unsigned int blocklength; /* hash input block size (in bytes) */ |
53 HASH_HashType type; | 53 HASH_HashType type; |
54 }; | 54 }; |
55 | 55 |
56 struct HASHContextStr { | 56 struct HASHContextStr { |
57 const struct SECHashObjectStr *hashobj; | 57 const struct SECHashObjectStr *hashobj; |
58 void *hash_context; | 58 void *hash_context; |
59 }; | 59 }; |
60 | 60 |
61 /* This symbol is NOT exported from the NSS DLL. Code that needs a | |
62 * pointer to one of the SECHashObjects should call HASH_GetHashObject() | |
63 * instead. See "sechash.h". | |
64 */ | |
65 extern const SECHashObject SECHashObjects[]; | |
66 | |
67 /* Only those functions below the PKCS #11 line should use SECRawHashObjects. | |
68 * This symbol is not exported from the NSS DLL. | |
69 */ | |
70 extern const SECHashObject SECRawHashObjects[]; | |
71 | |
72 #endif /* _HASHT_H_ */ | 61 #endif /* _HASHT_H_ */ |
OLD | NEW |