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
ec588db5
Commit
ec588db5
authored
Oct 12, 2015
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/aes: move AVAES to separate internal header
parent
1e477a97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
15 deletions
+42
-15
aes.c
libavutil/aes.c
+1
-15
aes_internal.h
libavutil/aes_internal.h
+41
-0
No files found.
libavutil/aes.c
View file @
ec588db5
...
...
@@ -22,24 +22,10 @@
#include "common.h"
#include "aes.h"
#include "aes_internal.h"
#include "intreadwrite.h"
#include "timer.h"
typedef
union
{
uint64_t
u64
[
2
];
uint32_t
u32
[
4
];
uint8_t
u8x4
[
4
][
4
];
uint8_t
u8
[
16
];
}
av_aes_block
;
typedef
struct
AVAES
{
// Note: round_key[16] is accessed in the init code, but this only
// overwrites state, which does not matter (see also commit ba554c0).
av_aes_block
round_key
[
15
];
av_aes_block
state
[
2
];
int
rounds
;
}
AVAES
;
const
int
av_aes_size
=
sizeof
(
AVAES
);
struct
AVAES
*
av_aes_alloc
(
void
)
...
...
libavutil/aes_internal.h
0 → 100644
View file @
ec588db5
/*
* copyright (c) 2015 Rodger Combs <rodger.combs@gmail.com>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef AVUTIL_AES_INTERNAL_H
#define AVUTIL_AES_INTERNAL_H
#include <stdint.h>
typedef
union
{
uint64_t
u64
[
2
];
uint32_t
u32
[
4
];
uint8_t
u8x4
[
4
][
4
];
uint8_t
u8
[
16
];
}
av_aes_block
;
typedef
struct
AVAES
{
// Note: round_key[16] is accessed in the init code, but this only
// overwrites state, which does not matter (see also commit ba554c0).
av_aes_block
round_key
[
15
];
av_aes_block
state
[
2
];
int
rounds
;
}
AVAES
;
#endif
/* AVUTIL_AES_INTERNAL_H */
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