Macros#

NVAT_DEVICE_GPU

NVAT_DEVICE_IS_SET

NVAT_DEVICE_NVSWITCH

NVAT_GPU_CLAIMS_VERSION_V2

NVAT_GPU_CLAIMS_VERSION_V3

NVAT_HTTP_DEFAULT_BASE_BACKOFF_MS

NVAT_HTTP_DEFAULT_CONNECTION_TIMEOUT_MS

NVAT_HTTP_DEFAULT_MAX_BACKOFF_MS

NVAT_HTTP_DEFAULT_REQUEST_TIMEOUT_MS

NVAT_HTTP_DEFAULT_RETRY_COUNT

NVAT_RC_ALLOC_FAILED

Indicates a memory allocation failed. Callers should consider this a fatal error and gracefully terminate if possible.

NVAT_RC_BAD_ARGUMENT

Indicates an invalid argument (usually a nullptr) was passed.

NVAT_RC_CERT_CHAIN_VERIFICATION_FAILURE

Indicates a certificate chain verification failure.

NVAT_RC_CERT_FWID_NOT_FOUND

Indicates a given GPU device certificate did not contain a required firmware id.

NVAT_RC_CERT_NOT_FOUND

Indicates an internal error occurred when traversing a certificate chain.

NVAT_RC_FEATURE_NOT_ENABLED

Indicates that the caller attempted to use a feature that was not enabled when the SDK was compiled.

NVAT_RC_GPU_ARCHITECTURE_NOT_SUPPORTED

Indicates the system has at least one GPU connected that does not support attestation.

NVAT_RC_GPU_EVIDENCE_DRIVER_RIM_VERSION_MISMATCH

Indicates the driver RIM version from the RIM file does not match the driver RIM version in the GPU attestation report.

NVAT_RC_GPU_EVIDENCE_FWID_MISMATCH

Indicates the FWID in the GPU evidence does not match the expected FWID.

NVAT_RC_GPU_EVIDENCE_INVALID

Indicates that the GPU evidence is invalid. Could be due to different reasons (for e.g evidence parsing failed, nonce mismatch, etc.)

NVAT_RC_GPU_EVIDENCE_INVALID_SIGNATURE

Indicates a signature verification error occurred when validating GPU evidence.

NVAT_RC_GPU_EVIDENCE_NONCE_MISMATCH

Indicates the nonce in the gpu evidence does not match the nonce in the gpu attestation report.

NVAT_RC_GPU_EVIDENCE_VBIOS_RIM_VERSION_MISMATCH

Indicates the VBios RIM version from the RIM file does not match the VBios RIM version in the GPU attestation report.

NVAT_RC_INTERNAL_ERROR

Indicates a generic failure in the attestation SDK.

NVAT_RC_JSON_SERIALIZATION_ERROR

Indicates an error with JSON serialization/deserialization.

NVAT_RC_LIBXML2_ERROR

Indicates an error when parsing XML.

NVAT_RC_NOT_INITIALIZED

Indicates the SDK was used before nvat_sdk_init() was called.

NVAT_RC_NRAS_ATTESTATION_ERROR

Indicates an error occurred when calling the NVIDIA Remote Attestation Service.

NVAT_RC_NRAS_TOKEN_INVALID

Indicates an error occurred when verifying a token from the NVIDIA Remote Attestation Service.

NVAT_RC_NSCQ_ARCHITECTURE_ERROR

Indicates an error occurred when fetching or interpreting a switch architecture.

NVAT_RC_NSCQ_ATTESTATION_REPORT_ERROR

Indicates an error occurred when fetching the attestation reports of connected switches.

NVAT_RC_NSCQ_CERT_CHAIN_ERROR

Indicates an error occurred when fetching the certificate chains of connected switches.

NVAT_RC_NSCQ_ERROR

Indicates a generic error when invoking NSCQ.

NVAT_RC_NSCQ_INIT_FAILED

Indicates a failure to initialize NSCQ.

NVAT_RC_NSCQ_TNVL_ERROR

Indicates an error fetching the TNVL status of a switch.

