pub struct FrankenKeyPackageTbs {
pub protocol_version: u16,
pub ciphersuite: u16,
pub init_key: VLBytes,
pub leaf_node: FrankenLeafNode,
pub extensions: Vec<FrankenExtension>,
}Available on (32-bit or 64-bit) and (crate features
test-utils) only.Fields§
§protocol_version: u16§ciphersuite: u16§init_key: VLBytes§leaf_node: FrankenLeafNode§extensions: Vec<FrankenExtension>Trait Implementations§
Source§impl Clone for FrankenKeyPackageTbs
impl Clone for FrankenKeyPackageTbs
Source§fn clone(&self) -> FrankenKeyPackageTbs
fn clone(&self) -> FrankenKeyPackageTbs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrankenKeyPackageTbs
impl Debug for FrankenKeyPackageTbs
Source§impl Deserialize for FrankenKeyPackageTbs
impl Deserialize for FrankenKeyPackageTbs
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
Available on crate feature
std only.This function deserializes the
bytes from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl DeserializeBytes for FrankenKeyPackageTbs
impl DeserializeBytes for FrankenKeyPackageTbs
Source§impl PartialEq for FrankenKeyPackageTbs
impl PartialEq for FrankenKeyPackageTbs
Source§impl Serialize for &FrankenKeyPackageTbs
impl Serialize for &FrankenKeyPackageTbs
Source§impl Serialize for FrankenKeyPackageTbs
impl Serialize for FrankenKeyPackageTbs
Source§impl Signable for FrankenKeyPackageTbs
impl Signable for FrankenKeyPackageTbs
Source§type SignedOutput = FrankenKeyPackage
type SignedOutput = FrankenKeyPackage
The type of the object once it’s signed.
Source§fn unsigned_payload(&self) -> Result<Vec<u8>, Error>
fn unsigned_payload(&self) -> Result<Vec<u8>, Error>
Return the unsigned, serialized payload that should be signed.
Source§fn sign(
self,
signer: &impl Signer,
) -> Result<Self::SignedOutput, SignatureError>where
Self::SignedOutput: SignedStruct<Self>,
fn sign(
self,
signer: &impl Signer,
) -> Result<Self::SignedOutput, SignatureError>where
Self::SignedOutput: SignedStruct<Self>,
Sign the payload with the given
private_key. Read moreSource§impl SignedStruct<FrankenKeyPackageTbs> for FrankenKeyPackage
impl SignedStruct<FrankenKeyPackageTbs> for FrankenKeyPackage
Source§fn from_payload(
payload: FrankenKeyPackageTbs,
signature: Signature,
_serialized_payload: Vec<u8>,
) -> Self
fn from_payload( payload: FrankenKeyPackageTbs, signature: Signature, _serialized_payload: Vec<u8>, ) -> Self
Build a signed struct version from the payload struct.
Source§impl Size for &FrankenKeyPackageTbs
impl Size for &FrankenKeyPackageTbs
fn tls_serialized_len(&self) -> usize
Source§impl Size for FrankenKeyPackageTbs
impl Size for FrankenKeyPackageTbs
fn tls_serialized_len(&self) -> usize
impl Eq for FrankenKeyPackageTbs
impl StructuralPartialEq for FrankenKeyPackageTbs
Auto Trait Implementations§
impl Freeze for FrankenKeyPackageTbs
impl RefUnwindSafe for FrankenKeyPackageTbs
impl Send for FrankenKeyPackageTbs
impl Sync for FrankenKeyPackageTbs
impl Unpin for FrankenKeyPackageTbs
impl UnwindSafe for FrankenKeyPackageTbs
Blanket Implementations§
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more