Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
dc24a336
Commit
dc24a336
authored
Jul 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SRTP: fix flags mask and document enumerations
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
d7e4901b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
libs/srtp/srtp.h
libs/srtp/srtp.h
+16
-16
No files found.
libs/srtp/srtp.h
View file @
dc24a336
...
...
@@ -24,36 +24,36 @@ typedef struct srtp_session_t srtp_session_t;
enum
{
SRTP_UNENCRYPTED
=
0x1
,
// do not encrypt SRTP packets
SRTCP_UNENCRYPTED
=
0x2
,
// do not encrypt SRTCP packets
SRTP_UNAUTHENTICATED
=
0x4
,
// authenticate only SRTCP packets
SRTP_UNENCRYPTED
=
0x1
,
//
<
do not encrypt SRTP packets
SRTCP_UNENCRYPTED
=
0x2
,
//
<
do not encrypt SRTCP packets
SRTP_UNAUTHENTICATED
=
0x4
,
//
<
authenticate only SRTCP packets
SRTP_RCC_MODE1
=
0x10
,
// use Roll-over-Counter Carry mode 1
SRTP_RCC_MODE2
=
0x20
,
// use Roll-over-Counter Carry mode 2
SRTP_RCC_MODE3
=
0x30
,
// use Roll-over-Counter Carry mode 3 (insecure)
SRTP_RCC_MODE1
=
0x10
,
//
<
use Roll-over-Counter Carry mode 1
SRTP_RCC_MODE2
=
0x20
,
//
<
use Roll-over-Counter Carry mode 2
SRTP_RCC_MODE3
=
0x30
,
//
<
use Roll-over-Counter Carry mode 3 (insecure)
SRTP_FLAGS_MASK
=
0x3
8
SRTP_FLAGS_MASK
=
0x3
7
//< mask for valid flags
};
/* SRTP encryption algorithms (ciphers); same values as MIKEY */
/*
*
SRTP encryption algorithms (ciphers); same values as MIKEY */
enum
{
SRTP_ENCR_NULL
=
0
,
SRTP_ENCR_AES_CM
=
1
,
SRTP_ENCR_AES_F8
=
2
// not implemented
SRTP_ENCR_NULL
=
0
,
//< no encryption
SRTP_ENCR_AES_CM
=
1
,
//< AES counter mode
SRTP_ENCR_AES_F8
=
2
,
//< AES F8 mode (not implemented)
};
/* SRTP authenticaton algorithms; same values as MIKEY */
/*
*
SRTP authenticaton algorithms; same values as MIKEY */
enum
{
SRTP_AUTH_NULL
=
0
,
SRTP_AUTH_HMAC_SHA1
=
1
SRTP_AUTH_NULL
=
0
,
//< no authentication code
SRTP_AUTH_HMAC_SHA1
=
1
,
//< HMAC-SHA1
};
/* SRTP pseudo random function; same values as MIKEY */
/*
*
SRTP pseudo random function; same values as MIKEY */
enum
{
SRTP_PRF_AES_CM
=
0
SRTP_PRF_AES_CM
=
0
,
//< AES counter mode
};
# ifdef __cplusplus
...
...
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