Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Tiny AES C
Commits
597569f2
Commit
597569f2
authored
Jan 31, 2019
by
Torfinn Berset
Browse files
Add check for AES key-size option
parent
8f778c3d
Changes
1
Show whitespace changes
Inline
Side-by-side
conanfile.py
View file @
597569f2
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment