Struct fidl_fuchsia_tpm_cr50::PinWeaverProxy
source · pub struct PinWeaverProxy { /* private fields */ }
Implementations§
source§impl PinWeaverProxy
impl PinWeaverProxy
sourcepub fn take_event_stream(&self) -> PinWeaverEventStream
pub fn take_event_stream(&self) -> PinWeaverEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_version(&self) -> QueryResponseFut<u8>
pub fn get_version(&self) -> QueryResponseFut<u8>
Returns the current protocol version.
sourcepub fn reset_tree(
&self,
bits_per_level: u8,
height: u8
) -> QueryResponseFut<PinWeaverResetTreeResult>
pub fn reset_tree( &self, bits_per_level: u8, height: u8 ) -> QueryResponseFut<PinWeaverResetTreeResult>
Creates an empty Merkle tree with bits_per_level
and height
.
On Success
Returns the root_hash
of the empty tree with the given parameters.
sourcepub fn insert_leaf(
&self,
params: &InsertLeafParams
) -> QueryResponseFut<PinWeaverInsertLeafResult>
pub fn insert_leaf( &self, params: &InsertLeafParams ) -> QueryResponseFut<PinWeaverInsertLeafResult>
Inserts a leaf into the Merkle tree.
params
see InsertLeafParams
.
On Success
result
see InsertLeafResponse
.
sourcepub fn remove_leaf(
&self,
params: &RemoveLeafParams
) -> QueryResponseFut<PinWeaverRemoveLeafResult>
pub fn remove_leaf( &self, params: &RemoveLeafParams ) -> QueryResponseFut<PinWeaverRemoveLeafResult>
Removes a leaf from the Merkle tree.
params
see RemoveLeafParams
.
On Success
root_hash
is the updated root hash of the tree.
sourcepub fn try_auth(
&self,
params: &TryAuthParams
) -> QueryResponseFut<PinWeaverTryAuthResult>
pub fn try_auth( &self, params: &TryAuthParams ) -> QueryResponseFut<PinWeaverTryAuthResult>
Attempts to authenticate a leaf of the Merkle tree. On Success: TryAuthSuccess is returned in the union. On Authentication Failure: TryAuthFailed is returned in the union. On Rate Limited Error: TryAuthRateLimited is returned in the union.
sourcepub fn get_log(
&self,
root_hash: &[u8; 32]
) -> QueryResponseFut<PinWeaverGetLogResult>
pub fn get_log( &self, root_hash: &[u8; 32] ) -> QueryResponseFut<PinWeaverGetLogResult>
Retrieves the set of replay logs starting from the specified root hash. If Found: Returns all log entries including and starting from the operation specified by the root hash parameter. If Not Found: Returns all known log entries.
sourcepub fn log_replay(
&self,
params: &LogReplayParams
) -> QueryResponseFut<PinWeaverLogReplayResult>
pub fn log_replay( &self, params: &LogReplayParams ) -> QueryResponseFut<PinWeaverLogReplayResult>
Applies a TryAuth operation replay log by modifying the credential metadata based on the state of the replay log. This will step forward any credential metadata for the appropriate label, whether or not it matches the exact state in history. On Success: Returns the updated leaf hmac and credential metadata. On Failure: Returns an error.
Trait Implementations§
source§impl Clone for PinWeaverProxy
impl Clone for PinWeaverProxy
source§fn clone(&self) -> PinWeaverProxy
fn clone(&self) -> PinWeaverProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PinWeaverProxy
impl Debug for PinWeaverProxy
source§impl PinWeaverProxyInterface for PinWeaverProxy
impl PinWeaverProxyInterface for PinWeaverProxy
type GetVersionResponseFut = QueryResponseFut<u8>
fn get_version(&self) -> Self::GetVersionResponseFut
type ResetTreeResponseFut = QueryResponseFut<Result<[u8; 32], PinWeaverError>>
fn reset_tree( &self, bits_per_level: u8, height: u8 ) -> Self::ResetTreeResponseFut
type InsertLeafResponseFut = QueryResponseFut<Result<InsertLeafResponse, PinWeaverError>>
fn insert_leaf(&self, params: &InsertLeafParams) -> Self::InsertLeafResponseFut
type RemoveLeafResponseFut = QueryResponseFut<Result<[u8; 32], PinWeaverError>>
fn remove_leaf(&self, params: &RemoveLeafParams) -> Self::RemoveLeafResponseFut
type TryAuthResponseFut = QueryResponseFut<Result<TryAuthResponse, PinWeaverError>>
fn try_auth(&self, params: &TryAuthParams) -> Self::TryAuthResponseFut
type GetLogResponseFut = QueryResponseFut<Result<Vec<LogEntry>, PinWeaverError>>
fn get_log(&self, root_hash: &[u8; 32]) -> Self::GetLogResponseFut
type LogReplayResponseFut = QueryResponseFut<Result<LogReplayResponse, PinWeaverError>>
fn log_replay(&self, params: &LogReplayParams) -> Self::LogReplayResponseFut
source§impl Proxy for PinWeaverProxy
impl Proxy for PinWeaverProxy
§type Protocol = PinWeaverMarker
type Protocol = PinWeaverMarker
Proxy
controls.