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
e8fc9313
Commit
e8fc9313
authored
Jan 14, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stealing reimars XOR_BLOCK
Originally committed as revision 7464 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
d43a2975
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
aes.c
libavutil/aes.c
+3
-4
No files found.
libavutil/aes.c
View file @
e8fc9313
...
...
@@ -40,10 +40,9 @@ static uint8_t alog8[512];
static
uint8_t
sbox
[
256
];
static
uint8_t
inv_sbox
[
256
];
static
inline
void
addkey
(
uint32_t
state
[
4
],
uint32_t
round_key
[
4
]){
int
i
;
for
(
i
=
0
;
i
<
4
;
i
++
)
state
[
i
]
^=
round_key
[
i
];
//partial memory stall? FIXME benchmark
static
inline
void
addkey
(
uint64_t
state
[
2
],
uint64_t
round_key
[
2
]){
state
[
0
]
^=
round_key
[
0
];
state
[
1
]
^=
round_key
[
1
];
}
#define SUBSHIFT0(s, box) s[0]=box[s[ 0]]; s[ 4]=box[s[ 4]]; s[ 8]=box[s[ 8]]; s[12]=box[s[12]];
...
...
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