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
57d7b036
Commit
57d7b036
authored
Feb 11, 2007
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make key parameter const
Originally committed as revision 7935 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ecfc4f44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
aes.c
libavutil/aes.c
+1
-1
aes.h
libavutil/aes.h
+1
-1
No files found.
libavutil/aes.c
View file @
57d7b036
...
...
@@ -120,7 +120,7 @@ static void init_multbl2(uint8_t tbl[1024], int c[4], uint8_t *log8, uint8_t *al
}
// this is based on the reference AES code by Paulo Barreto and Vincent Rijmen
int
av_aes_init
(
AVAES
*
a
,
uint8_t
*
key
,
int
key_bits
,
int
decrypt
)
{
int
av_aes_init
(
AVAES
*
a
,
const
uint8_t
*
key
,
int
key_bits
,
int
decrypt
)
{
int
i
,
j
,
t
,
rconpointer
=
0
;
uint8_t
tk
[
8
][
4
];
int
KC
=
key_bits
>>
5
;
...
...
libavutil/aes.h
View file @
57d7b036
...
...
@@ -30,7 +30,7 @@ struct AVAES;
* @param key_bits 128, 192 or 256
* @param decrypt 0 for encryption, 1 for decryption
*/
int
av_aes_init
(
struct
AVAES
*
a
,
uint8_t
*
key
,
int
key_bits
,
int
decrypt
);
int
av_aes_init
(
struct
AVAES
*
a
,
const
uint8_t
*
key
,
int
key_bits
,
int
decrypt
);
/**
* encrypts / decrypts.
...
...
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