Module: Miscellaneous
Definition in file PKIFNSSErrors.h.
#include "components.h"
#include "PKIFCommonErrors.h"
#include "PKIFCAPIErrors.h"
Go to the source code of this file.
Defines | |
#define | PKIFNSS_ERROR_BASE PKIFCAPI_ERROR_BASE + TOOLKIT_ERROR_EXTENSIONS |
#define | PKIFNSS_CREATE_DIGEST_CONTEXT_FAILED PKIFNSS_ERROR_BASE + 1 |
A call to PK11_CreateDigestContext failed. Consult NSS documentation for further details. | |
#define | PKIFNSS_DIGEST_BEGIN_FAILED PKIFNSS_ERROR_BASE + 2 |
A call to PK11_DigestBegin failed. Consult NSS documentation for further details. | |
#define | PKIFNSS_INCORRECT_HASH_CONTEXT PKIFNSS_ERROR_BASE + 3 |
#define | PKIFNSS_EMPTY_HASH_CONTEXT PKIFNSS_ERROR_BASE + 4 |
A NULL hash context was presented to a function that performs hash operations. | |
#define | PKIFNSS_DIGEST_OP_FAILED PKIFNSS_ERROR_BASE + 5 |
A hash-related operation failed. | |
#define | PKIFNSS_CERT_IMPORT_FAILED PKIFNSS_ERROR_BASE + 6 |
Cert decoding failed. | |
#define | PKIF_NSS_UNSUPPORTED_ALG PKIFNSS_ERROR_BASE + 7 |
An operation was attempted for which no supported "device" could be found. | |
#define | PKIF_NSS_RAW_IMPORT_FAILED PKIFNSS_ERROR_BASE + 8 |
Raw key import failure. | |
#define | PKIF_NSS_IV_IMPORT_FAILED PKIFNSS_ERROR_BASE + 9 |
IV could not be imported. | |
#define | PKIFNSS_CREATE_SK_CONTEXT_FAILED PKIFNSS_ERROR_BASE + 10 |
No symmetric key context could be established. | |
#define | PKIFNSS_CIPHER_OP_FAILED PKIFNSS_ERROR_BASE + 11 |
A symmetric cipher operation failed. | |
#define | PKIFNSS_RNG_FAILED PKIFNSS_ERROR_BASE + 12 |
Random number generator error. | |
#define | PKIFNSS_PUB_ENCRYPT_FAILED PKIFNSS_ERROR_BASE + 13 |
Public key encryption failure. | |
#define | PKIFNSS_DB_ALREADY_INITED PKIFNSS_ERROR_BASE + 14 |
NSS Database already initialized. | |
#define | PKIFNSS_NODB_INIT_FAILED PKIFNSS_ERROR_BASE + 15 |
Could not init NSS w/o a database. | |
#define | PKIFNSS_INIT_FAILED PKIFNSS_ERROR_BASE + 16 |
Could not init NSS with a database. | |
#define | PKIFNSS_SHUTDOWN_FAILED PKIFNSS_ERROR_BASE + 17 |
Could not shutdown NSS. | |
#define | PKIFNSS_COPYKEY_FAILED PKIFNSS_ERROR_BASE + 18 |
Could not retain a reference to a PKCS#11 private key. |
#define PKIF_NSS_IV_IMPORT_FAILED PKIFNSS_ERROR_BASE + 9 |
IV could not be imported.
Definition at line 44 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::CryptInit().
#define PKIF_NSS_RAW_IMPORT_FAILED PKIFNSS_ERROR_BASE + 8 |
Raw key import failure.
Definition at line 41 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::CryptInit(), and CPKIFNSSRaw::HMACInit().
#define PKIF_NSS_UNSUPPORTED_ALG PKIFNSS_ERROR_BASE + 7 |
An operation was attempted for which no supported "device" could be found.
Definition at line 38 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::CryptInit(), and CPKIFNSSRaw::HMACInit().
#define PKIFNSS_CERT_IMPORT_FAILED PKIFNSS_ERROR_BASE + 6 |
Cert decoding failed.
Definition at line 35 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::SupportsAlgorithm(), CPKIFNSSRaw::VerifyCertificate(), and VerifyCounterSignatures().
#define PKIFNSS_CIPHER_OP_FAILED PKIFNSS_ERROR_BASE + 11 |
A symmetric cipher operation failed.
Definition at line 50 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::CryptFunc(), CPKIFNSSAesKeyWrap::Decrypt(), and CPKIFNSSAesKeyWrap::Encrypt().
#define PKIFNSS_COPYKEY_FAILED PKIFNSS_ERROR_BASE + 18 |
Could not retain a reference to a PKCS#11 private key.
Definition at line 71 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSCredential::CPKIFNSSCredential().
#define PKIFNSS_CREATE_DIGEST_CONTEXT_FAILED PKIFNSS_ERROR_BASE + 1 |
A call to PK11_CreateDigestContext failed. Consult NSS documentation for further details.
Definition at line 19 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::HashInit().
#define PKIFNSS_CREATE_SK_CONTEXT_FAILED PKIFNSS_ERROR_BASE + 10 |
No symmetric key context could be established.
Definition at line 47 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::CryptFunc().
#define PKIFNSS_DB_ALREADY_INITED PKIFNSS_ERROR_BASE + 14 |
NSS Database already initialized.
Definition at line 59 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSDatabase::GetInstance().
#define PKIFNSS_DIGEST_BEGIN_FAILED PKIFNSS_ERROR_BASE + 2 |
A call to PK11_DigestBegin failed. Consult NSS documentation for further details.
Definition at line 22 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::HashInit().
#define PKIFNSS_DIGEST_OP_FAILED PKIFNSS_ERROR_BASE + 5 |
A hash-related operation failed.
Definition at line 32 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::HashFinal(), CPKIFNSSRaw::HashUpdate(), CPKIFNSSRaw::HMACFinal(), and CPKIFNSSRaw::HMACUpdate().
#define PKIFNSS_EMPTY_HASH_CONTEXT PKIFNSS_ERROR_BASE + 4 |
A NULL hash context was presented to a function that performs hash operations.
Definition at line 29 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::HashFinal(), CPKIFNSSRaw::HashUpdate(), CPKIFNSSRaw::HMACFinal(), and CPKIFNSSRaw::HMACUpdate().
#define PKIFNSS_ERROR_BASE PKIFCAPI_ERROR_BASE + TOOLKIT_ERROR_EXTENSIONS |
Definition at line 16 of file PKIFNSSErrors.h.
#define PKIFNSS_INCORRECT_HASH_CONTEXT PKIFNSS_ERROR_BASE + 3 |
An invalid hash context was presented. The hash context may have been generated by a different crypto source or have been corrupted.
Definition at line 26 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::HashFinal(), CPKIFNSSRaw::HashUpdate(), CPKIFNSSRaw::HMACFinal(), and CPKIFNSSRaw::HMACUpdate().
#define PKIFNSS_INIT_FAILED PKIFNSS_ERROR_BASE + 16 |
Could not init NSS with a database.
Definition at line 65 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRepository::Initialize(), and CPKIFNSS::Initialize().
#define PKIFNSS_NODB_INIT_FAILED PKIFNSS_ERROR_BASE + 15 |
#define PKIFNSS_PUB_ENCRYPT_FAILED PKIFNSS_ERROR_BASE + 13 |
#define PKIFNSS_RNG_FAILED PKIFNSS_ERROR_BASE + 12 |
Random number generator error.
Definition at line 53 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSRaw::GenRandom().
#define PKIFNSS_SHUTDOWN_FAILED PKIFNSS_ERROR_BASE + 17 |
Could not shutdown NSS.
Definition at line 68 of file PKIFNSSErrors.h.
Referenced by CPKIFNSSDatabase::Shutdown().