security: Add ValidityPeriod abstraction

Change-Id: I6fbe2541a2a8bb90513441f0ef8297d0c8007455
Refs: #2868
diff --git a/src/encoding/tlv.hpp b/src/encoding/tlv.hpp
index 78564d8..1c4851a 100644
--- a/src/encoding/tlv.hpp
+++ b/src/encoding/tlv.hpp
@@ -99,6 +99,16 @@
   SignatureSha256WithEcdsa = 3
 };
 
+/** @brief TLV codes for SignatureInfo features
+ *  @sa docs/tutorials/certificate-format.rst
+ */
+enum {
+  // SignatureInfo TLVs
+  ValidityPeriod = 253,
+  NotBefore = 254,
+  NotAfter = 255
+};
+
 /** @brief indicates a possible value of ContentType field
  */
 enum ContentTypeValue {