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 * PQG parameter generation/verification. Based on FIPS 186-3. | 6 * PQG parameter generation/verification. Based on FIPS 186-3. |
7 * | |
8 * $Id$ | |
9 */ | 7 */ |
10 #ifdef FREEBL_NO_DEPEND | 8 #ifdef FREEBL_NO_DEPEND |
11 #include "stubs.h" | 9 #include "stubs.h" |
12 #endif | 10 #endif |
13 | 11 |
14 #include "prerr.h" | 12 #include "prerr.h" |
15 #include "secerr.h" | 13 #include "secerr.h" |
16 | 14 |
17 #include "prtypes.h" | 15 #include "prtypes.h" |
18 #include "blapi.h" | 16 #include "blapi.h" |
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1840 if (vfy == NULL) | 1838 if (vfy == NULL) |
1841 return; | 1839 return; |
1842 if (vfy->arena != NULL) { | 1840 if (vfy->arena != NULL) { |
1843 PORT_FreeArena(vfy->arena, PR_FALSE); /* don't zero it */ | 1841 PORT_FreeArena(vfy->arena, PR_FALSE); /* don't zero it */ |
1844 } else { | 1842 } else { |
1845 SECITEM_FreeItem(&vfy->seed, PR_FALSE); /* don't free seed */ | 1843 SECITEM_FreeItem(&vfy->seed, PR_FALSE); /* don't free seed */ |
1846 SECITEM_FreeItem(&vfy->h, PR_FALSE); /* don't free h */ | 1844 SECITEM_FreeItem(&vfy->h, PR_FALSE); /* don't free h */ |
1847 PORT_Free(vfy); | 1845 PORT_Free(vfy); |
1848 } | 1846 } |
1849 } | 1847 } |
OLD | NEW |