mirror of
https://github.com/kokke/tiny-AES-c
synced 2024-11-24 22:39:54 +03:00
Check if at least one encryption mode is selected
This commit is contained in:
parent
7468e2ec12
commit
8f778c3d88
11
conanfile.py
11
conanfile.py
@ -1,4 +1,5 @@
|
|||||||
from conans import ConanFile, CMake
|
from conans import ConanFile, CMake
|
||||||
|
from conans.errors import ConanException
|
||||||
|
|
||||||
|
|
||||||
class TinyAesCConan(ConanFile):
|
class TinyAesCConan(ConanFile):
|
||||||
@ -40,11 +41,15 @@ class TinyAesCConan(ConanFile):
|
|||||||
"AES128": True,
|
"AES128": True,
|
||||||
"AES192": False,
|
"AES192": False,
|
||||||
"AES256": False,
|
"AES256": False,
|
||||||
"CBC": False,
|
"CBC": True,
|
||||||
"ECB": False,
|
"ECB": True,
|
||||||
"CTR": False
|
"CTR": True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def configure(self):
|
||||||
|
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")
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user