rgw: tempurl signature fixes: also support sha256 and sha512 in formpost
In openstack swift, formpost and tempurl share the same signature
logic, so both now support sha1 / sha256 / sha512. Here are changes
to ceph's formpost logic to match what swift does. Most of the
guts of the signature logic are moved from .h to .cc because
this logic is only useful to the actual formpost code.
Fixes: https://tracker.ceph.com/issues/56564 Signed-off-by: Marcus Watts <mwatts@redhat.com>