Struct lpc55::secure_binary::UnsignedSb21File
source · [−]pub struct UnsignedSb21File {
pub parameters: Sb21FileParameters,
pub certificates: Certificates,
pub slot: CertificateSlot,
pub keyblob: Keyblob,
pub commands: Vec<BootCommand>,
}
Fields
parameters: Sb21FileParameters
certificates: Certificates
slot: CertificateSlot
keyblob: Keyblob
commands: Vec<BootCommand>
Implementations
sourceimpl UnsignedSb21File
impl UnsignedSb21File
pub fn try_assemble_from(config: &Config) -> Result<Self>
pub fn header_part(&self) -> Sb21HeaderPart
pub fn total_serialized_length(&self) -> usize
pub fn signed_data_length(&self) -> usize
pub fn boot_tag_offset_blocks(&self) -> usize
pub fn command_part(&self) -> Sb21CommandPart
sourcepub fn sign(&self, signing_key: &SigningKey) -> SignedSb21File
pub fn sign(&self, signing_key: &SigningKey) -> SignedSb21File
TODO: figure out how generic this “key” should be. We want to cover
- on-disk/file keys (cf. RFC 8089: The “file” URI Scheme)
- PKCS#11 keys, so any kind of HSM can be used (cf. RFC 7512: The PKCS #11 URI Scheme)
- possibly other hardware interfaces, such as Tony’s yubihsm crate (perhaps: yubihsm:id=
) cf: https://docs.rs/yubihsm/0.37.0/yubihsm/client/struct.Client.html#method.sign_rsa_pkcs1v15_sha256
Trait Implementations
sourceimpl Clone for UnsignedSb21File
impl Clone for UnsignedSb21File
sourcefn clone(&self) -> UnsignedSb21File
fn clone(&self) -> UnsignedSb21File
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for UnsignedSb21File
impl Send for UnsignedSb21File
impl Sync for UnsignedSb21File
impl Unpin for UnsignedSb21File
impl UnwindSafe for UnsignedSb21File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more