Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
eade86e2
Commit
eade86e2
authored
Jan 14, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memleak
Originally committed as revision 7462 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2c3427eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
aes.c
libavutil/aes.c
+4
-3
No files found.
libavutil/aes.c
View file @
eade86e2
...
...
@@ -105,7 +105,7 @@ void av_aes_encrypt(AVAES *a){
// this is based on the reference AES code by Paulo Barreto and Vincent Rijmen
AVAES
*
av_aes_init
(
uint8_t
*
key
,
int
keyBits
)
{
AVAES
*
a
=
av_malloc
(
sizeof
(
AVAES
))
;
AVAES
*
a
;
int
i
,
j
,
t
,
rconpointer
=
0
;
uint8_t
tk
[
8
][
4
];
int
KC
=
keyBits
/
32
;
...
...
@@ -131,11 +131,12 @@ AVAES *av_aes_init(uint8_t *key, int keyBits) {
}
}
a
->
rounds
=
ROUNDS
;
if
(
keyBits
!=
128
&&
keyBits
!=
192
&&
keyBits
!=
256
)
return
NULL
;
a
=
av_malloc
(
sizeof
(
AVAES
));
a
->
rounds
=
ROUNDS
;
memcpy
(
tk
,
key
,
KC
*
4
);
for
(
t
=
0
;
t
<
(
ROUNDS
+
1
)
*
4
;
)
{
...
...
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