Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
cc6b4da8
Commit
cc6b4da8
authored
Jan 16, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless parameter
Originally committed as revision 7544 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
14bc3849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libavutil/aes.c
libavutil/aes.c
+4
-4
No files found.
libavutil/aes.c
View file @
cc6b4da8
...
...
@@ -50,11 +50,11 @@ static inline void addkey(uint64_t state[2], uint64_t round_key[2]){
state
[
1
]
^=
round_key
[
1
];
}
static
void
subshift
(
uint8_t
s0
[
4
],
uint8_t
s1
[
4
],
uint8_t
s2
[
4
],
uint8_t
s3
[
4
],
uint8_t
*
box
){
static
void
subshift
(
uint8_t
s0
[
4
],
uint8_t
s1
[
4
],
uint8_t
s3
[
4
],
uint8_t
*
box
){
int
t
;
s0
[
0
]
=
box
[
s0
[
0
]];
s0
[
4
]
=
box
[
s0
[
4
]];
s0
[
8
]
=
box
[
s0
[
8
]];
s0
[
12
]
=
box
[
s0
[
12
]];
t
=
s1
[
0
];
s1
[
0
]
=
box
[
s1
[
4
]];
s1
[
4
]
=
box
[
s1
[
8
]];
s1
[
8
]
=
box
[
s1
[
12
]];
s1
[
12
]
=
box
[
t
];
t
=
s
2
[
0
];
s
2
[
0
]
=
box
[
s
2
[
8
]];
s
2
[
8
]
=
box
[
t
];
t
=
s
2
[
4
];
s
2
[
4
]
=
box
[
s
2
[
1
2
]];
s
2
[
1
2
]
=
box
[
t
];
t
=
s
0
[
2
];
s
0
[
2
]
=
box
[
s
0
[
10
]];
s
0
[
10
]
=
box
[
t
];
t
=
s
0
[
6
];
s
0
[
6
]
=
box
[
s
0
[
1
4
]];
s
0
[
1
4
]
=
box
[
t
];
t
=
s3
[
0
];
s3
[
0
]
=
box
[
s3
[
12
]];
s3
[
12
]
=
box
[
s3
[
8
]];
s3
[
8
]
=
box
[
s3
[
4
]];
s3
[
4
]
=
box
[
t
];
}
...
...
@@ -96,7 +96,7 @@ static inline void crypt(AVAES *a, int s, uint8_t *sbox, uint32_t *multbl){
mix2
(
a
->
state
,
multbl
,
3
-
s
,
1
+
s
);
}
addkey
(
a
->
state
,
a
->
round_key
[
1
]);
subshift
(
a
->
state
[
0
],
a
->
state
[
0
]
+
3
-
s
,
a
->
state
[
0
]
+
2
,
a
->
state
[
0
]
+
1
+
s
,
sbox
);
subshift
(
a
->
state
[
0
],
a
->
state
[
0
]
+
3
-
s
,
a
->
state
[
0
]
+
1
+
s
,
sbox
);
addkey
(
a
->
state
,
a
->
round_key
[
0
]);
}
...
...
@@ -175,7 +175,7 @@ int av_aes_init(AVAES *a, uint8_t *key, int key_bits, int decrypt) {
if
(
decrypt
){
for
(
i
=
1
;
i
<
rounds
;
i
++
){
subshift
(
a
->
round_key
[
i
][
0
],
a
->
round_key
[
i
][
0
]
+
3
,
a
->
round_key
[
i
][
0
]
+
2
,
a
->
round_key
[
i
][
0
]
+
1
,
sbox
);
subshift
(
a
->
round_key
[
i
][
0
],
a
->
round_key
[
i
][
0
]
+
3
,
a
->
round_key
[
i
][
0
]
+
1
,
sbox
);
mix2
(
a
->
round_key
[
i
],
dec_multbl
,
1
,
3
);
}
}
else
{
...
...
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