Module: Miscellaneous
Definition in file PKIFCAPIErrors.h.
#include "components.h"
#include "PKIFCommonErrors.h"
Go to the source code of this file.
Defines | |
#define | PKIFCAPI_ERROR_BASE TOOLKIT_CRYPTO_ERROR_BASE + TOOLKIT_ERROR_EXTENSIONS |
#define | PKIFCAPI_ACQUIRE_CONTEXT_FAILED PKIFCAPI_ERROR_BASE + 1 |
A call to CryptAcquireContext failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_GEN_RANDOM_FAILED PKIFCAPI_ERROR_BASE + 2 |
A call to CryptGetRandom failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_INCORRECT_HASH_CONTEXT PKIFCAPI_ERROR_BASE + 3 |
#define | PKIFCAPI_EMPTY_HASH_CONTEXT PKIFCAPI_ERROR_BASE + 4 |
A NULL hash context was presented to a function that performs hash operations. | |
#define | PKIFCAPI_KEY_MATERIAL_NOT_SUPPORTED PKIFCAPI_ERROR_BASE + 5 |
Non-certificate-based key material was presented to a Verify function. | |
#define | PKIFCAPI_FAILED_TO_OPEN_CERT_STORE PKIFCAPI_ERROR_BASE + 6 |
A call to CertOpenStore failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_GET_NAME_FAILED PKIFCAPI_ERROR_BASE + 7 |
A call to CertGetNameString failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_CREATE_HASH_FAILED PKIFCAPI_ERROR_BASE + 8 |
A call to CryptCreateHash failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_MISC_HASH_CALL_FAILED PKIFCAPI_ERROR_BASE + 9 |
A hash-related operation failed. | |
#define | PKIFCAPI_SIGN_FAILED PKIFCAPI_ERROR_BASE + 10 |
A call to CryptSignHash failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_DECRYPT_FAILED PKIFCAPI_ERROR_BASE + 11 |
A call to CryptDecrypt failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_INVALID_HASH_STATE PKIFCAPI_ERROR_BASE + 12 |
Not used. | |
#define | PKIFCAPI_CREATE_CERT_FAILED PKIFCAPI_ERROR_BASE + 13 |
A call to CertCreateCertificateContext failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_KEY_IMPORT_FAILED PKIFCAPI_ERROR_BASE + 14 |
A call to CryptImportPublicKeyInfo failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_VERIFY_FAILED PKIFCAPI_ERROR_BASE + 15 |
Not used. | |
#define | PKIFCAPI_SESSION_KEY_ENCRYPT_FAILED PKIFCAPI_ERROR_BASE + 16 |
A call to CreatePrivateExponentOneKey failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_SET_MODE_FAILED PKIFCAPI_ERROR_BASE + 17 |
A call to CryptSetKeyParam failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_SET_IV_FAILED PKIFCAPI_ERROR_BASE + 18 |
A call to CryptSetKeyParam failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPIKEYID_ERROR_BASE PKIFCAPI_ERROR_BASE + 50 |
#define | PKIFCAPI_GET_USER_KEY_FAILED PKIFCAPIKEYID_ERROR_BASE + 1 |
A call to CryptGetUserKey failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_SET_PASSWORD_FAILED PKIFCAPIKEYID_ERROR_BASE + 2 |
A call to CryptSetProvParam failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_KEY_PROV_INFO_FAILED PKIFCAPIKEYID_ERROR_BASE + 3 |
A call to CertGetCertificateContextProperty failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPI_NO_KEY_ASSOCIATED PKIFCAPIKEYID_ERROR_BASE + 4 |
An attempt was made to use a credential object with which no key has been associated. | |
#define | PKIFCAPING_ERROR_BASE PKIFCAPI_ERROR_BASE + 100 |
#define | PKIFCAPING_OPEN_ALG_PROVIDER_FAILED PKIFCAPING_ERROR_BASE + 1 |
A call to BCryptOpenAlgorithmProvider failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_GET_PROPERTY_FAILED PKIFCAPING_ERROR_BASE + 2 |
A call to BCryptGetProperty failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_SET_PROPERTY_FAILED PKIFCAPING_ERROR_BASE + 3 |
A call to BCryptGetProperty failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_GENERATE_SYM_KEY_FAILED PKIFCAPING_ERROR_BASE + 4 |
A call to BCryptGenerateSymmetricKey failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_KEY_EXPORT_FAILED PKIFCAPING_ERROR_BASE + 5 |
A call to BCryptExportKey failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_ENCRYPT_FAILED PKIFCAPING_ERROR_BASE + 6 |
A call to BCryptEncrypt failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_DECRYPT_FAILED PKIFCAPING_ERROR_BASE + 7 |
A call to BCryptDecrypt failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_ALGORITHM_NOT_SUPPORTED PKIFCAPING_ERROR_BASE + 8 |
A call to BCryptDecrypt failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_OPEN_STORAGE_PROVIDER_FAILED PKIFCAPING_ERROR_BASE + 9 |
A call to NCryptOpenStorageProvider failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_OPEN_KEY_FAILED PKIFCAPING_ERROR_BASE + 10 |
A call to NCryptOpenKey failed. Consult CAPI documentation for further details. | |
#define | PKIFCAPING_KEY_IMPORT_FAILED PKIFCAPING_ERROR_BASE + 11 |
#define | PKIFCAPING_SIGN_HASH_FAILED PKIFCAPING_ERROR_BASE + 12 |
A call to NCryptSignHash failed. Consult CAPI documentation for further details. |
#define PKIFCAPI_ACQUIRE_CONTEXT_FAILED PKIFCAPI_ERROR_BASE + 1 |
A call to CryptAcquireContext failed. Consult CAPI documentation for further details.
Definition at line 17 of file PKIFCAPIErrors.h.
Referenced by _Verify(), CPKIFCAPI2::CryptInit(), CPKIFCAPIRaw::CryptInit(), CPKIFCAPI2::Decrypt(), CPKIFCNGCAPIRaw::GenRandom(), CPKIFCAPIRaw::GenRandom(), GetErrorCodeString(), CPKIFCAPIRaw::HashInit(), and CPKIFCAPI2::Sign().
#define PKIFCAPI_CREATE_CERT_FAILED PKIFCAPI_ERROR_BASE + 13 |
A call to CertCreateCertificateContext failed. Consult CAPI documentation for further details.
Definition at line 54 of file PKIFCAPIErrors.h.
Referenced by _Verify(), CPKIFCAPIRaw::CryptInit(), GetErrorCodeString(), and CPKIFCAPIRaw::SupportsAlgorithm().
#define PKIFCAPI_CREATE_HASH_FAILED PKIFCAPI_ERROR_BASE + 8 |
A call to CryptCreateHash failed. Consult CAPI documentation for further details.
Definition at line 39 of file PKIFCAPIErrors.h.
Referenced by CreateHashObjectFromData(), GetErrorCodeString(), CPKIFCNGCAPIRaw::HashInit(), CPKIFCAPIRaw::HashInit(), CPKIFCNGCAPIRaw::HashUpdate(), CPKIFCNGCAPIRaw::HMACFinal(), CPKIFCNGCAPIRaw::HMACInit(), CPKIFCNGCAPIRaw::HMACUpdate(), and CPKIFCAPI2::Sign().
#define PKIFCAPI_DECRYPT_FAILED PKIFCAPI_ERROR_BASE + 11 |
A call to CryptDecrypt failed. Consult CAPI documentation for further details.
Definition at line 48 of file PKIFCAPIErrors.h.
Referenced by CPKIFCAPI2::Decrypt(), and GetErrorCodeString().
#define PKIFCAPI_EMPTY_HASH_CONTEXT PKIFCAPI_ERROR_BASE + 4 |
A NULL hash context was presented to a function that performs hash operations.
Definition at line 27 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString(), CPKIFCNGCAPIRaw::HashFinal(), CPKIFCAPIRaw::HashFinal(), CPKIFCNGCAPIRaw::HashUpdate(), CPKIFCAPIRaw::HashUpdate(), CPKIFCNGCAPIRaw::HMACFinal(), and CPKIFCNGCAPIRaw::HMACUpdate().
#define PKIFCAPI_ERROR_BASE TOOLKIT_CRYPTO_ERROR_BASE + TOOLKIT_ERROR_EXTENSIONS |
Definition at line 15 of file PKIFCAPIErrors.h.
#define PKIFCAPI_FAILED_TO_OPEN_CERT_STORE PKIFCAPI_ERROR_BASE + 6 |
A call to CertOpenStore failed. Consult CAPI documentation for further details.
Definition at line 33 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString(), CPKIFCNGCAPI::GetKeyList(), CPKIFCAPI2::GetKeyList(), CPKIFCNGCAPI::MakeKeyID(), and CPKIFCAPI2::MakeKeyID().
#define PKIFCAPI_GEN_RANDOM_FAILED PKIFCAPI_ERROR_BASE + 2 |
A call to CryptGetRandom failed. Consult CAPI documentation for further details.
Definition at line 20 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPIRaw::GenRandom(), CPKIFCAPIRaw::GenRandom(), and GetErrorCodeString().
#define PKIFCAPI_GET_NAME_FAILED PKIFCAPI_ERROR_BASE + 7 |
A call to CertGetNameString failed. Consult CAPI documentation for further details.
Definition at line 36 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString().
#define PKIFCAPI_GET_USER_KEY_FAILED PKIFCAPIKEYID_ERROR_BASE + 1 |
A call to CryptGetUserKey failed. Consult CAPI documentation for further details.
Definition at line 74 of file PKIFCAPIErrors.h.
Referenced by CPKIFCAPI2::CryptInit(), CPKIFCAPI2::Decrypt(), GetErrorCodeString(), and CPKIFCAPI2::Sign().
#define PKIFCAPI_INCORRECT_HASH_CONTEXT PKIFCAPI_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 24 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString(), CPKIFCNGCAPIRaw::HashFinal(), CPKIFCAPIRaw::HashFinal(), CPKIFCNGCAPIRaw::HashUpdate(), CPKIFCAPIRaw::HashUpdate(), CPKIFCNGCAPIRaw::HMACFinal(), and CPKIFCNGCAPIRaw::HMACUpdate().
#define PKIFCAPI_INVALID_HASH_STATE PKIFCAPI_ERROR_BASE + 12 |
#define PKIFCAPI_KEY_IMPORT_FAILED PKIFCAPI_ERROR_BASE + 14 |
A call to CryptImportPublicKeyInfo failed. Consult CAPI documentation for further details.
Definition at line 57 of file PKIFCAPIErrors.h.
Referenced by _Verify(), CPKIFCAPIRaw::CryptInit(), GetErrorCodeString(), and VerifyCounterSignatures().
#define PKIFCAPI_KEY_MATERIAL_NOT_SUPPORTED PKIFCAPI_ERROR_BASE + 5 |
Non-certificate-based key material was presented to a Verify function.
Definition at line 30 of file PKIFCAPIErrors.h.
Referenced by _Verify(), and GetErrorCodeString().
#define PKIFCAPI_KEY_PROV_INFO_FAILED PKIFCAPIKEYID_ERROR_BASE + 3 |
A call to CertGetCertificateContextProperty failed. Consult CAPI documentation for further details.
Definition at line 80 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString().
#define PKIFCAPI_MISC_HASH_CALL_FAILED PKIFCAPI_ERROR_BASE + 9 |
A hash-related operation failed.
Definition at line 42 of file PKIFCAPIErrors.h.
Referenced by CreateHashObjectFromData(), GetErrorCodeString(), CPKIFCNGCAPIRaw::HashFinal(), CPKIFCAPIRaw::HashFinal(), CPKIFCAPIRaw::HashUpdate(), and CPKIFCAPI2::Sign().
#define PKIFCAPI_NO_KEY_ASSOCIATED PKIFCAPIKEYID_ERROR_BASE + 4 |
An attempt was made to use a credential object with which no key has been associated.
Definition at line 83 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString().
#define PKIFCAPI_SESSION_KEY_ENCRYPT_FAILED PKIFCAPI_ERROR_BASE + 16 |
A call to CreatePrivateExponentOneKey failed. Consult CAPI documentation for further details.
Definition at line 63 of file PKIFCAPIErrors.h.
Referenced by CPKIFCAPIRaw::CryptInit(), and GetErrorCodeString().
#define PKIFCAPI_SET_IV_FAILED PKIFCAPI_ERROR_BASE + 18 |
A call to CryptSetKeyParam failed. Consult CAPI documentation for further details.
Definition at line 69 of file PKIFCAPIErrors.h.
Referenced by CPKIFCAPIRaw::CryptInit(), and GetErrorCodeString().
#define PKIFCAPI_SET_MODE_FAILED PKIFCAPI_ERROR_BASE + 17 |
A call to CryptSetKeyParam failed. Consult CAPI documentation for further details.
Definition at line 66 of file PKIFCAPIErrors.h.
Referenced by CPKIFCAPIRaw::CryptInit(), and GetErrorCodeString().
#define PKIFCAPI_SET_PASSWORD_FAILED PKIFCAPIKEYID_ERROR_BASE + 2 |
A call to CryptSetProvParam failed. Consult CAPI documentation for further details.
Definition at line 77 of file PKIFCAPIErrors.h.
Referenced by CPKIFCAPI2::CryptInit(), CPKIFCAPI2::Decrypt(), GetErrorCodeString(), CPKIFCNGCAPI::Sign(), and CPKIFCAPI2::Sign().
#define PKIFCAPI_SIGN_FAILED PKIFCAPI_ERROR_BASE + 10 |
A call to CryptSignHash failed. Consult CAPI documentation for further details.
Definition at line 45 of file PKIFCAPIErrors.h.
Referenced by GetErrorCodeString(), and CPKIFCAPI2::Sign().
#define PKIFCAPI_VERIFY_FAILED PKIFCAPI_ERROR_BASE + 15 |
#define PKIFCAPIKEYID_ERROR_BASE PKIFCAPI_ERROR_BASE + 50 |
Definition at line 71 of file PKIFCAPIErrors.h.
#define PKIFCAPING_ALGORITHM_NOT_SUPPORTED PKIFCAPING_ERROR_BASE + 8 |
A call to BCryptDecrypt failed. Consult CAPI documentation for further details.
Definition at line 109 of file PKIFCAPIErrors.h.
#define PKIFCAPING_DECRYPT_FAILED PKIFCAPING_ERROR_BASE + 7 |
A call to BCryptDecrypt failed. Consult CAPI documentation for further details.
Definition at line 106 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPI::Decrypt().
#define PKIFCAPING_ENCRYPT_FAILED PKIFCAPING_ERROR_BASE + 6 |
A call to BCryptEncrypt failed. Consult CAPI documentation for further details.
Definition at line 103 of file PKIFCAPIErrors.h.
#define PKIFCAPING_ERROR_BASE PKIFCAPI_ERROR_BASE + 100 |
Definition at line 85 of file PKIFCAPIErrors.h.
#define PKIFCAPING_GENERATE_SYM_KEY_FAILED PKIFCAPING_ERROR_BASE + 4 |
A call to BCryptGenerateSymmetricKey failed. Consult CAPI documentation for further details.
Definition at line 97 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPIRaw::CryptInit().
#define PKIFCAPING_GET_PROPERTY_FAILED PKIFCAPING_ERROR_BASE + 2 |
A call to BCryptGetProperty failed. Consult CAPI documentation for further details.
Definition at line 91 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPIRaw::CryptInit().
#define PKIFCAPING_KEY_EXPORT_FAILED PKIFCAPING_ERROR_BASE + 5 |
A call to BCryptExportKey failed. Consult CAPI documentation for further details.
Definition at line 100 of file PKIFCAPIErrors.h.
#define PKIFCAPING_KEY_IMPORT_FAILED PKIFCAPING_ERROR_BASE + 11 |
A failure occurred while importing a public key into CNG for verification. Consult the error string and CAPI NG documentation for detauils
Definition at line 119 of file PKIFCAPIErrors.h.
Referenced by CPKIFBCryptPublicKey::Initialize(), and VerifyCounterSignatures().
#define PKIFCAPING_OPEN_ALG_PROVIDER_FAILED PKIFCAPING_ERROR_BASE + 1 |
A call to BCryptOpenAlgorithmProvider failed. Consult CAPI documentation for further details.
Definition at line 88 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPIRaw::CryptInit().
#define PKIFCAPING_OPEN_KEY_FAILED PKIFCAPING_ERROR_BASE + 10 |
A call to NCryptOpenKey failed. Consult CAPI documentation for further details.
Definition at line 115 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPI::Decrypt(), and CPKIFCNGCAPI::Sign().
#define PKIFCAPING_OPEN_STORAGE_PROVIDER_FAILED PKIFCAPING_ERROR_BASE + 9 |
A call to NCryptOpenStorageProvider failed. Consult CAPI documentation for further details.
Definition at line 112 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPI::Decrypt(), and CPKIFCNGCAPI::Sign().
#define PKIFCAPING_SET_PROPERTY_FAILED PKIFCAPING_ERROR_BASE + 3 |
A call to BCryptGetProperty failed. Consult CAPI documentation for further details.
Definition at line 94 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPIRaw::CryptInit().
#define PKIFCAPING_SIGN_HASH_FAILED PKIFCAPING_ERROR_BASE + 12 |
A call to NCryptSignHash failed. Consult CAPI documentation for further details.
Definition at line 122 of file PKIFCAPIErrors.h.
Referenced by CPKIFCNGCAPI::Sign().