Skip to content

feat: add attestation report fetch functionality to device#73

Merged
brayniac merged 8 commits intorust-nvml:mainfrom
jorgeantonio21:ja-attestation-report
Mar 18, 2025
Merged

feat: add attestation report fetch functionality to device#73
brayniac merged 8 commits intorust-nvml:mainfrom
jorgeantonio21:ja-attestation-report

Conversation

@jorgeantonio21
Copy link
Contributor

@jorgeantonio21 jorgeantonio21 commented Mar 4, 2025

Add Confidential Computing GPU Certificate and Attestation Report Support

This PR adds support for two NVML confidential computing functions:

  1. nvmlDeviceGetConfComputeGpuCertificate - Retrieves the GPU certificate for confidential computing
  2. nvmlDeviceGetConfComputeGpuAttestationReport - Fetches the attestation report for confidential computing

Implementation Details

  • Added ConfidentialComputeGpuCertificate struct to represent the certificate data
  • Added ConfidentialComputeGpuAttestationReport struct to represent the attestation report
  • Implemented corresponding methods on the Device struct to access these features
  • Added proper documentation with error conditions and usage information
  • Imported necessary constants from the FFI bindings

Use Cases

These additions enable applications to:

  • Verify the authenticity of NVIDIA GPUs in confidential computing environments
  • Generate attestation reports that can be used in remote attestation workflows
  • Support secure GPU workloads in confidential computing scenarios

@brayniac
Copy link
Contributor

Thanks for opening this. It looks like there are some build failures to address.

@jorgeantonio21
Copy link
Contributor Author

@brayniac address the build fail

@brayniac brayniac merged commit 952e6c1 into rust-nvml:main Mar 18, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants