diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2021-12-20 09:47:51 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2021-12-29 16:27:14 +0100 |
commit | 0e23277b852edf1317df4aebaaabe5a404a6ad05 (patch) | |
tree | b3e866392e6c9ed491b0b6f4dff9d2900b2d6a7f | |
parent | 65cd6fc513741cf9c1187c9750b226251ade8f20 (diff) |
pks: Add support for SHA-384 hash algorithm.
-rw-r--r-- | net/src/pks.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/src/pks.rs b/net/src/pks.rs index b9a18453..f0ce311a 100644 --- a/net/src/pks.rs +++ b/net/src/pks.rs @@ -217,6 +217,7 @@ impl Signer for PksClient { let content_type = match hash_algo { HashAlgorithm::SHA1 => "application/vnd.pks.digest.sha1", HashAlgorithm::SHA256 => "application/vnd.pks.digest.sha256", + HashAlgorithm::SHA384 => "application/vnd.pks.digest.sha384", HashAlgorithm::SHA512 => "application/vnd.pks.digest.sha512", _ => "application/octet-stream", }; |