security: add support for SHA-3
Requires openssl >= 1.1.1-pre1
Change-Id: I8d91ca30425129694f3b0fc40daa891b58ded065
diff --git a/src/security/security-common.cpp b/src/security/security-common.cpp
index 5e5fa31..1d0d4f2 100644
--- a/src/security/security-common.cpp
+++ b/src/security/security-common.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).
*
@@ -89,6 +89,14 @@
return os << "BLAKE2b-512";
case DigestAlgorithm::BLAKE2S_256:
return os << "BLAKE2s-256";
+ case DigestAlgorithm::SHA3_224:
+ return os << "SHA3-224";
+ case DigestAlgorithm::SHA3_256:
+ return os << "SHA3-256";
+ case DigestAlgorithm::SHA3_384:
+ return os << "SHA3-384";
+ case DigestAlgorithm::SHA3_512:
+ return os << "SHA3-512";
}
return os << static_cast<int>(algorithm);
}