From 59adbe1d0ac4082c377c3f79e1a94a7c46397484 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 18 Jul 2022 11:30:25 +0200 Subject: [PATCH] Add SHA3 hash algorithms to HashAlgorithm class --- .../src/main/java/org/pgpainless/algorithm/HashAlgorithm.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgpainless-core/src/main/java/org/pgpainless/algorithm/HashAlgorithm.java b/pgpainless-core/src/main/java/org/pgpainless/algorithm/HashAlgorithm.java index 12feb678..0b9368bb 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/algorithm/HashAlgorithm.java +++ b/pgpainless-core/src/main/java/org/pgpainless/algorithm/HashAlgorithm.java @@ -27,6 +27,8 @@ public enum HashAlgorithm { SHA384 (HashAlgorithmTags.SHA384, "SHA384"), SHA512 (HashAlgorithmTags.SHA512, "SHA512"), SHA224 (HashAlgorithmTags.SHA224, "SHA224"), + SHA3_256 (12, "SHA3-256"), + SHA3_512 (14, "SHA3-512"), ; private static final Map ID_MAP = new HashMap<>();