Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
ef9c5190
Commit
ef9c5190
authored
9 years ago
by
Pierre LALET
Browse files
Options
Downloads
Patches
Plain Diff
Fix ipsec layer to work w/ pycrypto lacking some AES modes
parent
064203bb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/layers/ipsec.py
+12
-10
12 additions, 10 deletions
scapy/layers/ipsec.py
with
12 additions
and
10 deletions
scapy/layers/ipsec.py
+
12
−
10
View file @
ef9c5190
...
...
@@ -370,16 +370,18 @@ if AES:
block_size
=
1
,
iv_size
=
8
,
key_size
=
(
16
+
4
,
24
+
4
,
32
+
4
))
CRYPT_ALGOS
[
'
AES-GCM
'
]
=
CryptAlgo
(
'
AES-GCM
'
,
cipher
=
AES
,
mode
=
AES
.
MODE_GCM
,
iv_size
=
8
,
key_size
=
(
16
+
4
,
24
+
4
,
32
+
4
))
CRYPT_ALGOS
[
'
AES-CCM
'
]
=
CryptAlgo
(
'
AES-CCM
'
,
cipher
=
AES
,
mode
=
AES
.
MODE_CCM
,
iv_size
=
8
,
key_size
=
(
16
+
4
,
24
+
4
,
32
+
4
))
if
hasattr
(
AES
,
"
MODE_GCM
"
):
CRYPT_ALGOS
[
'
AES-GCM
'
]
=
CryptAlgo
(
'
AES-GCM
'
,
cipher
=
AES
,
mode
=
AES
.
MODE_GCM
,
iv_size
=
8
,
key_size
=
(
16
+
4
,
24
+
4
,
32
+
4
))
if
hasattr
(
AES
,
"
MODE_CCM
"
):
CRYPT_ALGOS
[
'
AES-CCM
'
]
=
CryptAlgo
(
'
AES-CCM
'
,
cipher
=
AES
,
mode
=
AES
.
MODE_CCM
,
iv_size
=
8
,
key_size
=
(
16
+
4
,
24
+
4
,
32
+
4
))
if
DES
:
CRYPT_ALGOS
[
'
DES
'
]
=
CryptAlgo
(
'
DES
'
,
cipher
=
DES
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment