Skip to content

Commit 78f9422

Browse files
pattopsjaeckel
authored andcommitted
error on missing dependencies for LTC_PBES and LTC_PKCS_5
1 parent 3a775da commit 78f9422

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/headers/tomcrypt_custom.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,22 @@
585585
#define LTC_PBES
586586
#endif
587587

588+
#if defined(LTC_PBES) && !defined(LTC_PKCS_5)
589+
#error LTC_PBES requires LTC_PKCS_5
590+
#endif
591+
592+
#if defined(LTC_PBES) && !defined(LTC_PKCS_12)
593+
#error LTC_PBES requires LTC_PKCS_12
594+
#endif
595+
596+
#if defined(LTC_PKCS_5) && !defined(LTC_HMAC)
597+
#error LTC_PKCS_5 requires LTC_HMAC
598+
#endif
599+
600+
#if defined(LTC_PKCS_5) && !defined(LTC_HASH_HELPERS)
601+
#error LTC_PKCS_5 requires LTC_HASH_HELPERS
602+
#endif
603+
588604
#if defined(LTC_PELICAN) && !defined(LTC_RIJNDAEL)
589605
#error Pelican-MAC requires LTC_RIJNDAEL
590606
#endif

0 commit comments

Comments
 (0)