Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-ece
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-ece
Commits
750b640c
Commit
750b640c
authored
Sep 05, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some assertions to decrypt_record().
parent
25a79768
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
rfc8188.c
src/rfc8188.c
+2
-0
No files found.
src/rfc8188.c
View file @
750b640c
...
@@ -202,11 +202,13 @@ decrypt_record(EVP_CIPHER_CTX *ctx, unsigned char *ciphertext,
...
@@ -202,11 +202,13 @@ decrypt_record(EVP_CIPHER_CTX *ctx, unsigned char *ciphertext,
AN
(
ctx
);
AN
(
ctx
);
AN
(
ciphertext
);
AN
(
ciphertext
);
AN
(
tag
);
AN
(
cek
);
AN
(
cek
);
AN
(
nonce
);
AN
(
nonce
);
AN
(
plaintext
);
AN
(
plaintext
);
AN
(
last
);
AN
(
last
);
AN
(
errmsg
);
AN
(
errmsg
);
assert
(
ciphertext_len
>=
0
);
if
(
EVP_CipherInit_ex
(
ctx
,
EVP_aes_128_gcm
(),
NULL
,
cek
,
nonce
,
-
1
)
if
(
EVP_CipherInit_ex
(
ctx
,
EVP_aes_128_gcm
(),
NULL
,
cek
,
nonce
,
-
1
)
!=
1
)
{
!=
1
)
{
...
...
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