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 | 4 |
5 /* | 5 /* |
6 * Diffie-Hellman parameter generation, key generation, and secret derivation. | 6 * Diffie-Hellman parameter generation, key generation, and secret derivation. |
7 * KEA secret generation and verification. | 7 * KEA secret generation and verification. |
8 * | |
9 * $Id$ | |
10 */ | 8 */ |
11 #ifdef FREEBL_NO_DEPEND | 9 #ifdef FREEBL_NO_DEPEND |
12 #include "stubs.h" | 10 #include "stubs.h" |
13 #endif | 11 #endif |
14 | 12 |
15 #include "prerr.h" | 13 #include "prerr.h" |
16 #include "secerr.h" | 14 #include "secerr.h" |
17 | 15 |
18 #include "blapi.h" | 16 #include "blapi.h" |
19 #include "secitem.h" | 17 #include "secitem.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 mp_clear(&p); | 382 mp_clear(&p); |
385 mp_clear(&q); | 383 mp_clear(&q); |
386 mp_clear(&y); | 384 mp_clear(&y); |
387 mp_clear(&r); | 385 mp_clear(&r); |
388 if (err) { | 386 if (err) { |
389 MP_TO_SEC_ERROR(err); | 387 MP_TO_SEC_ERROR(err); |
390 return PR_FALSE; | 388 return PR_FALSE; |
391 } | 389 } |
392 return (cmp == 0) ? PR_TRUE : PR_FALSE; | 390 return (cmp == 0) ? PR_TRUE : PR_FALSE; |
393 } | 391 } |
OLD | NEW |