pub struct Fields<'d> {
pub identity: [Element<'d>; 3],
pub signature: [Element<'d>; 2],
/* private fields */
}Expand description
Original fields required by TS101733 §6.5.1’s schema-selected DER recipe. These are the elements already read by the signer kernel, never a new positional parser or caller-created algorithm identifier.
Fields§
§identity: [Element<'d>; 3]Original version, signer identifier and digest algorithm, in that order.
signature: [Element<'d>; 2]Original signature algorithm and signature OCTET STRING.
Implementations§
Source§impl<'d> Fields<'d>
impl<'d> Fields<'d>
Sourcepub fn identity_der(
&self,
parent: &ScopedReader<'d, '_>,
) -> Result<DerFields<'d>>
pub fn identity_der( &self, parent: &ScopedReader<'d, '_>, ) -> Result<DerFields<'d>>
DER version/SID/digestAlgorithm, with original field depth and execution.
Sourcepub fn signature_der(
&self,
parent: &ScopedReader<'d, '_>,
) -> Result<DerFields<'d>>
pub fn signature_der( &self, parent: &ScopedReader<'d, '_>, ) -> Result<DerFields<'d>>
DER signatureAlgorithm/signature; a constructed signature is flattened through the SAME OCTET STRING kernel, without joining its bytes.
Trait Implementations§
Auto Trait Implementations§
impl<'d> !RefUnwindSafe for Fields<'d>
impl<'d> !Send for Fields<'d>
impl<'d> !Sync for Fields<'d>
impl<'d> !UnwindSafe for Fields<'d>
impl<'d> Freeze for Fields<'d>
impl<'d> Unpin for Fields<'d>
impl<'d> UnsafeUnpin for Fields<'d>
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