OLD | NEW |
1 /* | 1 /* |
2 * Verification stuff. | 2 * Verification stuff. |
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 /* $Id$ */ | |
8 | 7 |
9 #include <stdio.h> | 8 #include <stdio.h> |
10 #include "cryptohi.h" | 9 #include "cryptohi.h" |
11 #include "sechash.h" | 10 #include "sechash.h" |
12 #include "keyhi.h" | 11 #include "keyhi.h" |
13 #include "secasn1.h" | 12 #include "secasn1.h" |
14 #include "secoid.h" | 13 #include "secoid.h" |
15 #include "pk11func.h" | 14 #include "pk11func.h" |
16 #include "secdig.h" | 15 #include "secdig.h" |
17 #include "secerr.h" | 16 #include "secerr.h" |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 { | 723 { |
725 SECOidTag encAlg, hashAlg; | 724 SECOidTag encAlg, hashAlg; |
726 SECOidTag sigAlg = SECOID_GetAlgorithmTag((SECAlgorithmID *)sigAlgorithm); | 725 SECOidTag sigAlg = SECOID_GetAlgorithmTag((SECAlgorithmID *)sigAlgorithm); |
727 SECStatus rv = sec_DecodeSigAlg(key, sigAlg, | 726 SECStatus rv = sec_DecodeSigAlg(key, sigAlg, |
728 &sigAlgorithm->parameters, &encAlg, &hashAlg); | 727 &sigAlgorithm->parameters, &encAlg, &hashAlg); |
729 if (rv != SECSuccess) { | 728 if (rv != SECSuccess) { |
730 return rv; | 729 return rv; |
731 } | 730 } |
732 return vfy_VerifyData(buf, len, key, sig, encAlg, hashAlg, hash, wincx); | 731 return vfy_VerifyData(buf, len, key, sig, encAlg, hashAlg, hash, wincx); |
733 } | 732 } |
OLD | NEW |