Client support for Rekor V2: sigstore-python
Description
The request to the Timestamp Authority defaults to sha512,
but then when verifying, assumes sha256.
|
# The Signer sends a hash of the signature as the messageImprint in a TimeStampReq |
|
# to the Timestamping Service |
|
signature_hash = sha256_digest(bundle.signature).digest |
We should either explicitly request sha256, or implement the example logic to determine the what the correct message digest was. Or, wait for a fix in rfc3163-client's verify() that accepts a message, instead of a digest.
Version
sigstore-python v3.6.2
Using TSA timestamp.sigstage.dev
Client support for Rekor V2: sigstore-python
Description
The request to the Timestamp Authority defaults to sha512,
sigstore-python/sigstore/_internal/timestamp.py
Lines 95 to 97 in 2199d9b
but then when verifying, assumes sha256.
sigstore-python/sigstore/verify/verifier.py
Lines 188 to 190 in 2199d9b
We should either explicitly request sha256, or implement the example logic to determine the what the correct message digest was. Or, wait for a fix in rfc3163-client's
verify()that accepts a message, instead of a digest.Version
sigstore-python v3.6.2
Using TSA timestamp.sigstage.dev