pub struct CryptSynchronousProxy { /* private fields */ }Implementations§
Source§impl CryptSynchronousProxy
 
impl CryptSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
    &self,
    deadline: MonotonicInstant,
) -> Result<CryptEvent, Error>
 
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CryptEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn create_key(
    &self,
    owner: u64,
    purpose: KeyPurpose,
    ___deadline: MonotonicInstant,
) -> Result<CryptCreateKeyResult, Error>
 
pub fn create_key( &self, owner: u64, purpose: KeyPurpose, ___deadline: MonotonicInstant, ) -> Result<CryptCreateKeyResult, Error>
Creates a new key wrapped with the key identified by wrapping_key_id.  owner identifies
the owner of the key and must be supplied to UnwrapKey.  The crypt service chooses a
wrapping_key_id which must be supplied to UnwrapKey.  The wrapping_key_id has no
meaning to Fxfs.
TODO(https://fxbug.dev/445189846): Add an object_type field to support inline encryption.
Sourcepub fn create_key_with_id(
    &self,
    owner: u64,
    wrapping_key_id: &[u8; 16],
    object_type: ObjectType,
    ___deadline: MonotonicInstant,
) -> Result<CryptCreateKeyWithIdResult, Error>
 
pub fn create_key_with_id( &self, owner: u64, wrapping_key_id: &[u8; 16], object_type: ObjectType, ___deadline: MonotonicInstant, ) -> Result<CryptCreateKeyWithIdResult, Error>
Creates a new key wrapped with the key identified by wrapping_key_id.  owner identifies
the owner of the key and must be supplied to UnwrapKey along with  wrapping_key_id.
The wrapping_key_id has no meaning to Fxfs.
Sourcepub fn unwrap_key(
    &self,
    owner: u64,
    wrapped_key: &WrappedKey,
    ___deadline: MonotonicInstant,
) -> Result<CryptUnwrapKeyResult, Error>
 
pub fn unwrap_key( &self, owner: u64, wrapped_key: &WrappedKey, ___deadline: MonotonicInstant, ) -> Result<CryptUnwrapKeyResult, Error>
Unwraps a key.  owner must be the same as that passed to CreateKey.
This can fail due to permission reasons, but an incorrect key or owner will not fail;
it will just return an unwrapped key that won’t actually decrpyt the data.
ZX_ERR_UNAVAILABLE is returned if the key is known but cannot be unwrapped (e.g. it is
locked).
ZX_ERR_NOT_FOUND is returned if the key is not known. In some cases, implementations are
unable to tell the difference between the two, in which case, ZX_ERR_UNAVAILABLE is
returned.
Trait Implementations§
Source§impl Debug for CryptSynchronousProxy
 
impl Debug for CryptSynchronousProxy
Source§impl From<Channel> for CryptSynchronousProxy
Available on Fuchsia only. 
impl From<Channel> for CryptSynchronousProxy
Source§impl From<CryptSynchronousProxy> for Handle
Available on Fuchsia only. 
impl From<CryptSynchronousProxy> for Handle
Source§fn from(value: CryptSynchronousProxy) -> Self
 
fn from(value: CryptSynchronousProxy) -> Self
Source§impl FromClient for CryptSynchronousProxy
Available on Fuchsia only. 
impl FromClient for CryptSynchronousProxy
Source§type Protocol = CryptMarker
 
type Protocol = CryptMarker
Source§fn from_client(value: ClientEnd<CryptMarker>) -> Self
 
fn from_client(value: ClientEnd<CryptMarker>) -> Self
Source§impl SynchronousProxy for CryptSynchronousProxy
Available on Fuchsia only. 
impl SynchronousProxy for CryptSynchronousProxy
Source§type Proxy = CryptProxy
 
type Proxy = CryptProxy
Source§type Protocol = CryptMarker
 
type Protocol = CryptMarker
Proxy controls.