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
8f778c3d
Commit
8f778c3d
authored
Jan 31, 2019
by
Torfinn Berset
Browse files
Check if at least one encryption mode is selected
parent
7468e2ec
Changes
1
Show whitespace changes
Inline
Side-by-side
conanfile.py
View file @
8f778c3d
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):
...
@@ -40,11 +41,15 @@ class TinyAesCConan(ConanFile):
"AES128"
:
True
,
"AES128"
:
True
,
"AES192"
:
False
,
"AES192"
:
False
,
"AES256"
:
False
,
"AES256"
:
False
,
"CBC"
:
Fals
e
,
"CBC"
:
Tru
e
,
"ECB"
:
Fals
e
,
"ECB"
:
Tru
e
,
"CTR"
:
Fals
e
"CTR"
:
Tru
e
}
}
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
)
...
...
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