summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorfinn Berset <torfinn@bloom-life.com>2019-01-31 14:28:09 +0100
committerTorfinn Berset <torfinn@bloom-life.com>2019-01-31 14:28:09 +0100
commit597569f2edd8be54ddfc075b8446ba6881899277 (patch)
treea2237f39bbfa0d64148c9f8a5b651563d5cc27e7
parentCheck if at least one encryption mode is selected (diff)
downloadtiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.tar
tiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.tar.gz
tiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.tar.bz2
tiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.tar.lz
tiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.tar.xz
tiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.tar.zst
tiny-AES-c-597569f2edd8be54ddfc075b8446ba6881899277.zip
-rw-r--r--conanfile.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/conanfile.py b/conanfile.py
index 2baa361..8a75744 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -50,6 +50,9 @@ class TinyAesCConan(ConanFile):
if not self.options.CBC and not self.options.ECB and not self.options.CTR:
raise ConanException("Need to at least specify one of CBC, ECB or CTR modes")
+ if not self.options.AES128 and not self.options.AES192 and not self.options.AES256:
+ raise ConanException("Need to at least specify one of AES{128, 192, 256} modes")
+
def build(self):
cmake = CMake(self)