|
1 | 1 | #[cfg(target_os = "windows")]
|
2 | 2 | use crate::enum_wrappers::device::DriverModel;
|
3 | 3 | use crate::enum_wrappers::device::OperationMode;
|
4 |
| -use ffi::bindings::{NVML_GPU_ATTESTATION_CERT_CHAIN_SIZE, NVML_GPU_CERT_CHAIN_SIZE}; |
5 | 4 | #[cfg(feature = "serde")]
|
6 | 5 | use serde_derive::{Deserialize, Serialize};
|
7 | 6 |
|
@@ -53,10 +52,12 @@ pub struct ConfidentialComputeGpuCertificate {
|
53 | 52 | pub cert_chain_size: u32,
|
54 | 53 | /// The size of the attestation certificate chain.
|
55 | 54 | pub attestation_cert_chain_size: u32,
|
56 |
| - /// The certificate chain. |
57 |
| - pub cert_chain: [u8; NVML_GPU_CERT_CHAIN_SIZE], |
58 |
| - /// The attestation certificate chain. |
59 |
| - pub attestation_cert_chain: [u8; NVML_GPU_ATTESTATION_CERT_CHAIN_SIZE], |
| 55 | + /// The certificate chain, of size |
| 56 | + /// `ffi::bindings::NVML_GPU_CERT_CHAIN_SIZE` == 4096 bytes. |
| 57 | + pub cert_chain: Vec<u8>, |
| 58 | + /// The attestation certificate chain, of size |
| 59 | + /// `ffi::bindings::NVML_GPU_ATTESTATION_CERT_CHAIN_SIZE` == 5120 bytes. |
| 60 | + pub attestation_cert_chain: Vec<u8>, |
60 | 61 | }
|
61 | 62 |
|
62 | 63 | /// Returned from `Device.gpu_operation_mode()`
|
|
0 commit comments