OLD | NEW |
1 /* | 1 /* |
2 * crypto.h - public data structures and prototypes for the crypto library | 2 * crypto.h - public data structures and prototypes for the crypto library |
3 * | 3 * |
4 * This Source Code Form is subject to the terms of the Mozilla Public | 4 * This Source Code Form is subject to the terms of the Mozilla Public |
5 * License, v. 2.0. If a copy of the MPL was not distributed with this | 5 * License, v. 2.0. If a copy of the MPL was not distributed with this |
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
7 | 7 |
8 #ifndef _SECDIG_H_ | 8 #ifndef _SECDIG_H_ |
9 #define _SECDIG_H_ | 9 #define _SECDIG_H_ |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 ** "sig" the raw signature data (from MD2 or MD5) | 33 ** "sig" the raw signature data (from MD2 or MD5) |
34 ** "sigLen" the length of the signature data | 34 ** "sigLen" the length of the signature data |
35 ** | 35 ** |
36 ** NOTE: this is a low level routine used to prepare some data for PKCS#1 | 36 ** NOTE: this is a low level routine used to prepare some data for PKCS#1 |
37 ** digital signature formatting. | 37 ** digital signature formatting. |
38 ** | 38 ** |
39 ** XXX It might be nice to combine the create and encode functions. | 39 ** XXX It might be nice to combine the create and encode functions. |
40 ** I think that is all anybody ever wants to do anyway. | 40 ** I think that is all anybody ever wants to do anyway. |
41 */ | 41 */ |
42 extern SGNDigestInfo *SGN_CreateDigestInfo(SECOidTag algorithm, | 42 extern SGNDigestInfo *SGN_CreateDigestInfo(SECOidTag algorithm, |
43 » » » » » unsigned char *sig, | 43 » » » » » const unsigned char *sig, |
44 unsigned int sigLen); | 44 unsigned int sigLen); |
45 | 45 |
46 /* | 46 /* |
47 ** Destroy a digest-info object | 47 ** Destroy a digest-info object |
48 */ | 48 */ |
49 extern void SGN_DestroyDigestInfo(SGNDigestInfo *info); | 49 extern void SGN_DestroyDigestInfo(SGNDigestInfo *info); |
50 | 50 |
51 /* | 51 /* |
52 ** Encode a digest-info object | 52 ** Encode a digest-info object |
53 ** "poolp" is where to allocate the result from; it can be NULL in | 53 ** "poolp" is where to allocate the result from; it can be NULL in |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 /* | 94 /* |
95 ** Compare two digest-info objects, returning the difference between | 95 ** Compare two digest-info objects, returning the difference between |
96 ** them. | 96 ** them. |
97 */ | 97 */ |
98 extern SECComparison SGN_CompareDigestInfo(SGNDigestInfo *a, SGNDigestInfo *b); | 98 extern SECComparison SGN_CompareDigestInfo(SGNDigestInfo *a, SGNDigestInfo *b); |
99 | 99 |
100 | 100 |
101 SEC_END_PROTOS | 101 SEC_END_PROTOS |
102 | 102 |
103 #endif /* _SECDIG_H_ */ | 103 #endif /* _SECDIG_H_ */ |
OLD | NEW |