From 0e23277b852edf1317df4aebaaabe5a404a6ad05 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Mon, 20 Dec 2021 09:47:51 +0100 Subject: pks: Add support for SHA-384 hash algorithm. --- net/src/pks.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'net') 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", }; -- cgit v1.2.3