Browse Source

add empty der_decode_pkcs8_flexi.c

Steffen Jaeckel 7 years ago
parent
commit
0af0033390
3 changed files with 25 additions and 0 deletions
  1. 5 0
      src/headers/tomcrypt_custom.h
  2. 3 0
      src/misc/crypt/crypt.c
  3. 17 0
      src/pk/asn1/pkcs8/pkcs8_decode_flexi.c

+ 5 - 0
src/headers/tomcrypt_custom.h

@@ -463,6 +463,7 @@
 
 #define LTC_PKCS_1
 #define LTC_PKCS_5
+#define LTC_PKCS_8
 #define LTC_PKCS_12
 
 /* Include ASN.1 DER (required by DSA/RSA) */
@@ -562,6 +563,10 @@
    #define LTC_PKCS_1
 #endif
 
+#if defined(LTC_MRSA) || defined(LTC_MECC)
+   #define LTC_PKCS_8
+#endif
+
 #if defined(LTC_PELICAN) && !defined(LTC_RIJNDAEL)
    #error Pelican-MAC requires LTC_RIJNDAEL
 #endif

+ 3 - 0
src/misc/crypt/crypt.c

@@ -436,6 +436,9 @@ const char *crypt_build_settings =
 #if defined(LTC_PKCS_5)
     " PKCS#5 "
 #endif
+#if defined(LTC_PKCS_8)
+    " PKCS#8 "
+#endif
 #if defined(LTC_PKCS_12)
     " PKCS#12 "
 #endif

+ 17 - 0
src/pk/asn1/pkcs8/pkcs8_decode_flexi.c

@@ -0,0 +1,17 @@
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis
+ *
+ * LibTomCrypt is a library that provides various cryptographic
+ * algorithms in a highly modular and flexible manner.
+ *
+ * The library is free for all purposes without any express
+ * guarantee it works.
+ */
+#include "tomcrypt_private.h"
+
+#ifdef LTC_PKCS_8
+
+#endif
+
+/* ref:         $Format:%D$ */
+/* git commit:  $Format:%H$ */
+/* commit time: $Format:%ai$ */