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$ */ | |
5 #include "secdig.h" | 4 #include "secdig.h" |
6 | 5 |
7 #include "secoid.h" | 6 #include "secoid.h" |
8 #include "secasn1.h" | 7 #include "secasn1.h" |
9 #include "secerr.h" | 8 #include "secerr.h" |
10 | 9 |
11 /* | 10 /* |
12 * XXX Want to have a SGN_DecodeDigestInfo, like: | 11 * XXX Want to have a SGN_DecodeDigestInfo, like: |
13 * SGNDigestInfo *SGN_DecodeDigestInfo(SECItem *didata); | 12 * SGNDigestInfo *SGN_DecodeDigestInfo(SECItem *didata); |
14 * that creates a pool and allocates from it and decodes didata into | 13 * that creates a pool and allocates from it and decodes didata into |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 SECComparison rv; | 171 SECComparison rv; |
173 | 172 |
174 /* Check signature algorithm's */ | 173 /* Check signature algorithm's */ |
175 rv = SECOID_CompareAlgorithmID(&a->digestAlgorithm, &b->digestAlgorithm); | 174 rv = SECOID_CompareAlgorithmID(&a->digestAlgorithm, &b->digestAlgorithm); |
176 if (rv) return rv; | 175 if (rv) return rv; |
177 | 176 |
178 /* Compare signature block length's */ | 177 /* Compare signature block length's */ |
179 rv = SECITEM_CompareItem(&a->digest, &b->digest); | 178 rv = SECITEM_CompareItem(&a->digest, &b->digest); |
180 return rv; | 179 return rv; |
181 } | 180 } |
OLD | NEW |