Struct webpki::signed_data::OwnedSignedData
source · pub(crate) struct OwnedSignedData {
pub(crate) data: Vec<u8>,
pub(crate) algorithm: Vec<u8>,
pub(crate) signature: Vec<u8>,
}
Expand description
X.509 certificates and related items that are signed are almost always encoded in the format “tbs||signatureAlgorithm||signature”. This structure captures this pattern as an owned data type.
Fields§
§data: Vec<u8>
The signed data. This would be tbsCertificate
in the case of an X.509
certificate, tbsResponseData
in the case of an OCSP response, tbsCertList
in the case of a CRL, and the data nested in the digitally-signed
construct for
TLS 1.2 signed data.
algorithm: Vec<u8>
The value of the AlgorithmIdentifier
. This would be
signatureAlgorithm
in the case of an X.509 certificate, OCSP
response or CRL. This would have to be synthesized in the case of TLS 1.2
signed data, since TLS does not identify algorithms by ASN.1 OIDs.
signature: Vec<u8>
The value of the signature. This would be signature
in an X.509
certificate, OCSP response or CRL. This would be the value of
DigitallySigned.signature
for TLS 1.2 signed data.
Implementations§
source§impl OwnedSignedData
impl OwnedSignedData
sourcepub(crate) fn borrow(&self) -> SignedData<'_>
pub(crate) fn borrow(&self) -> SignedData<'_>
Return a borrowed SignedData
from the owned representation.
Trait Implementations§
source§impl Clone for OwnedSignedData
impl Clone for OwnedSignedData
source§fn clone(&self) -> OwnedSignedData
fn clone(&self) -> OwnedSignedData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for OwnedSignedData
impl RefUnwindSafe for OwnedSignedData
impl Send for OwnedSignedData
impl Sync for OwnedSignedData
impl Unpin for OwnedSignedData
impl UnwindSafe for OwnedSignedData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)