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
62b4a6f1
Commit
62b4a6f1
authored
Nov 11, 2015
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmpcrypt: Provide the xtea keys in little endian format for consistency
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
588b6215
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
33 deletions
+33
-33
rtmpcrypt.c
libavformat/rtmpcrypt.c
+33
-33
No files found.
libavformat/rtmpcrypt.c
View file @
62b4a6f1
...
...
@@ -50,38 +50,38 @@ typedef struct RTMPEContext {
}
RTMPEContext
;
static
const
uint8_t
rtmpe8_keys
[
16
][
16
]
=
{
{
0xb
f
,
0xf0
,
0x34
,
0xb2
,
0x11
,
0xd9
,
0x08
,
0x1f
,
0x
cc
,
0xdf
,
0xb7
,
0x95
,
0x74
,
0x8d
,
0xe7
,
0x32
},
{
0x
08
,
0x6a
,
0x5e
,
0xb6
,
0x17
,
0x43
,
0x09
,
0x0e
,
0x
6e
,
0xf0
,
0x5a
,
0xb8
,
0xfe
,
0x5a
,
0x39
,
0xe2
},
{
0x
7b
,
0x10
,
0x95
,
0x6f
,
0x76
,
0xce
,
0x05
,
0x21
,
0x
23
,
0x88
,
0xa7
,
0x3a
,
0x44
,
0x01
,
0x49
,
0xa1
},
{
0x
a9
,
0x43
,
0xf3
,
0x17
,
0xeb
,
0xf1
,
0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
0xcc
,
0x
5b
,
0x38
,
0x06
,
0xf1
,
0x27
,
0xf9
,
0x29
,
0xa8
}
};
static
const
uint8_t
rtmpe9_keys
[
16
][
24
]
=
{
...
...
@@ -185,7 +185,7 @@ static void rtmpe8_sig(const uint8_t *in, uint8_t *out, int key_id)
{
struct
AVXTEA
ctx
;
av_xtea_init
(
&
ctx
,
rtmpe8_keys
[
key_id
]);
av_xtea_
le_
init
(
&
ctx
,
rtmpe8_keys
[
key_id
]);
av_xtea_le_crypt
(
&
ctx
,
out
,
in
,
1
,
NULL
,
0
);
}
...
...
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