security: support more SHA2 hash functions

Change-Id: Ibbe4f02054ae9028899e8408c331ae8e704df9b8
diff --git a/src/security/detail/openssl-helper.cpp b/src/security/detail/openssl-helper.cpp
index 865bc36..83e0ec9 100644
--- a/src/security/detail/openssl-helper.cpp
+++ b/src/security/detail/openssl-helper.cpp
@@ -29,8 +29,14 @@
 digestAlgorithmToEvpMd(DigestAlgorithm algo)
 {
   switch (algo) {
+  case DigestAlgorithm::SHA224:
+    return EVP_sha224();
   case DigestAlgorithm::SHA256:
     return EVP_sha256();
+  case DigestAlgorithm::SHA384:
+    return EVP_sha384();
+  case DigestAlgorithm::SHA512:
+    return EVP_sha512();
   default:
     return nullptr;
   }