NVAT_RC_NSCQ_UUID_ERROR

Indicates an error occurred when fetching the list of connected switch UUIDs.

NVAT_RC_NVML_ERROR

Indicates a generic failure in the NVML library while performing a management operation.

NVAT_RC_NVML_INIT_FAILED

Indicates a failure to initialize the NVIDIA Management Library (NVML).

NVAT_RC_OCSP_INVALID_REQUEST

Indicates the configured OCSP server rejected an OCSP request.

NVAT_RC_OCSP_INVALID_RESPONSE

Indicates a non-recoverable error was encountered when calling the configured OCSP server.

NVAT_RC_OCSP_SERVER_ERROR

Indicates the configured OCSP server responded with a code indicating an internal error.

NVAT_RC_OCSP_STATUS_NOT_GOOD

Indicates an error occurred when the OCSP response status was not good.

NVAT_RC_OK

Indicates success (no error).

NVAT_RC_OVERALL_RESULT_FALSE

Indicates the overall attestation result was false.

NVAT_RC_POLICY_EVALUATION_ERROR

Indicates an error occurred when attempting to apply a relying party policy to a set of claims.

NVAT_RC_RIM_CONNECTION_ERROR

Indicates a connection error occurred when calling the NVIDIA RIM service.

NVAT_RC_RIM_FORBIDDEN

Indicates the client is not authorized to call the NVIDIA RIM service.

NVAT_RC_RIM_INTERNAL_ERROR

Indicates an HTTP internal error occurred when calling the NVIDIA RIM service.

NVAT_RC_RIM_INVALID_SCHEMA

Indicates a schema validation error occurred when validating a RIM.

NVAT_RC_RIM_INVALID_SIGNATURE

Indicates a signature verification error occurred when validating a RIM.

NVAT_RC_RIM_MEASUREMENT_CONFLICT

Indicates a measurement conflict occurred when validating a RIM.

NVAT_RC_RIM_MEASUREMENT_NOT_FOUND

Indicates a measurement was not found in a RIM.

NVAT_RC_RIM_NOT_FOUND

Indicates no RIM was found with a given id.

NVAT_RC_RP_POLICY_MISMATCH

Indicates that a relying party policy rejected some or all of the supplied attestation results.

NVAT_RC_SPDM_FIELD_NOT_FOUND

Indicates a required entry in the SPDM response opaque data was expected but not present.

NVAT_RC_SPDM_MSR_PARSE_ERROR

Indicates an error was encountered while parsing the measurements section of an SPDM transcript.

NVAT_RC_SPDM_OPAQUE_DATA_PARSE_ERROR

Indicates an error was encountered while parsing the opaque data section of an SPDM transcript.

NVAT_RC_SPDM_PARSE_ERROR

Indicates a general error while parsing an SPDM transcript.

NVAT_RC_SPDM_REQUEST_PARSE_ERROR

Indicates an error was encountered while parsing the SPDM request section of an SPDM transcript.

NVAT_RC_SWITCH_EVIDENCE_FWID_MISMATCH

Indicates the FWID in the switch evidence does not match the expected FWID.

NVAT_RC_SWITCH_EVIDENCE_INVALID_SIGNATURE

Indicates a signature verification error occurred when validating switch evidence.

NVAT_RC_SWITCH_EVIDENCE_NONCE_MISMATCH

Indicates the nonce in the switch evidence does not match the nonce in the switch attestation report.

NVAT_RC_SWITCH_EVIDENCE_VBIOS_RIM_VERSION_MISMATCH

Indicates the VBIOS RIM version from the RIM file does not match the VBIOS RIM version in the switch attestation report.

NVAT_RC_UNKNOWN

Indicates an unknown error occurred.

NVAT_RC_XML_INIT_FAILED

Indicates a failure to initialize the required libXML or xmlsec libraries.

NVAT_SWITCH_CLAIMS_VERSION_V3

NVAT_VERIFY_LOCAL

NVAT_VERIFY_REMOTE

NVAT_VERSION_MAJOR

NVAT_VERSION_MINOR

NVAT_VERSION_PATCH

NVAT_VERSION_STRING