Struct coset::CoseSign [−][src]
pub struct CoseSign {
pub protected: Header,
pub unprotected: Header,
pub payload: Option<Vec<u8>>,
pub signatures: Vec<CoseSignature>,
}
Expand description
Signed payload with signatures.
COSE_Sign = [
Headers,
payload : bstr / nil,
signatures : [+ COSE_Signature]
]
Fields
protected: Header
unprotected: Header
payload: Option<Vec<u8>>
signatures: Vec<CoseSignature>
Implementations
Verify the indidated signature value, using verifier
on the signature value and serialized
data (in that order).
Panics
This method will panic if which
is >= self.signatures.len()
.
Trait Implementations
Create an object instance by reading serialized CBOR data from std::io::Read
instance.
Create an object instance from serialized CBOR data in a slice.
Deserialize this value from the given Serde deserializer. Read more
Create an object instance by reading serialized CBOR data from std::io::Read
instance,
expecting an initial tag value. Read more
Create an object instance from serialized CBOR data in a slice, expecting an initial tag value. Read more
Serialize this object to a vector, including initial tag.
Serialize this object to a std::io::Write
instance, including initial tag.
Auto Trait Implementations
impl RefUnwindSafe for CoseSign
impl UnwindSafe for CoseSign
Blanket Implementations
Mutably borrows from an owned value. Read more