Struct
ScChallenge
pub struct ScChallenge(pub [u8; 104]);Expand description
A message sent from the server to the device. Includes the intermediate challenge, deadline and the server signature, in the following binary format:
------------------------------------
| challenge | deadline | signature |
| 32 bytes | 8 bytes | 64 bytes |
------------------------------------Tuple Fields
0: [u8; 104]Implementations
impl ScChallenge
impl ScChallenge
pub const SIZE: usize = 104
Trait Implementations
impl Archive for ScChallengewhere
[u8; 104]: Archive,
impl Archive for ScChallengewhere
[u8; 104]: Archive,
const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moretype Archived = ArchivedScChallenge
type Archived = ArchivedScChallenge
The archived representation of this type. Read more
type Resolver = ScChallengeResolver
type Resolver = ScChallengeResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
impl BlockingArchive for ScChallenge
impl BlockingArchive for ScChallenge
type Response = Result<ScProof, ScChallengeError>
type Response = Result<ScProof, ScChallengeError>
response type for this message
impl Debug for ScChallenge
impl Debug for ScChallenge
impl<__D: Fallible + ?Sized> Deserialize<ScChallenge, __D> for Archived<ScChallenge>where
[u8; 104]: Archive,
<[u8; 104] as Archive>::Archived: Deserialize<[u8; 104], __D>,
impl<__D: Fallible + ?Sized> Deserialize<ScChallenge, __D> for Archived<ScChallenge>where
[u8; 104]: Archive,
<[u8; 104] as Archive>::Archived: Deserialize<[u8; 104], __D>,
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<ScChallenge, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<ScChallenge, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl MessageId for ScChallenge
impl MessageId for ScChallenge
const ID: MessageId = 22usize
const ID: MessageId = 22usize
unique message identifier
const SERVER: &'static str = "os/security"
const SERVER: &'static str = "os/security"
target server name
impl<__S: Fallible + ?Sized> Serialize<__S> for ScChallengewhere
[u8; 104]: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for ScChallengewhere
[u8; 104]: Serialize<__S>,
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.