Skip to main content

compute_chunk_signature

Function compute_chunk_signature 

Source
fn compute_chunk_signature(
    payload: &[u8],
    signing_key: &[u8],
    prior_sig: &str,
    ts: &DateTime<Utc>,
    region: &str,
) -> Result<String>
Expand description

Calculate the per‑chunk signature (section Defining the Chunk Body of the AWS doc).

  • signing_key is the value you built once from the secret key
  • prior_sig is the seed (first chunk) or the previous chunk’s signature