pub struct MemoryEncryption { /* private fields */ }Expand description
Memory encryption manager for GPU memory protection.
Implementations§
Source§impl MemoryEncryption
impl MemoryEncryption
Sourcepub fn new(config: EncryptionConfig) -> Self
pub fn new(config: EncryptionConfig) -> Self
Create a new memory encryption manager.
Sourcepub fn encrypt_region(&self, plaintext: &[u8]) -> EncryptedRegion
pub fn encrypt_region(&self, plaintext: &[u8]) -> EncryptedRegion
Encrypt a memory region.
Sourcepub fn decrypt_region(
&self,
region: &EncryptedRegion,
) -> Result<Vec<u8>, String>
pub fn decrypt_region( &self, region: &EncryptedRegion, ) -> Result<Vec<u8>, String>
Decrypt a memory region.
Sourcepub fn rotate_keys(&self)
pub fn rotate_keys(&self)
Rotate encryption keys.
Sourcepub fn needs_rotation(&self) -> bool
pub fn needs_rotation(&self) -> bool
Check if key rotation is needed.
Sourcepub fn stats(&self) -> EncryptionStats
pub fn stats(&self) -> EncryptionStats
Get encryption statistics.
Sourcepub fn current_key_id(&self) -> u64
pub fn current_key_id(&self) -> u64
Get the current key ID.
Sourcepub fn config(&self) -> &EncryptionConfig
pub fn config(&self) -> &EncryptionConfig
Get the configuration.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MemoryEncryption
impl RefUnwindSafe for MemoryEncryption
impl Send for MemoryEncryption
impl Sync for MemoryEncryption
impl Unpin for MemoryEncryption
impl UnwindSafe for MemoryEncryption
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.