aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dlies
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-03-05 12:26:39 -0500
committerJack Lloyd <[email protected]>2016-03-06 04:22:09 -0500
commit028a5126095e4eecd4dd213218f241a990fcbddd (patch)
treebca7266cde5b0089055fca33dee15933259c94d8 /src/lib/pubkey/dlies
parenta3ce0bd1e9e018ea69741c4380bf065cccedec93 (diff)
Add option --module-policy
A module policy is a file specifying three types of modules: ones which are required, ones which are prohibited, and ones which should be used if otherwise available (this is mostly for platform specific modules). Finally there are whatever modules which exist in the library of which the policy makes no mention. These will be included if an explicit dependency of some other module pulls them in (so there is no reason to mention base, utils, ... in the file) but skipped otherwise. For example policy 'sane' does not mention 'utils' or 'twofish' either way. Since utils is a dependency of other modules which are included, but Twofish does not. However unlike an explicitly prohibited module, not mentioned can still be requested as part of the build (here with --enable-module=twofish) Also fixes some test bugs noticed by compiling in different build configs. DLIES test didn't check that the KDF and MAC existed. Adds a typedef for MessageAuthenticationCode because typing it twice in a single line in the DLIES test made me think it's way too long. :) Also fix some fuzzer build problems. Due to a copy and paste bug the PKCS certificate (it was not). Inspired by GH #439
Diffstat (limited to 'src/lib/pubkey/dlies')
-rw-r--r--src/lib/pubkey/dlies/dlies.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/pubkey/dlies/dlies.cpp b/src/lib/pubkey/dlies/dlies.cpp
index 86cd51e19..ba890ac3d 100644
--- a/src/lib/pubkey/dlies/dlies.cpp
+++ b/src/lib/pubkey/dlies/dlies.cpp
@@ -21,6 +21,8 @@ DLIES_Encryptor::DLIES_Encryptor(const PK_Key_Agreement_Key& key,
m_mac(mac_obj),
m_mac_keylen(mac_kl)
{
+ BOTAN_ASSERT_NONNULL(kdf_obj);
+ BOTAN_ASSERT_NONNULL(mac_obj);
m_my_key = key.public_value();
}