ExStorageServiceSdk.S3.StreamingSignature (ex_storage_service_sdk v0.7.1)

Copy Markdown View Source

Bounded SigV4/SigV4a aws-chunked payload chains and checksum trailers.

Summary

Functions

Encodes one raw-byte frame and advances the signature chain. Empty input is skipped.

Lazy fixed-size framing. Upstream chunks must themselves fit the selected chunk bound.

Signs the zero frame and optional checksum trailer, exactly once.

Content-Length is exact when encode/2 rechunks the captured source at the same configured size.

Uses the already signed request's seed; secret key material is excluded from Inspect.

Extracts only the seed signature from a previously generated Authorization header.

Signs bounded canonical trailing headers using the final zero-chunk signature.

Functions

chunk(state, bytes)

Encodes one raw-byte frame and advances the signature chain. Empty input is skipped.

encode(enumerable, opts)

Lazy fixed-size framing. Upstream chunks must themselves fit the selected chunk bound.

encoded_length(decoded_length, opts \\ [])

finish(state)

Signs the zero frame and optional checksum trailer, exactly once.

headers(decoded_length, opts \\ [])

Content-Length is exact when encode/2 rechunks the captured source at the same configured size.

new(opts)

Uses the already signed request's seed; secret key material is excluded from Inspect.

payload_hash(opts)

seed(authorization)

Extracts only the seed signature from a previously generated Authorization header.

sign_trailers(state, headers)

Signs bounded canonical trailing headers using the final zero-chunk signature.