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 #include "prtypes.h" | 5 #include "prtypes.h" |
6 #include "prtime.h" | 6 #include "prtime.h" |
7 #include "prlong.h" | 7 #include "prlong.h" |
8 | 8 |
9 #include "nss.h" | 9 #include "nss.h" |
10 #include "secutil.h" | 10 #include "secutil.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #define BPB 8 /* bits per byte. */ | 21 #define BPB 8 /* bits per byte. */ |
22 | 22 |
23 char *progName; | 23 char *progName; |
24 | 24 |
25 | 25 |
26 const SEC_ASN1Template seckey_PQGParamsTemplate[] = { | 26 const SEC_ASN1Template seckey_PQGParamsTemplate[] = { |
27 { SEC_ASN1_SEQUENCE, 0, NULL, sizeof(SECKEYPQGParams) }, | 27 { SEC_ASN1_SEQUENCE, 0, NULL, sizeof(SECKEYPQGParams) }, |
28 { SEC_ASN1_INTEGER, offsetof(SECKEYPQGParams,prime) }, | 28 { SEC_ASN1_INTEGER, offsetof(SECKEYPQGParams,prime) }, |
29 { SEC_ASN1_INTEGER, offsetof(SECKEYPQGParams,subPrime) }, | 29 { SEC_ASN1_INTEGER, offsetof(SECKEYPQGParams,subPrime) }, |
30 { SEC_ASN1_INTEGER, offsetof(SECKEYPQGParams,base) }, | 30 { SEC_ASN1_INTEGER, offsetof(SECKEYPQGParams,base) }, |
31 { 0, } | 31 { 0 } |
32 }; | 32 }; |
33 | 33 |
34 | 34 |
35 | 35 |
36 void | 36 void |
37 Usage(void) | 37 Usage(void) |
38 { | 38 { |
39 fprintf(stderr, "Usage: %s\n", progName); | 39 fprintf(stderr, "Usage: %s\n", progName); |
40 fprintf(stderr,· | 40 fprintf(stderr,· |
41 "-a Output DER-encoded PQG params, BTOA encoded.\n" | 41 "-a Output DER-encoded PQG params, BTOA encoded.\n" |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 PK11_PQG_DestroyParams(pqgParams); | 347 PK11_PQG_DestroyParams(pqgParams); |
348 PK11_PQG_DestroyVerify(pqgVerify); | 348 PK11_PQG_DestroyVerify(pqgVerify); |
349 return 0; | 349 return 0; |
350 | 350 |
351 loser: | 351 loser: |
352 PK11_PQG_DestroyParams(pqgParams); | 352 PK11_PQG_DestroyParams(pqgParams); |
353 PK11_PQG_DestroyVerify(pqgVerify); | 353 PK11_PQG_DestroyVerify(pqgVerify); |
354 return 1; | 354 return 1; |
355 } | 355 } |
OLD | NEW |