security: add support for SHA-3

Requires openssl >= 1.1.1-pre1

Change-Id: I8d91ca30425129694f3b0fc40daa891b58ded065
diff --git a/src/security/detail/openssl-helper.cpp b/src/security/detail/openssl-helper.cpp
index 92ec501..b5c9e5e 100644
--- a/src/security/detail/openssl-helper.cpp
+++ b/src/security/detail/openssl-helper.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2013-2017 Regents of the University of California.
+ * Copyright (c) 2013-2018 Regents of the University of California.
  *
  * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
  *
@@ -43,6 +43,16 @@
   case DigestAlgorithm::BLAKE2S_256:
     return EVP_blake2s256();
 #endif
+#if OPENSSL_VERSION_NUMBER >= 0x10101001L
+  case DigestAlgorithm::SHA3_224:
+    return EVP_sha3_224();
+  case DigestAlgorithm::SHA3_256:
+    return EVP_sha3_256();
+  case DigestAlgorithm::SHA3_384:
+    return EVP_sha3_384();
+  case DigestAlgorithm::SHA3_512:
+    return EVP_sha3_512();
+#endif
   default:
     return nullptr;
   }