| 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 #ifndef _LOWKEYTI_H_ | 4 #ifndef _LOWKEYTI_H_ |
| 5 #define _LOWKEYTI_H_ 1 | 5 #define _LOWKEYTI_H_ 1 |
| 6 | 6 |
| 7 #include "blapit.h" | 7 #include "blapit.h" |
| 8 #include "prtypes.h" | 8 #include "prtypes.h" |
| 9 #include "plarena.h" | 9 #include "plarena.h" |
| 10 #include "secitem.h" | 10 #include "secitem.h" |
| 11 #include "secasn1t.h" | 11 #include "secasn1t.h" |
| 12 #include "secoidt.h" | 12 #include "secoidt.h" |
| 13 | 13 |
| 14 /* | 14 /* |
| 15 ** Typedef for callback to get a password "key". | 15 ** Typedef for callback to get a password "key". |
| 16 */ | 16 */ |
| 17 extern const SEC_ASN1Template nsslowkey_PQGParamsTemplate[]; | 17 extern const SEC_ASN1Template nsslowkey_PQGParamsTemplate[]; |
| 18 extern const SEC_ASN1Template nsslowkey_RSAPrivateKeyTemplate[]; | 18 extern const SEC_ASN1Template nsslowkey_RSAPrivateKeyTemplate[]; |
| 19 extern const SEC_ASN1Template nsslowkey_DSAPrivateKeyTemplate[]; | 19 extern const SEC_ASN1Template nsslowkey_DSAPrivateKeyTemplate[]; |
| 20 extern const SEC_ASN1Template nsslowkey_DSAPrivateKeyExportTemplate[]; | 20 extern const SEC_ASN1Template nsslowkey_DSAPrivateKeyExportTemplate[]; |
| 21 extern const SEC_ASN1Template nsslowkey_DHPrivateKeyTemplate[]; | 21 extern const SEC_ASN1Template nsslowkey_DHPrivateKeyTemplate[]; |
| 22 extern const SEC_ASN1Template nsslowkey_DHPrivateKeyExportTemplate[]; | 22 extern const SEC_ASN1Template nsslowkey_DHPrivateKeyExportTemplate[]; |
| 23 #ifdef NSS_ENABLE_ECC | 23 #ifndef NSS_DISABLE_ECC |
| 24 #define NSSLOWKEY_EC_PRIVATE_KEY_VERSION 1 /* as per SECG 1 C.4 */ | 24 #define NSSLOWKEY_EC_PRIVATE_KEY_VERSION 1 /* as per SECG 1 C.4 */ |
| 25 extern const SEC_ASN1Template nsslowkey_ECParamsTemplate[]; | 25 extern const SEC_ASN1Template nsslowkey_ECParamsTemplate[]; |
| 26 extern const SEC_ASN1Template nsslowkey_ECPrivateKeyTemplate[]; | 26 extern const SEC_ASN1Template nsslowkey_ECPrivateKeyTemplate[]; |
| 27 #endif /* NSS_ENABLE_ECC */ | 27 #endif /* NSS_DISABLE_ECC */ |
| 28 | 28 |
| 29 extern const SEC_ASN1Template nsslowkey_PrivateKeyInfoTemplate[]; | 29 extern const SEC_ASN1Template nsslowkey_PrivateKeyInfoTemplate[]; |
| 30 extern const SEC_ASN1Template nsslowkey_EncryptedPrivateKeyInfoTemplate[]; | 30 extern const SEC_ASN1Template nsslowkey_EncryptedPrivateKeyInfoTemplate[]; |
| 31 | 31 |
| 32 /* | 32 /* |
| 33 * PKCS #8 attributes | 33 * PKCS #8 attributes |
| 34 */ | 34 */ |
| 35 struct NSSLOWKEYAttributeStr { | 35 struct NSSLOWKEYAttributeStr { |
| 36 SECItem attrType; | 36 SECItem attrType; |
| 37 SECItem *attrValue; | 37 SECItem *attrValue; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 union { | 85 union { |
| 86 RSAPrivateKey rsa; | 86 RSAPrivateKey rsa; |
| 87 DSAPrivateKey dsa; | 87 DSAPrivateKey dsa; |
| 88 DHPrivateKey dh; | 88 DHPrivateKey dh; |
| 89 ECPrivateKey ec; | 89 ECPrivateKey ec; |
| 90 } u; | 90 } u; |
| 91 }; | 91 }; |
| 92 typedef struct NSSLOWKEYPrivateKeyStr NSSLOWKEYPrivateKey; | 92 typedef struct NSSLOWKEYPrivateKeyStr NSSLOWKEYPrivateKey; |
| 93 | 93 |
| 94 #endif /* _LOWKEYTI_H_ */ | 94 #endif /* _LOWKEYTI_H_ */ |
| OLD | NEW |