Skip to main content

imprint_input

Function imprint_input 

Source
pub fn imprint_input<'s>(
    message: &SignedData<'s>,
    signer: &SignerInfo<'s>,
    index: &HashIndex<'s>,
    content_hash: &'s [u8],
) -> Result<[&'s [u8]; 4]>
Expand description

The message-imprint input of an archive-time-stamp-v3 (EN 319 122-1 §5.5.3), as original ranges in their required order: the content type encoding, content_hash, the signer’s version through signature encodings, and the ATSHashIndexV3 encoding.

content_hash is the hash of the signed content, computed as for the message-digest attribute but with the time-stamp’s imprint algorithm; for detached content the caller supplies it. The returned ranges are a crate::stream::Source for the token’s crate::timestamp::MessageImprint::check_content.

§Errors

A signer that is not one of message’s own signers.