Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
62b4a6f1
Commit
62b4a6f1
authored
9 years ago
by
Martin Storsjö
Browse files
Options
Downloads
Patches
Plain Diff
rtmpcrypt: Provide the xtea keys in little endian format for consistency
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
588b6215
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/rtmpcrypt.c
+33
-33
33 additions, 33 deletions
libavformat/rtmpcrypt.c
with
33 additions
and
33 deletions
libavformat/rtmpcrypt.c
+
33
−
33
View file @
62b4a6f1
...
...
@@ -50,38 +50,38 @@ typedef struct RTMPEContext {
}
RTMPEContext
;
static
const
uint8_t
rtmpe8_keys
[
16
][
16
]
=
{
{
0xb
f
,
0xf0
,
0x
34
,
0xb2
,
0x11
,
0xd9
,
0x
08
,
0x1f
,
0x
cc
,
0xdf
,
0x
b7
,
0x
95
,
0x7
4
,
0x8d
,
0x
e7
,
0x32
},
{
0x
08
,
0x6a
,
0x5e
,
0x
b
6
,
0x
17
,
0x
43
,
0x09
,
0x
0e
,
0x
6e
,
0xf0
,
0x5a
,
0x
b8
,
0x
f
e
,
0x
5a
,
0x39
,
0xe
2
},
{
0x
7b
,
0x10
,
0x95
,
0x
6f
,
0x7
6
,
0x
ce
,
0x05
,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3
4
,
0x4
7
,
0x
03
,
0x3
b
,
0x71
,
0x
63
,
0x58
},
{
0x
dc
,
0x75
,
0x
20
,
0xb8
,
0x
ee
,
0x
1
f
,
0x
5
f
,
0x
a7
,
0x
e
8
,
0x
68
,
0x
42
,
0x
d
8
,
0x
cc
,
0x44
,
0x2a
,
0x
a7
},
{
0x
9e
,
0x6e
,
0xcf
,
0x
07
,
0x
25
,
0x
7b
,
0x6d
,
0x
a1
,
0x
6c
,
0xae
,
0x
a7
,
0x9
f
,
0x2
9
,
0x56
,
0x2
f
,
0xd
9
},
{
0xe
4
,
0xea
,
0xb1
,
0x
f
e
,
0xe
1
,
0x3c
,
0x8c
,
0x8c
,
0x
a7
,
0x6
4
,
0x00
,
0x4
e
,
0x
2
a
,
0x
7c
,
0x38
,
0x
6
a
},
{
0x
27
,
0x94
,
0x3a
,
0x
8
9
,
0x
a
2
,
0x
13
,
0x30
,
0x
cc
,
0x
5b
,
0x38
,
0x
06
,
0x
f1
,
0x2
7
,
0xf9
,
0x2
9
,
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment