Commit 597569f2 authored by Torfinn Berset's avatar Torfinn Berset
Browse files

Add check for AES key-size option

parent 8f778c3d
...@@ -50,6 +50,9 @@ class TinyAesCConan(ConanFile): ...@@ -50,6 +50,9 @@ class TinyAesCConan(ConanFile):
if not self.options.CBC and not self.options.ECB and not self.options.CTR: 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") 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): def build(self):
cmake = CMake(self) cmake = CMake(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment