Struct cryptographic_message_syntax::asn1::rfc3161::TstInfo
source · pub struct TstInfo {
pub version: Integer,
pub policy: TsaPolicyId,
pub message_imprint: MessageImprint,
pub serial_number: Integer,
pub gen_time: GeneralizedTime,
pub accuracy: Option<Accuracy>,
pub ordering: Option<bool>,
pub nonce: Option<Integer>,
pub tsa: Option<GeneralName>,
pub extensions: Option<Extensions>,
}
Expand description
Time stamp token info.
TSTInfo ::= SEQUENCE {
version INTEGER { v1(1) },
policy TSAPolicyId,
messageImprint MessageImprint,
-- MUST have the same value as the similar field in
-- TimeStampReq
serialNumber INTEGER,
-- Time-Stamping users MUST be ready to accommodate integers
-- up to 160 bits.
genTime GeneralizedTime,
accuracy Accuracy OPTIONAL,
ordering BOOLEAN DEFAULT FALSE,
nonce INTEGER OPTIONAL,
-- MUST be present if the similar field was present
-- in TimeStampReq. In that case it MUST have the same value.
tsa [0] GeneralName OPTIONAL,
extensions [1] IMPLICIT Extensions OPTIONAL }
Fields§
§version: Integer
§policy: TsaPolicyId
§message_imprint: MessageImprint
§serial_number: Integer
§gen_time: GeneralizedTime
§accuracy: Option<Accuracy>
§ordering: Option<bool>
§nonce: Option<Integer>
§tsa: Option<GeneralName>
§extensions: Option<Extensions>
Implementations§
source§impl TstInfo
impl TstInfo
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S> ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
source§impl PartialEq for TstInfo
impl PartialEq for TstInfo
impl Eq for TstInfo
impl StructuralEq for TstInfo
impl StructuralPartialEq for TstInfo
Auto Trait Implementations§
impl RefUnwindSafe for TstInfo
impl Send for TstInfo
impl Sync for TstInfo
impl Unpin for TstInfo
impl UnwindSafe for TstInfo
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.