The current implementation of ObjectTempUrl only supports SHA-1, but the temporary url middleware in swift can support SHA-256 and SHA-512.
I think the best way to add support for different digests would be by introducing a new parameter to ObjectTempUrl, but this would be a breaking change.