diff options
author | Matthew Oliver <matt@oliver.net.au> | 2022-04-19 15:23:30 +1000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2022-06-16 09:52:37 -0700 |
commit | ef31baf3fc064f7c83c7116d8d4374295915ec1c (patch) | |
tree | 8fca1ee78383f7e1a8a999c88cea74649da29774 /doc | |
parent | 93c432342bffce7a87902d7d8e9850eeddbb1a7c (diff) | |
download | swift-ef31baf3fc064f7c83c7116d8d4374295915ec1c.tar.gz |
formpost: Add support for sha256/512 signatures
Sha1 has known to be deprecated for a while so allow the formpost
middleware to use SHA256 and SHA512. Follow the tempurl model and
accept signatures of the form:
<hex-encoded signature>
or
sha1:<base64-encoded signature>
sha256:<base64-encoded signature>
sha512:<base64-encoded signature>
where the base64-encoding can be either standard or URL-safe, and the
trailing '=' chars may be stripped off.
As part of this, pull the signature-parsing out to a new function, and
add detection for hex-encoded sha512 signatures to tempurl.
Change-Id: Iaba3725551bd47d75067a634a7571485b9afa2de
Related-Change: Ia9dd1a91cc3c9c946f5f029cdefc9e66bcf01046
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Closes-Bug: #1794601
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions