OLD | NEW |
1 /* | 1 /* |
2 * PKCS #11 FIPS Power-Up Self Test. | 2 * PKCS #11 FIPS Power-Up Self Test. |
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 "softoken.h" /* Required for RC2-ECB, RC2-CBC, RC4, DES-ECB, */ | 8 #include "softoken.h" /* Required for RC2-ECB, RC2-CBC, RC4, DES-ECB, */ |
10 /* DES-CBC, DES3-ECB, DES3-CBC, RSA */ | 9 /* DES-CBC, DES3-ECB, DES3-CBC, RSA */ |
11 /* and DSA. */ | 10 /* and DSA. */ |
12 #include "seccomon.h" /* Required for RSA and DSA. */ | 11 #include "seccomon.h" /* Required for RSA and DSA. */ |
13 #include "lowkeyi.h" /* Required for RSA and DSA. */ | 12 #include "lowkeyi.h" /* Required for RSA and DSA. */ |
14 #include "pkcs11.h" /* Required for PKCS #11. */ | 13 #include "pkcs11.h" /* Required for PKCS #11. */ |
15 #include "secerr.h" | 14 #include "secerr.h" |
16 | 15 |
17 #ifdef NSS_ENABLE_ECC | 16 #ifdef NSS_ENABLE_ECC |
(...skipping 2074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2092 /* Software/Firmware Integrity Test. */ | 2091 /* Software/Firmware Integrity Test. */ |
2093 rv = sftk_fipsSoftwareIntegrityTest(); | 2092 rv = sftk_fipsSoftwareIntegrityTest(); |
2094 | 2093 |
2095 if( rv != CKR_OK ) | 2094 if( rv != CKR_OK ) |
2096 return rv; | 2095 return rv; |
2097 | 2096 |
2098 /* Passed Power-Up SelfTest(s). */ | 2097 /* Passed Power-Up SelfTest(s). */ |
2099 return( CKR_OK ); | 2098 return( CKR_OK ); |
2100 } | 2099 } |
2101 | 2100 |
OLD | NEW |