draft-ietf-avtcore-srtp-aes-gcm-16.txt   draft-ietf-avtcore-srtp-aes-gcm-17.txt 
Network Working Group D. McGrew Network Working Group D. McGrew
Internet Draft Cisco Systems, Inc. Internet Draft Cisco Systems, Inc.
Intended Status: Standards Track K. Igoe Intended Status: Standards Track K. Igoe
Expires: December 07, 2015 National Security Agency Expires: January 01, 2016 National Security Agency
June 05, 2015 June 30, 2015
AES-GCM Authenticated Encryption in Secure RTP (SRTP) AES-GCM Authenticated Encryption in Secure RTP (SRTP)
draft-ietf-avtcore-srtp-aes-gcm-16 draft-ietf-avtcore-srtp-aes-gcm-17
Status of this Memo Status of this Memo
This Internet-Draft is submitted to IETF in full conformance with the This Internet-Draft is submitted to IETF in full conformance with the
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet- working documents as Internet-Drafts. The list of current Internet-
Drafts is at http://datatracker.ietf.org/drafts/current. Drafts is at http://datatracker.ietf.org/drafts/current.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on December 07, 2015. This Internet-Draft will expire on January 01, 2016.
Copyright Notice Copyright Notice
Copyright (c) 2015 IETF Trust and the persons identified as the Copyright (c) 2015 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of (http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents publication of this document. Please review these documents
skipping to change at page 2, line 16 skipping to change at page 2, line 16
This document defines how the AES-GCM Authenticated Encryption with This document defines how the AES-GCM Authenticated Encryption with
Associated Data family of algorithms can be used to provide Associated Data family of algorithms can be used to provide
confidentiality and data authentication in the SRTP protocol. confidentiality and data authentication in the SRTP protocol.
Table of Contents Table of Contents
1. Introduction.....................................................4 1. Introduction.....................................................4
2. Conventions Used In This Document................................5 2. Conventions Used In This Document................................5
3. Overview of the SRTP/SRTCP AEAD security Architecture............5 3. Overview of the SRTP/SRTCP AEAD security Architecture............5
4. Terminology......................................................6 4. Terminology......................................................5
5. Generic AEAD Processing..........................................6 5. Generic AEAD Processing..........................................6
5.1. Types of Input Data.........................................6 5.1. Types of Input Data.........................................6
5.2. AEAD Invocation Inputs and Outputs..........................6 5.2. AEAD Invocation Inputs and Outputs..........................6
5.2.1. Encrypt Mode...........................................6 5.2.1. Encrypt Mode...........................................6
5.2.2. Decrypt Mode...........................................7 5.2.2. Decrypt Mode...........................................7
5.3. Handling of AEAD Authentication.............................7 5.3. Handling of AEAD Authentication.............................7
6. Counter Mode Encryption..........................................7 6. Counter Mode Encryption..........................................7
7. Unneeded SRTP/SRTCP Fields.......................................8 7. Unneeded SRTP/SRTCP Fields.......................................8
7.1. SRTP/SRTCP Authentication Field.............................8 7.1. SRTP/SRTCP Authentication Field.............................8
7.2. RTP Padding.................................................9 7.2. RTP Padding.................................................9
skipping to change at page 2, line 41 skipping to change at page 2, line 41
8.4. Prevention of SRTP IV Reuse................................12 8.4. Prevention of SRTP IV Reuse................................12
9. AES-GCM Processing of SRTCP Compound Packets....................13 9. AES-GCM Processing of SRTCP Compound Packets....................13
9.1. SRTCP IV formation for AES-GCM.............................13 9.1. SRTCP IV formation for AES-GCM.............................13
9.2. Data Types in Encrypted SRTCP Compound Packets.............14 9.2. Data Types in Encrypted SRTCP Compound Packets.............14
9.3. Data Types in Unencrypted SRTCP Compound Packets...........15 9.3. Data Types in Unencrypted SRTCP Compound Packets...........15
9.4. Prevention of SRTCP IV Reuse...............................16 9.4. Prevention of SRTCP IV Reuse...............................16
10. Constraints on AEAD for SRTP and SRTCP.........................16 10. Constraints on AEAD for SRTP and SRTCP.........................16
11. Key Derivation Functions.......................................17 11. Key Derivation Functions.......................................17
12. Summary of AES-GCM in SRTP/SRTCP...............................17 12. Summary of AES-GCM in SRTP/SRTCP...............................17
13. Security Considerations........................................18 13. Security Considerations........................................18
13.1. Handling of Security Critical Parameters..................19 13.1. Handling of Security Critical Parameters..................18
13.2. Size of the Authentication Tag............................19 13.2. Size of the Authentication Tag............................19
14. IANA Considerations............................................21 14. IANA Considerations............................................19
14.1. SDES......................................................21 14.1. SDES......................................................19
14.2. DTLS-SRTP.................................................21 14.2. DTLS-SRTP.................................................19
14.3. MIKEY.....................................................22 14.3. MIKEY.....................................................20
15. Parameters for use with MIKEY..................................23 15. Parameters for use with MIKEY..................................21
16. Some RTP Test Vectors..........................................23 16. Some RTP Test Vectors..........................................21
16.1. AEAD_AES_128_GCM_8........................................24 16.1. SRTP AEAD_AES_128_GCM.....................................22
16.1.1. AEAD_AES_128_GCM_8 Encryption........................24 16.1.1. SRTP AEAD_AES_128_GCM Encryption.....................22
16.1.2. AEAD_AES_128_GCM_8 Decryption........................26 16.1.2. SRTP AEAD_AES_128_GCM Decryption.....................25
16.1.3. AEAD_AES_128_GCM_8 Authentication Tagging............27 16.1.3. SRTP AEAD_AES_128_GCM Authentication Tagging.........27
16.1.4. AEAD_AES_128_GCM_8 Tag Verification..................28 16.1.4. SRTP AEAD_AES_128_GCM Tag Verification...............29
16.2. AEAD_AES_128_GCM..........................................29 16.2. SRTP AEAD_AES_256_GCM.....................................29
16.2.1. AEAD_AES_128_GCM Encryption..........................29 16.2.1. SRTP AEAD_AES_256_GCM Encryption.....................30
16.2.2. AEAD_AES_128_GCM Decryption..........................31 16.2.2. SRTP AEAD_AES_256_GCM Decryption.....................32
16.2.3. AEAD_AES_128_GCM Authentication Tagging..............32 16.2.3. SRTP AEAD_AES_256_GCM Authentication Tagging.........34
16.2.4. AEAD_AES_128_GCM Tag Verification....................33 16.2.4. SRTP AEAD_AES_256_GCM Tag Verification...............36
16.3. AEAD_AES_256_GCM..........................................34 17. RTCP Test Vectors..............................................37
16.3.1. AEAD_AES_256_GCM Encryption..........................34 17.1. SRTCP AEAD_AES_128_GCM Encrypt and Tag....................38
16.3.2. AEAD_AES_256_GCM Decryption..........................36 17.2. SRTCP AEAD_AES_256_GCM Verify and Decryption..............39
16.3.3. AEAD_AES_256_GCM Authentication Tagging..............37 17.3. SRTCP AEAD_AES_128_GCM Tag Only...........................41
16.3.4. AEAD_AES_256_GCM Tag Verification....................38 17.4. SRTCP AEAD_AES_256_GCM Tag Verification...................42
17. RTCP Test Vectors..............................................39 18. Acknowledgements...............................................43
17.1. AEAD_AES_128_GCM_8 Encrypt and Tag........................40 19. References.....................................................44
17.2. AEAD_AES_256_GCM Verify and Decryption....................42 19.1. Normative References......................................44
17.3. AEAD_AES_128_GCM Tag Only.................................44 19.2. Informative References....................................44
17.4. AEAD_AES_256_GCM Tag Verification.........................45
18. Acknowledgements...............................................46
19. References.....................................................47
19.1. Normative References......................................47
19.2. Informative References....................................47
1. Introduction 1. Introduction
The Secure Real-time Transport Protocol (SRTP) [RFC3711] is a profile The Secure Real-time Transport Protocol (SRTP) [RFC3711] is a profile
of the Real-time Transport Protocol (RTP) [RFC3550], which can of the Real-time Transport Protocol (RTP) [RFC3550], which can
provide confidentiality, message authentication, and replay provide confidentiality, message authentication, and replay
protection to the RTP traffic and to the control traffic for RTP, the protection to the RTP traffic and to the control traffic for RTP, the
Real-time Transport Control Protocol (RTCP). It is important to note Real-time Transport Control Protocol (RTCP). It is important to note
that the outgoing SRTP packets from a single endpoint may be that the outgoing SRTP packets from a single endpoint may be
originating from several independent data sources. originating from several independent data sources.
skipping to change at page 4, line 33 skipping to change at page 4, line 33
The Advanced Encryption Standard (AES) is a block cipher that The Advanced Encryption Standard (AES) is a block cipher that
provides a high level of security, and can accept different key provides a high level of security, and can accept different key
sizes. AES Galois/Counter Mode (AES-GCM) [GCM] is a family of AEAD sizes. AES Galois/Counter Mode (AES-GCM) [GCM] is a family of AEAD
algorithms based upon AES. This specification makes use of the AES algorithms based upon AES. This specification makes use of the AES
versions that use 128-bit and 256-bit keys, which we call AES-128 and versions that use 128-bit and 256-bit keys, which we call AES-128 and
AES-256, respectively. AES-256, respectively.
Any AEAD algorithm provides an intrinsic authentication tag. In many Any AEAD algorithm provides an intrinsic authentication tag. In many
applications the authentication tag is truncated to less than full applications the authentication tag is truncated to less than full
length. In this specification the authentication tag MUST be either length. In this specification the authentication tag MUST NOT be
8 octets or 16 octets in length, and the 8 byte authentication tag truncated. The authentications tags MUST be a full 16 octets in
can only be used with AES-128. Thus when used in SRTP, GCM will have length. When used in SRTP/SRTCP AES-GCM will have two
three configurations: configurations:
AEAD_AES_128_GCM_8 AES-128 with an 8 byte authentication tag
AEAD_AES_128_GCM AES-128 with a 16 byte authentication tag AEAD_AES_128_GCM AES-128 with a 16 byte authentication tag
AEAD_AES_256_GCM AES-256 with a 16 byte authentication tag AEAD_AES_256_GCM AES-256 with a 16 byte authentication tag
The key size and the length of the authentication tag are set when The key size is set when the session is initiated and SHOULD NOT be
the session is initiated and SHOULD NOT be altered. altered.
The Galois/Counter Mode of operation (GCM) is an AEAD mode of The Galois/Counter Mode of operation (GCM) is an AEAD mode of
operation for block ciphers. GCM use counter mode to encrypt the operation for block ciphers. GCM use counter mode to encrypt the
data, an operation that can be efficiently pipelined. Further, GCM data, an operation that can be efficiently pipelined. Further, GCM
authentication uses operations that are particularly well suited to authentication uses operations that are particularly well suited to
efficient implementation in hardware, making it especially appealing efficient implementation in hardware, making it especially appealing
for high-speed implementations, or for implementations in an for high-speed implementations, or for implementations in an
efficient and compact circuit. efficient and compact circuit.
In summary, this document defines how to use an AEAD algorithm, In summary, this document defines how to use an AEAD algorithm,
skipping to change at page 11, line 43 skipping to change at page 11, line 43
Figure 3: Structure of an SRTP packet after Authenticated Figure 3: Structure of an SRTP packet after Authenticated
Encryption Encryption
8.3. Handling Header Extensions 8.3. Handling Header Extensions
RTP header extensions were first defined in RFC 3550. RFC 6904 RTP header extensions were first defined in RFC 3550. RFC 6904
[RFC6904] describes how these header extensions are to be encrypted [RFC6904] describes how these header extensions are to be encrypted
in SRTP. in SRTP.
When RFC 6904 is in use, a separate keystream is generated to encrypt When RFC 6904 is in use, a separate keystream is generated to encrypt
selected RTP header extension elements. For the AEAD_AES_128_GCM and selected RTP header extension elements. For the AEAD_AES_128_GCM
AEAD_AES_128_GCM_8 algorithms, this keystream MUST be generated in algorithm, this keystream MUST be generated in the manner defined in
the manner defined in [RFC6904] using the AES-CM transform. For the [RFC6904] using the AES-CM transform. For the AEAD_AES_256_GCM
AEAD_AES_256_GCM algorithm, the keystream MUST be generated in the algorithm, the keystream MUST be generated in the manner defined for
manner defined for the AES_256_CM transform. The originator must the AES_256_CM transform. The originator must perform any required
perform any required header extension encryption before the AEAD header extension encryption before the AEAD algorithm is invoked.
algorithm is invoked.
As with the other fields contained within the RTP header, both As with the other fields contained within the RTP header, both
encrypted and unencrypted header extensions are to be treated by the encrypted and unencrypted header extensions are to be treated by the
AEAD algorithm as Associated Data (AD). Thus the AEAD algorithm does AEAD algorithm as Associated Data (AD). Thus the AEAD algorithm does
not provide any additional privacy for the header extensions, but not provide any additional privacy for the header extensions, but
does provide integrity and authentication. does provide integrity and authentication.
8.4. Prevention of SRTP IV Reuse 8.4. Prevention of SRTP IV Reuse
In order to prevent IV reuse, we must ensure that the (ROC,SEQ,SSRC) In order to prevent IV reuse, we must ensure that the (ROC,SEQ,SSRC)
skipping to change at page 17, line 10 skipping to change at page 17, line 10
N_MAX maximum nonce (IV) MUST be 12 octets. N_MAX maximum nonce (IV) MUST be 12 octets.
length length
P_MAX maximum plaintext GCM: MUST be <= 2^36-32 octets. P_MAX maximum plaintext GCM: MUST be <= 2^36-32 octets.
length per invocation length per invocation
C_MAX maximum ciphertext GCM: MUST be <= 2^36-16 octets. C_MAX maximum ciphertext GCM: MUST be <= 2^36-16 octets.
length per invocation length per invocation
For sake of clarity we specify two additional parameters: For sake of clarity we specify two additional parameters:
AEAD Authentication Tag Length MUST be 8 or 16 octets, AEAD Authentication Tag Length MUST be 16 octets,
Maximum number of invocations SRTP: MUST be at most 2^48, Maximum number of invocations SRTP: MUST be at most 2^48,
for a given instantiation SRTCP: MUST be at most 2^31. for a given instantiation SRTCP: MUST be at most 2^31.
Block Counter size GCM: MUST be 32 bits. Block Counter size GCM: MUST be 32 bits.
The reader is reminded that the ciphertext is longer than the The reader is reminded that the ciphertext is longer than the
plaintext by exactly the length of the AEAD authentication tag. plaintext by exactly the length of the AEAD authentication tag.
11. Key Derivation Functions 11. Key Derivation Functions
A Key Derivation Function (KDF) is used to derive all of the required A Key Derivation Function (KDF) is used to derive all of the required
encryption and authentication keys from a secret value shared by the encryption and authentication keys from a secret value shared by the
endpoints. Both AEAD_AES_128_GCM and AEAD_AES_128_GCM_8 algorithms endpoints. AEAD_AES_128_GCM algorithm MUST use the (128-bit)
MUST use the (128-bit) AES_CM_PRF Key Derivation Function described AES_CM_PRF Key Derivation Function described in [RFC3711].
in [RFC3711]. AEAD_AES_256_GCM MUST use the AES_256_CM_PRF Key AEAD_AES_256_GCM MUST use the AES_256_CM_PRF Key Derivation Function
Derivation Function described in [RFC6188]. described in [RFC6188].
12. Summary of AES-GCM in SRTP/SRTCP 12. Summary of AES-GCM in SRTP/SRTCP
For convenience, much of the information about the use of AES-GCM For convenience, much of the information about the use of AES-GCM
family of algorithms in SRTP is collected in the tables contained in family of algorithms in SRTP is collected in the tables contained in
this section. this section.
The AES-GCM family of AEAD algorithms is built around the AES block The AES-GCM family of AEAD algorithms is built around the AES block
cipher algorithm. AES-GCM uses AES counter mode for encryption and cipher algorithm. AES-GCM uses AES counter mode for encryption and
Galois Message Authentication Code (GMAC) for authentication. A Galois Message Authentication Code (GMAC) for authentication. A
detailed description of the AES-GCM family can be found in detailed description of the AES-GCM family can be found in
[RFC5116]. The following members of the AES-GCM family may be used [RFC5116]. The following members of the AES-GCM family may be used
with SRTP/SRTCP: with SRTP/SRTCP:
Name Key Size AEAD Tag Size Reference Name Key Size AEAD Tag Size Reference
================================================================ ================================================================
AEAD_AES_128_GCM_8 16 octets 8 octets [RFC5282]
AEAD_AES_128_GCM 16 octets 16 octets [RFC5116] AEAD_AES_128_GCM 16 octets 16 octets [RFC5116]
AEAD_AES_256_GCM 32 octets 16 octets [RFC5116] AEAD_AES_256_GCM 32 octets 16 octets [RFC5116]
Table 1: AES-GCM algorithms for SRTP/SRTCP Table 1: AES-GCM algorithms for SRTP/SRTCP
Any implementation of AES-GCM SRTP MUST support both AEAD_AES_128_GCM Any implementation of AES-GCM SRTP MUST support both AEAD_AES_128_GCM
and AEAD_AES_256_GCM (the versions with 16 octet AEAD authentication and AEAD_AES_256_GCM. Below we summarize parameters associated with
tags), and it MAY support AEAD_AES_128_GCM_8. Below we summarize these two GCM algorithms:
parameters associated with these three GCM algorithms:
+--------------------------------+------------------------------+
| Parameter | Value |
+--------------------------------+------------------------------+
| Master key length | 128 bits |
| Master salt length | 96 bits |
| Key Derivation Function | AES_CM_PRF [RFC3711] |
| Maximum key lifetime (SRTP) | 2^48 packets |
| Maximum key lifetime (SRTCP) | 2^31 packets |
| Cipher (for SRTP and SRTCP) | AEAD_AES_128_GCM_8 |
| AEAD authentication tag length | 64 bits |
+--------------------------------+------------------------------+
Table 2: The AEAD_AES_128_GCM_8 Crypto Suite
+--------------------------------+------------------------------+ +--------------------------------+------------------------------+
| Parameter | Value | | Parameter | Value |
+--------------------------------+------------------------------+ +--------------------------------+------------------------------+
| Master key length | 128 bits | | Master key length | 128 bits |
| Master salt length | 96 bits | | Master salt length | 96 bits |
| Key Derivation Function | AES_CM_PRF [RFC3711] | | Key Derivation Function | AES_CM_PRF [RFC3711] |
| Maximum key lifetime (SRTP) | 2^48 packets | | Maximum key lifetime (SRTP) | 2^48 packets |
| Maximum key lifetime (SRTCP) | 2^31 packets | | Maximum key lifetime (SRTCP) | 2^31 packets |
| Cipher (for SRTP and SRTCP) | AEAD_AES_128_GCM | | Cipher (for SRTP and SRTCP) | AEAD_AES_128_GCM |
skipping to change at page 19, line 36 skipping to change at page 19, line 21
SRTCP index and the 48-bit SRTP packet index (ROC||SEQ) MUST be SRTCP index and the 48-bit SRTP packet index (ROC||SEQ) MUST be
saved in order to prevent IV reuse. saved in order to prevent IV reuse.
- Processing MUST cease if either the 31-bit SRTCP index or the - Processing MUST cease if either the 31-bit SRTCP index or the
48-bit packet index ROC||SEQ cycles back to its initial value. 48-bit packet index ROC||SEQ cycles back to its initial value.
Processing MUST NOT resume until a new SRTP/SRTCP session has Processing MUST NOT resume until a new SRTP/SRTCP session has
been established using a new SRTP master key. Ideally, a rekey been established using a new SRTP master key. Ideally, a rekey
should be done well before any of these counters cycle. should be done well before any of these counters cycle.
13.2. Size of the Authentication Tag 13.2. Size of the Authentication Tag
We require that the AEAD authentication tag must be at least 8 We require that the AEAD authentication tag to 16 octets, effectively
octets, significantly reducing the probability of an adversary eliminating the risk of an adversary successfully introducing
successfully introducing fraudulent data. The goal of an fraudulent data. Though other protocols may allow the use of
authentication tag is to reduce the probability of a successful truncated authentication tags, the consenus of the authors and the
forgery occurring anywhere in the network we are attempting to working group is that risks associated with using truncated AES-GCM
defend. There are three relevant factors to consider: tags are deemed to be too high to allow the use of truncated
authentication tags in STRP/SRTCP.
- How low should one make the probability that an adversary can
succeed in introducing a forgery into the network we are trying
to protect?
- How many packets can an adversary hijack in an attempt to
introduce a forgery?
- What is the size of the authentication tag that will be used?
Neither of the attacks considered below is viable with a 16-octet tag
because the amount of data required to run the attack is prohibitive
in the 16-octet case. In the following discussions we shall assume
that the tag size is 8 octets = 64 bits.
Niels Ferguson of Microsoft discovered an attack which allows the
recovery of the secret hash subkey H, whose compromise would allow an
adversary to modify packets in transit and have the recipient accept
these modified packets as being valid (see [FERG]. This attack
requires the careful modification of a large number of packets while
in transit, using the recipient as an oracle as to whether or not the
recipient has accepted a given packet as being valid. Note that
silently discarding invalid packets blocks this attack.
NIST recommends mitigating this attack by limiting the number of
packets sent to at most 2^37 before the keys must be changed. This
reduces the probability of the attacker having enough data to
successfully run the Ferguson attack to about 2^-26.
Note that because GCM encrypts plain text by XORing it to a
keystream, flipping a bit of cipher will flip the corresponding bit
of plain text. But any change to either the cipher or the additional
authenticated data will change the authentication tag in a way that
depends upon the secret hash subkey H.
The second type of attack is a brute force attack. There is nothing
clever about this attack; we merely keep bombarding the recipient
with modified packets until by chance we find one that has a valid
GMAC. A priori there is a probability p=2^-64 that a given modified
packet being accepted as valid. Ferguson has a technique to reduce
this to a mere p=2^-52, albeit at the cost of severely reducing the
types of modifications that can be made.
If we use p=2^-52, a mere N=2^26 forgeries are needed until the
probability of success approaches the 2^-26 value achieved by the
Ferguson attack. Using the more realistic value of p=2^-64 raises
this to N=2^38 forgery attempts.
Sadly frequently changing the key has no effect on the brute force
attack. However the damage done by this attack is far less than in
the Ferguson attack. The brute force attack only results in a single
forged packet being accepted while the Ferguson attack allows the
attacker to easily manufacture as many authentically tagged forged
messages as they want once H has been recovered.
The above discussions lead to the following requirements:
- This document follows the NIST SP 800-38D and requires that when
an 8-octet authentication tag is being used the key must be
changed before 2^37 packets have been sent. Since SRTCP already
imposes a limit of 2^31 packets, the 2^37 limit only affects
SRTP.
- In applications where the successful introduction even a of
single forged packet into the network being protected could have
serious consequences, 8-octet tags SHOULD NOT be used.
14. IANA Considerations 14. IANA Considerations
14.1. SDES 14.1. SDES
SDP Security Descriptions [RFC4568] defines SRTP "crypto suites". A SDP Security Descriptions [RFC4568] defines SRTP "crypto suites". A
crypto suite corresponds to a particular AEAD algorithm in SRTP. In crypto suite corresponds to a particular AEAD algorithm in SRTP. In
order to allow Security Descriptions to signal the use of the order to allow Security Descriptions to signal the use of the
algorithms defined in this document, IANA will register the following algorithms defined in this document, IANA will register the following
crypto suites into the "SRTP Crypto Suite Registrations" subregistry crypto suites into the "SRTP Crypto Suite Registrations" subregistry
of the "Session Description Protocol (SDP) Security Descriptions" of the "Session Description Protocol (SDP) Security Descriptions"
registry. registry.
srtp-crypto-suite-ext = "AEAD_AES_128_GCM_8" / srtp-crypto-suite-ext = "AEAD_AES_128_GCM" /
"AEAD_AES_128_GCM" /
"AEAD_AES_256_GCM" / "AEAD_AES_256_GCM" /
srtp-crypto-suite-ext srtp-crypto-suite-ext
14.2. DTLS-SRTP 14.2. DTLS-SRTP
DTLS-SRTP [RFC5764] defines a DTLS-SRTP "SRTP Protection Profile". DTLS-SRTP [RFC5764] defines a DTLS-SRTP "SRTP Protection Profile".
These also correspond to the use of an AEAD algorithm in SRTP. In These also correspond to the use of an AEAD algorithm in SRTP. In
order to allow the use of the algorithms defined in this document in order to allow the use of the algorithms defined in this document in
DTLS-SRTP, we request IANA register the following SRTP Protection DTLS-SRTP, we request IANA register the following SRTP Protection
Profiles: Profiles:
SRTP_AEAD_AES_128_GCM = {TBD, TBD } SRTP_AEAD_AES_128_GCM = {TBD, TBD }
SRTP_AEAD_AES_128_GCM_8 = {TBD, TBD }
SRTP_AEAD_AES_256_GCM = {TBD, TBD } SRTP_AEAD_AES_256_GCM = {TBD, TBD }
Below we list the SRTP transform parameters for each of these Below we list the SRTP transform parameters for each of these
protection profile. Unless separate parameters for SRTCP and SRTCP protection profile. Unless separate parameters for SRTCP and SRTCP
are explicitly listed, these parameters apply to both SRTP and are explicitly listed, these parameters apply to both SRTP and
SRTCP. SRTCP.
SRTP_AEAD_AES_128_GCM SRTP_AEAD_AES_128_GCM
cipher: AES_128_GCM cipher: AES_128_GCM
cipher_key_length: 128 bits cipher_key_length: 128 bits
cipher_salt_length: 96 bits cipher_salt_length: 96 bits
aead_auth_tag_length: 16 octets aead_auth_tag_length: 16 octets
auth_function: NULL auth_function: NULL
auth_key_length: N/A auth_key_length: N/A
auth_tag_length: N/A auth_tag_length: N/A
maximum lifetime: at most 2^31 SRTCP packets and maximum lifetime: at most 2^31 SRTCP packets and
at most 2^48 SRTP packets at most 2^48 SRTP packets
SRTP_AEAD_AES_128_GCM_64
cipher: AES_128_GCM
cipher_key_length: 128 bits
cipher_salt_length: 96 bits
aead_auth_tag_length: 8 octets
auth_function: NULL
auth_key_length: N/A
auth_tag_length: N/A
maximum lifetime: at most 2^31 SRTCP packets and
at most 2^37 SRTP packets
SRTP_AEAD_AES_256_GCM SRTP_AEAD_AES_256_GCM
cipher: AES_256_GCM cipher: AES_256_GCM
cipher_key_length: 256 bits cipher_key_length: 256 bits
cipher_salt_length: 96 bits cipher_salt_length: 96 bits
aead_auth_tag_length: 16 octets aead_auth_tag_length: 16 octets
auth_function: NULL auth_function: NULL
auth_key_length: N/A auth_key_length: N/A
auth_tag_length: N/A auth_tag_length: N/A
maximum lifetime: at most 2^31 SRTCP packets and maximum lifetime: at most 2^31 SRTCP packets and
at most 2^48 SRTP packets at most 2^48 SRTP packets
skipping to change at page 22, line 35 skipping to change at page 20, line 45
auth_function, auth_key_length, or auth_tag_length because all of auth_function, auth_key_length, or auth_tag_length because all of
these profiles use AEAD algorithms, and thus do not use a separate these profiles use AEAD algorithms, and thus do not use a separate
auth_function, auth_key, or auth_tag. The term aead_auth_tag_length auth_function, auth_key, or auth_tag. The term aead_auth_tag_length
is used to emphasize that this refers to the authentication tag is used to emphasize that this refers to the authentication tag
provided by the AEAD algorithm and that this tag is not located in provided by the AEAD algorithm and that this tag is not located in
the authentication tag field provided by SRTP/SRTCP. the authentication tag field provided by SRTP/SRTCP.
14.3. MIKEY 14.3. MIKEY
In accordance with "MIKEY: Multimedia Internet KEYing" [RFC3830], In accordance with "MIKEY: Multimedia Internet KEYing" [RFC3830],
IANA maintains several subregitries under "Multimedia Internet KEYing IANA maintains several subregistries under "Multimedia Internet
(MIKEY) Payload Name Spaces". This document requires additions to KEYing (MIKEY) Payload Name Spaces". This document requires
two of the MIKEY subregistries. additions to two of the MIKEY subregistries.
In the "MIKEY Security Protocol Parameters" subregistry we request In the "MIKEY Security Protocol Parameters" subregistry we request
the following addition: the following addition:
Type | Meaning | Possible values Type | Meaning | Possible values
---------------------------------------------------------------- --------------------------------------------------------
TBD | AEAD authentication tag length | 8 octets or 16 octets TBD | AEAD authentication tag length | 16 octets
This list is, of course, intended for use with GCM. It is This list is, of course, intended for use with GCM. It is
conceivable that new AEAD algorithms introduced at some point in the conceivable that new AEAD algorithms introduced at some point in the
future may require a different set of Authentication tag lengths. future may require a different set of Authentication tag lengths.
In the "Encryption Algorithm" subregistry (derived from Table In the "Encryption Algorithm" subregistry (derived from Table
6.10.1.b of [RFC3830]) we request the following addition: 6.10.1.b of [RFC3830]) we request the following addition:
SRTP encr | Value | Default Session | Default Auth. SRTP encr | Value | Default Session | Default Auth.
Algorithm | | Encr. Key Length | Tag Length Algorithm | | Encr. Key Length | Tag Length
skipping to change at page 23, line 24 skipping to change at page 21, line 35
15. Parameters for use with MIKEY 15. Parameters for use with MIKEY
MIKEY specifies the algorithm family separately from the key length MIKEY specifies the algorithm family separately from the key length
(which is specified by the Session Encryption key length) and the (which is specified by the Session Encryption key length) and the
authentication tag length (specified by AEAD Auth tag length). authentication tag length (specified by AEAD Auth tag length).
+------------+-------------+-------------+ +------------+-------------+-------------+
| Encryption | Encryption | AEAD Auth | | Encryption | Encryption | AEAD Auth |
| Algorithm | Key Length | Tag Length | | Algorithm | Key Length | Tag Length |
+============+=============+=============+ +============+=============+=============+
AEAD_AES_128_GCM_8 | AES-GCM | 16 octets | 8 octets |
+------------+-------------+-------------+
AEAD_AES_128_GCM | AES-GCM | 16 octets | 16 octets | AEAD_AES_128_GCM | AES-GCM | 16 octets | 16 octets |
+------------+-------------+-------------+ +------------+-------------+-------------+
AEAD_AES_256_GCM | AES-GCM | 32 octets | 16 octets | AEAD_AES_256_GCM | AES-GCM | 32 octets | 16 octets |
+============+=============+=============+ +============+=============+=============+
Table 6: Mapping MIKEY parameters to AEAD algorithm Table 6: Mapping MIKEY parameters to AEAD algorithm
Section 11 in this document restricts the choice of Key Derivation Section 11 in this document restricts the choice of Key Derivation
Function for AEAD algorithms. To enforce this restriction in MIKEY, Function for AEAD algorithms. To enforce this restriction in MIKEY,
we require that the SRTP PRF has value AES-CM whenever an AEAD we require that the SRTP PRF has value AES-CM whenever an AEAD
skipping to change at page 24, line 29 skipping to change at page 22, line 37
value that is held constant at least until the key is changed. value that is held constant at least until the key is changed.
| Pad | SSRC | ROC | SEQ | | Pad | SSRC | ROC | SEQ |
00 00 55 01 a0 b2 00 00 00 00 f1 7b 00 00 55 01 a0 b2 00 00 00 00 f1 7b
salt 51 75 69 64 20 70 72 6f 20 71 75 6f salt 51 75 69 64 20 70 72 6f 20 71 75 6f
------------------------------------ ------------------------------------
IV 51 75 3c 65 80 c2 72 6f 20 71 84 14 IV 51 75 3c 65 80 c2 72 6f 20 71 84 14
All of the RTP examples use this IV. All of the RTP examples use this IV.
16.1. AEAD_AES_128_GCM_8 16.1. SRTP AEAD_AES_128_GCM
16.1.1. AEAD_AES_128_GCM_8 Encryption
Encrypting the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472
6573
Form the IV
| Pad | SSRC | ROC | SEQ |
00 00 55 01 a0 b2 00 00 00 00 f1 7b
salt: 51 75 69 64 20 70 72 6f 20 71 75 6f
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
AAD: 8040f17b 8041f8d3 5501a0b2
PT: 47616c6c 69612065 7374206f 6d6e6973
20646976 69736120 696e2070 61727465
73207472 6573
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
H: c6a13b37878f5b826f4f8162a1c8d879
Encrypt plaintext
block # 0
IV||blk_cntr: 51753c6580c2726f2071841400000002
key_block: b5 2c 8f cf 92 55 fe 09 df ce a6 73 f0 10 22 b9
plain_block: 47 61 6c 6c 69 61 20 65 73 74 20 6f 6d 6e 69 73
cipher_block: f2 4d e3 a3 fb 34 de 6c ac ba 86 1c 9d 7e 4b ca
block # 1
IV||blk_cntr: 51753c6580c2726f2071841400000003
key_block: 9e 07 52 a3 64 5a 2f 4f 2b cb d4 0a 30 b5 a5 fe
plain_block: 20 64 69 76 69 73 61 20 69 6e 20 70 61 72 74 65
cipher_block: be 63 3b d5 0d 29 4e 6f 42 a5 f4 7a 51 c7 d1 9b
block # 2
IV||blk_cntr: 51753c6580c2726f2071841400000004
key_block: 45 fe 4e ad ed 40 0a 5d 1a f3 63 f9 0c e1 49 3b
plain_block: 73 20 74 72 65 73
cipher_block: 36 de 3a df 88 33
Cipher before tag appended
f24de3a3 fb34de6c acba861c 9d7e4bca
be633bd5 0d294e6f 42a5f47a 51c7d19b
36de3adf 8833
Compute GMAC tag
Process AAD
AAD word: 8040f17b8041f8d35501a0b200000000
partial hash: bcfb3d1d0e6e3e78ba45403377dba11b
Process Cipher
Cipher word: f24de3a3fb34de6cacba861c9d7e4bca
partial hash: 0ebc0abe1b15b32fedd2b07888c1ef61
Cipher word: be633bd50d294e6f42a5f47a51c7d19b
partial hash: 438e5797011ea860585709a2899f4685
Cipher word: 36de3adf883300000000000000000000
partial hash: 336fb643310d7bac2aeaa76247f6036d
Proceess Length Word
Length word: 00000000000000600000000000000130
partial hash: 1b964067078c408c4e442a8f015e5264
Turn GHASH into GMAC
GHASH: 1b 96 40 67 07 8c 40 8c 4e 44 2a 8f 01 5e 52 64
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 89 9d 7f 27 be b1 6a 91 52 cf 76 5e e4 39 0c ce
truncated GMAC: 89 9d 7f 27 be b1 6a 91
Cipher with tag
f24de3a3 fb34de6c acba861c 9d7e4bca
be633bd5 0d294e6f 42a5f47a 51c7d19b
36de3adf 8833899d 7f27beb1 6a91
Encrypted and Tagged packet:
8040f17b 8041f8d3 5501a0b2 f24de3a3
fb34de6c acba861c 9d7e4bca be633bd5
0d294e6f 42a5f47a 51c7d19b 36de3adf
8833899d 7f27beb1 6a91
16.1.2. AEAD_AES_128_GCM_8 Decryption
Decrypting the following packet:
8040f17b 8041f8d3 5501a0b2 f24de3a3
fb34de6c acba861c 9d7e4bca be633bd5
0d294e6f 42a5f47a 51c7d19b 36de3adf
8833899d 7f27beb1 6a91
Form the IV
| Pad | SSRC | ROC | SEQ |
00 00 55 01 a0 b2 00 00 00 00 f1 7b
salt: 51 75 69 64 20 70 72 6f 20 71 75 6f
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
AAD: 8040f17b 8041f8d3 5501a0b2
CT: f24de3a3 fb34de6c acba861c 9d7e4bca
be633bd5 0d294e6f 42a5f47a 51c7d19b
36de3adf 8833899d 7f27beb1 6a91
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
H: c6a13b37878f5b826f4f8162a1c8d879
Verify received tag 89 9d 7f 27 be b1 6a 91
Process AAD
AAD word: 8040f17b8041f8d35501a0b200000000
partial hash: bcfb3d1d0e6e3e78ba45403377dba11b
Process Cipher
Cipher word: f24de3a3fb34de6cacba861c9d7e4bca
partial hash: 0ebc0abe1b15b32fedd2b07888c1ef61
Cipher word: be633bd50d294e6f42a5f47a51c7d19b
partial hash: 438e5797011ea860585709a2899f4685
Cipher word: 36de3adf883300000000000000000000
partial hash: 336fb643310d7bac2aeaa76247f6036d
Proceess Length Word
Length word: 00000000000000600000000000000130
partial hash: 1b964067078c408c4e442a8f015e5264
Turn GHASH into GMAC
GHASH: 1b 96 40 67 07 8c 40 8c 4e 44 2a 8f 01 5e 52 64
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 89 9d 7f 27 be b1 6a 91 52 cf 76 5e e4 39 0c ce
truncated GMAC: 89 9d 7f 27 be b1 6a 91
Received tag = 899d7f27 beb16a91
Computed tag = 899d7f27 beb16a91
Received tag verified.
Decrypt cipher
block # 0
IV||blk_cntr: 51753c6580c2726f2071841400000002
key_block: b5 2c 8f cf 92 55 fe 09 df ce a6 73 f0 10 22 b9
cipher_block: f2 4d e3 a3 fb 34 de 6c ac ba 86 1c 9d 7e 4b ca
plain_block: 47 61 6c 6c 69 61 20 65 73 74 20 6f 6d 6e 69 73
block # 1
IV||blk_cntr: 51753c6580c2726f2071841400000003
key_block: 9e 07 52 a3 64 5a 2f 4f 2b cb d4 0a 30 b5 a5 fe
cipher_block: be 63 3b d5 0d 29 4e 6f 42 a5 f4 7a 51 c7 d1 9b
plain_block: 20 64 69 76 69 73 61 20 69 6e 20 70 61 72 74 65
block # 2
IV||blk_cntr: 51753c6580c2726f2071841400000004
key_block: 45 fe 4e ad ed 40 0a 5d 1a f3 63 f9 0c e1 49 3b
cipher_block: 36 de 3a df 88 33
plain_block: 73 20 74 72 65 73
Verified and Taged packet:
47616c6c 69612065 7374206f 6d6e6973
20646976 69736120 696e2070 61727465
73207472 6573
16.1.3. AEAD_AES_128_GCM_8 Authentication Tagging
Tagging the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472
6573
Form the IV
| Pad | SSRC | ROC | SEQ |
00 00 55 01 a0 b2 00 00 00 00 f1 7b
salt: 51 75 69 64 20 70 72 6f 20 71 75 6f
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
AAD: 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472
6573
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
H: c6a13b37878f5b826f4f8162a1c8d879
Encrypt plaintext
Compute GMAC tag
Process AAD
AAD word: 8040f17b8041f8d35501a0b247616c6c
partial hash: 79f41fea34a474a77609d8925e9f2b22
AAD word: 696120657374206f6d6e697320646976
partial hash: 84093a2f85abf17ab37d3ce2f706138f
AAD word: 69736120696e20706172746573207472
partial hash: ab2760fee24e6dec754739d8059cd144
AAD word: 65730000000000000000000000000000
partial hash: e84f3c55d287fc561c41d09a8aada4be
Proceess Length Word
Length word: 00000000000001900000000000000000
partial hash: b04200c26b81c98af55cc2eafccd1cbc
Turn GHASH into GMAC
GHASH: b0 42 00 c2 6b 81 c9 8a f5 5c c2 ea fc cd 1c bc
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 22 49 3f 82 d2 bc e3 97 e9 d7 9e 3b 19 aa 42 16
truncated GMAC: 22 49 3f 82 d2 bc e3 97
Cipher with tag
22493f82 d2bce397
Tagged Packet:
8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472
65732249 3f82d2bc e397
16.1.4. AEAD_AES_128_GCM_8 Tag Verification
Verifying the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472
65732249 3f82d2bc e397
Form the IV
| Pad | SSRC | ROC | SEQ |
00 00 55 01 a0 b2 00 00 00 00 f1 7b
salt: 51 75 69 64 20 70 72 6f 20 71 75 6f
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
AAD: 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472
6573
CT: 22493f82 d2bce397
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
H: c6a13b37878f5b826f4f8162a1c8d879
Verify received tag 22 49 3f 82 d2 bc e3 97
Process AAD
AAD word: 8040f17b8041f8d35501a0b247616c6c
partial hash: 79f41fea34a474a77609d8925e9f2b22
AAD word: 696120657374206f6d6e697320646976
partial hash: 84093a2f85abf17ab37d3ce2f706138f
AAD word: 69736120696e20706172746573207472
partial hash: ab2760fee24e6dec754739d8059cd144
AAD word: 65730000000000000000000000000000
partial hash: e84f3c55d287fc561c41d09a8aada4be
Proceess Length Word
Length word: 00000000000001900000000000000000
partial hash: b04200c26b81c98af55cc2eafccd1cbc
Turn GHASH into GMAC
GHASH: b0 42 00 c2 6b 81 c9 8a f5 5c c2 ea fc cd 1c bc
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 22 49 3f 82 d2 bc e3 97 e9 d7 9e 3b 19 aa 42 16
truncated GMAC: 22 49 3f 82 d2 bc e3 97
Received tag = 22493f82 d2bce397
Computed tag = 22493f82 d2bce397
Received tag verified.
16.2. AEAD_AES_128_GCM
16.2.1. AEAD_AES_128_GCM Encryption 16.1.1. SRTP AEAD_AES_128_GCM Encryption
Encrypting the following packet: Encrypting the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573 6573
Form the IV Form the IV
| Pad | SSRC | ROC | SEQ | | Pad | SSRC | ROC | SEQ |
skipping to change at page 30, line 42 skipping to change at page 23, line 50
partial hash: bcfb3d1d0e6e3e78ba45403377dba11b partial hash: bcfb3d1d0e6e3e78ba45403377dba11b
Process Cipher Process Cipher
Cipher word: f24de3a3fb34de6cacba861c9d7e4bca Cipher word: f24de3a3fb34de6cacba861c9d7e4bca
partial hash: 0ebc0abe1b15b32fedd2b07888c1ef61 partial hash: 0ebc0abe1b15b32fedd2b07888c1ef61
Cipher word: be633bd50d294e6f42a5f47a51c7d19b Cipher word: be633bd50d294e6f42a5f47a51c7d19b
partial hash: 438e5797011ea860585709a2899f4685 partial hash: 438e5797011ea860585709a2899f4685
Cipher word: 36de3adf883300000000000000000000 Cipher word: 36de3adf883300000000000000000000
partial hash: 336fb643310d7bac2aeaa76247f6036d partial hash: 336fb643310d7bac2aeaa76247f6036d
Proceess Length Word Process Length Word
Length word: 00000000000000600000000000000130 Length word: 00000000000000600000000000000130
partial hash: 1b964067078c408c4e442a8f015e5264 partial hash: 1b964067078c408c4e442a8f015e5264
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 1b 96 40 67 07 8c 40 8c 4e 44 2a 8f 01 5e 52 64 GHASH: 1b 96 40 67 07 8c 40 8c 4e 44 2a 8f 01 5e 52 64
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 89 9d 7f 27 be b1 6a 91 52 cf 76 5e e4 39 0c ce full GMAC: 89 9d 7f 27 be b1 6a 91 52 cf 76 5e e4 39 0c ce
Cipher with tag Cipher with tag
f24de3a3 fb34de6c acba861c 9d7e4bca f24de3a3 fb34de6c acba861c 9d7e4bca
skipping to change at page 31, line 12 skipping to change at page 25, line 5
36de3adf 8833899d 7f27beb1 6a9152cf 36de3adf 8833899d 7f27beb1 6a9152cf
765ee439 0cce 765ee439 0cce
Encrypted and Tagged packet: Encrypted and Tagged packet:
8040f17b 8041f8d3 5501a0b2 f24de3a3 8040f17b 8041f8d3 5501a0b2 f24de3a3
fb34de6c acba861c 9d7e4bca be633bd5 fb34de6c acba861c 9d7e4bca be633bd5
0d294e6f 42a5f47a 51c7d19b 36de3adf 0d294e6f 42a5f47a 51c7d19b 36de3adf
8833899d 7f27beb1 6a9152cf 765ee439 8833899d 7f27beb1 6a9152cf 765ee439
0cce 0cce
16.2.2. AEAD_AES_128_GCM Decryption 16.1.2. SRTP AEAD_AES_128_GCM Decryption
Decrypting the following packet: Decrypting the following packet:
8040f17b 8041f8d3 5501a0b2 f24de3a3 8040f17b 8041f8d3 5501a0b2 f24de3a3
fb34de6c acba861c 9d7e4bca be633bd5 fb34de6c acba861c 9d7e4bca be633bd5
0d294e6f 42a5f47a 51c7d19b 36de3adf 0d294e6f 42a5f47a 51c7d19b 36de3adf
8833899d 7f27beb1 6a9152cf 765ee439 8833899d 7f27beb1 6a9152cf 765ee439
0cce 0cce
Form the IV Form the IV
skipping to change at page 31, line 51 skipping to change at page 25, line 44
partial hash: bcfb3d1d0e6e3e78ba45403377dba11b partial hash: bcfb3d1d0e6e3e78ba45403377dba11b
Process Cipher Process Cipher
Cipher word: f24de3a3fb34de6cacba861c9d7e4bca Cipher word: f24de3a3fb34de6cacba861c9d7e4bca
partial hash: 0ebc0abe1b15b32fedd2b07888c1ef61 partial hash: 0ebc0abe1b15b32fedd2b07888c1ef61
Cipher word: be633bd50d294e6f42a5f47a51c7d19b Cipher word: be633bd50d294e6f42a5f47a51c7d19b
partial hash: 438e5797011ea860585709a2899f4685 partial hash: 438e5797011ea860585709a2899f4685
Cipher word: 36de3adf883300000000000000000000 Cipher word: 36de3adf883300000000000000000000
partial hash: 336fb643310d7bac2aeaa76247f6036d partial hash: 336fb643310d7bac2aeaa76247f6036d
Proceess Length Word Process Length Word
Length word: 00000000000000600000000000000130 Length word: 00000000000000600000000000000130
partial hash: 1b964067078c408c4e442a8f015e5264 partial hash: 1b964067078c408c4e442a8f015e5264
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 1b 96 40 67 07 8c 40 8c 4e 44 2a 8f 01 5e 52 64 GHASH: 1b 96 40 67 07 8c 40 8c 4e 44 2a 8f 01 5e 52 64
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 89 9d 7f 27 be b1 6a 91 52 cf 76 5e e4 39 0c ce full GMAC: 89 9d 7f 27 be b1 6a 91 52 cf 76 5e e4 39 0c ce
Received tag = 899d7f27 beb16a91 52cf765e e4390cce Received tag = 899d7f27 beb16a91 52cf765e e4390cce
Computed tag = 899d7f27 beb16a91 52cf765e e4390cce Computed tag = 899d7f27 beb16a91 52cf765e e4390cce
skipping to change at page 32, line 34 skipping to change at page 27, line 5
IV||blk_cntr: 51753c6580c2726f2071841400000004 IV||blk_cntr: 51753c6580c2726f2071841400000004
key_block: 45 fe 4e ad ed 40 0a 5d 1a f3 63 f9 0c e1 49 3b key_block: 45 fe 4e ad ed 40 0a 5d 1a f3 63 f9 0c e1 49 3b
cipher_block: 36 de 3a df 88 33 cipher_block: 36 de 3a df 88 33
plain_block: 73 20 74 72 65 73 plain_block: 73 20 74 72 65 73
Verified and Taged packet: Verified and Taged packet:
47616c6c 69612065 7374206f 6d6e6973 47616c6c 69612065 7374206f 6d6e6973
20646976 69736120 696e2070 61727465 20646976 69736120 696e2070 61727465
73207472 6573 73207472 6573
16.2.3. AEAD_AES_128_GCM Authentication Tagging 16.1.3. SRTP AEAD_AES_128_GCM Authentication Tagging
Tagging the following packet: Tagging the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573 6573
Form the IV Form the IV
| Pad | SSRC | ROC | SEQ | | Pad | SSRC | ROC | SEQ |
skipping to change at page 33, line 5 skipping to change at page 27, line 28
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14 IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
AAD: 8040f17b 8041f8d3 5501a0b2 47616c6c AAD: 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573 6573
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14 IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
H: c6a13b37878f5b826f4f8162a1c8d879 H: c6a13b37878f5b826f4f8162a1c8d879
Encrypt plaintext
Compute GMAC tag Compute GMAC tag
Process AAD Process AAD
AAD word: 8040f17b8041f8d35501a0b247616c6c AAD word: 8040f17b8041f8d35501a0b247616c6c
partial hash: 79f41fea34a474a77609d8925e9f2b22 partial hash: 79f41fea34a474a77609d8925e9f2b22
AAD word: 696120657374206f6d6e697320646976 AAD word: 696120657374206f6d6e697320646976
partial hash: 84093a2f85abf17ab37d3ce2f706138f partial hash: 84093a2f85abf17ab37d3ce2f706138f
AAD word: 69736120696e20706172746573207472 AAD word: 69736120696e20706172746573207472
partial hash: ab2760fee24e6dec754739d8059cd144 partial hash: ab2760fee24e6dec754739d8059cd144
AAD word: 65730000000000000000000000000000 AAD word: 65730000000000000000000000000000
partial hash: e84f3c55d287fc561c41d09a8aada4be partial hash: e84f3c55d287fc561c41d09a8aada4be
Proceess Length Word Process Length Word
Length word: 00000000000001900000000000000000 Length word: 00000000000001900000000000000000
partial hash: b04200c26b81c98af55cc2eafccd1cbc partial hash: b04200c26b81c98af55cc2eafccd1cbc
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: b0 42 00 c2 6b 81 c9 8a f5 5c c2 ea fc cd 1c bc GHASH: b0 42 00 c2 6b 81 c9 8a f5 5c c2 ea fc cd 1c bc
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 22 49 3f 82 d2 bc e3 97 e9 d7 9e 3b 19 aa 42 16 full GMAC: 22 49 3f 82 d2 bc e3 97 e9 d7 9e 3b 19 aa 42 16
Cipher with tag Cipher with tag
22493f82 d2bce397 e9d79e3b 19aa4216 22493f82 d2bce397 e9d79e3b 19aa4216
Tagged Packet: Tagged Packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
65732249 3f82d2bc e397e9d7 9e3b19aa 65732249 3f82d2bc e397e9d7 9e3b19aa
4216 4216
16.2.4. AEAD_AES_128_GCM Tag Verification 16.1.4. SRTP AEAD_AES_128_GCM Tag Verification
Verifying the following packet: Verifying the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
65732249 3f82d2bc e397e9d7 9e3b19aa 65732249 3f82d2bc e397e9d7 9e3b19aa
4216 4216
Form the IV Form the IV
skipping to change at page 34, line 23 skipping to change at page 29, line 42
Process AAD Process AAD
AAD word: 8040f17b8041f8d35501a0b247616c6c AAD word: 8040f17b8041f8d35501a0b247616c6c
partial hash: 79f41fea34a474a77609d8925e9f2b22 partial hash: 79f41fea34a474a77609d8925e9f2b22
AAD word: 696120657374206f6d6e697320646976 AAD word: 696120657374206f6d6e697320646976
partial hash: 84093a2f85abf17ab37d3ce2f706138f partial hash: 84093a2f85abf17ab37d3ce2f706138f
AAD word: 69736120696e20706172746573207472 AAD word: 69736120696e20706172746573207472
partial hash: ab2760fee24e6dec754739d8059cd144 partial hash: ab2760fee24e6dec754739d8059cd144
AAD word: 65730000000000000000000000000000 AAD word: 65730000000000000000000000000000
partial hash: e84f3c55d287fc561c41d09a8aada4be partial hash: e84f3c55d287fc561c41d09a8aada4be
Proceess Length Word Process Length Word
Length word: 00000000000001900000000000000000 Length word: 00000000000001900000000000000000
partial hash: b04200c26b81c98af55cc2eafccd1cbc partial hash: b04200c26b81c98af55cc2eafccd1cbc
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: b0 42 00 c2 6b 81 c9 8a f5 5c c2 ea fc cd 1c bc GHASH: b0 42 00 c2 6b 81 c9 8a f5 5c c2 ea fc cd 1c bc
K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa K0: 92 0b 3f 40 b9 3d 2a 1d 1c 8b 5c d1 e5 67 5e aa
full GMAC: 22 49 3f 82 d2 bc e3 97 e9 d7 9e 3b 19 aa 42 16 full GMAC: 22 49 3f 82 d2 bc e3 97 e9 d7 9e 3b 19 aa 42 16
Received tag = 22493f82 d2bce397 e9d79e3b 19aa4216 Received tag = 22493f82 d2bce397 e9d79e3b 19aa4216
Computed tag = 22493f82 d2bce397 e9d79e3b 19aa4216 Computed tag = 22493f82 d2bce397 e9d79e3b 19aa4216
Received tag verified. Received tag verified.
16.3. AEAD_AES_256_GCM 16.2. SRTP AEAD_AES_256_GCM
16.2.1. SRTP AEAD_AES_256_GCM Encryption
16.3.1. AEAD_AES_256_GCM Encryption
Encrypting the following packet: Encrypting the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573 6573
Form the IV Form the IV
| Pad | SSRC | ROC | SEQ | | Pad | SSRC | ROC | SEQ |
skipping to change at page 35, line 48 skipping to change at page 31, line 15
partial hash: 0154dcb75485b71880e1957c877351bd partial hash: 0154dcb75485b71880e1957c877351bd
Process Cipher Process Cipher
Cipher word: 32b1de78a822fe12ef9f78fa332e33aa Cipher word: 32b1de78a822fe12ef9f78fa332e33aa
partial hash: c3f07db9a8b9cb4345eb07f793d322d2 partial hash: c3f07db9a8b9cb4345eb07f793d322d2
Cipher word: b18012389a58e2f3b50b2a0276ffae0f Cipher word: b18012389a58e2f3b50b2a0276ffae0f
partial hash: 6d1e66fe32eb32ecd8906ceab09db996 partial hash: 6d1e66fe32eb32ecd8906ceab09db996
Cipher word: 1ba63799b87b00000000000000000000 Cipher word: 1ba63799b87b00000000000000000000
partial hash: b3d1d2f1fa3b366619bc42cd2eedafee partial hash: b3d1d2f1fa3b366619bc42cd2eedafee
Proceess Length Word Process Length Word
Length word: 00000000000000600000000000000130 Length word: 00000000000000600000000000000130
partial hash: 7debf5fa1fac3bd318d5e1a7ee401091 partial hash: 7debf5fa1fac3bd318d5e1a7ee401091
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 7d eb f5 fa 1f ac 3b d3 18 d5 e1 a7 ee 40 10 91 GHASH: 7d eb f5 fa 1f ac 3b d3 18 d5 e1 a7 ee 40 10 91
K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82 K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82
full GMAC: 7a a3 db 36 df ff d6 b0 f9 bb 78 78 d7 a7 6c 13 full GMAC: 7a a3 db 36 df ff d6 b0 f9 bb 78 78 d7 a7 6c 13
Cipher with tag Cipher with tag
32b1de78 a822fe12 ef9f78fa 332e33aa 32b1de78 a822fe12 ef9f78fa 332e33aa
skipping to change at page 36, line 18 skipping to change at page 32, line 5
1ba63799 b87b7aa3 db36dfff d6b0f9bb 1ba63799 b87b7aa3 db36dfff d6b0f9bb
7878d7a7 6c13 7878d7a7 6c13
Encrypted and Tagged packet: Encrypted and Tagged packet:
8040f17b 8041f8d3 5501a0b2 32b1de78 8040f17b 8041f8d3 5501a0b2 32b1de78
a822fe12 ef9f78fa 332e33aa b1801238 a822fe12 ef9f78fa 332e33aa b1801238
9a58e2f3 b50b2a02 76ffae0f 1ba63799 9a58e2f3 b50b2a02 76ffae0f 1ba63799
b87b7aa3 db36dfff d6b0f9bb 7878d7a7 b87b7aa3 db36dfff d6b0f9bb 7878d7a7
6c13 6c13
16.3.2. AEAD_AES_256_GCM Decryption 16.2.2. SRTP AEAD_AES_256_GCM Decryption
Decrypting the following packet: Decrypting the following packet:
8040f17b 8041f8d3 5501a0b2 32b1de78 8040f17b 8041f8d3 5501a0b2 32b1de78
a822fe12 ef9f78fa 332e33aa b1801238 a822fe12 ef9f78fa 332e33aa b1801238
9a58e2f3 b50b2a02 76ffae0f 1ba63799 9a58e2f3 b50b2a02 76ffae0f 1ba63799
b87b7aa3 db36dfff d6b0f9bb 7878d7a7 b87b7aa3 db36dfff d6b0f9bb 7878d7a7
6c13 6c13
Form the IV Form the IV
skipping to change at page 37, line 5 skipping to change at page 32, line 45
partial hash: 0154dcb75485b71880e1957c877351bd partial hash: 0154dcb75485b71880e1957c877351bd
Process Cipher Process Cipher
Cipher word: 32b1de78a822fe12ef9f78fa332e33aa Cipher word: 32b1de78a822fe12ef9f78fa332e33aa
partial hash: c3f07db9a8b9cb4345eb07f793d322d2 partial hash: c3f07db9a8b9cb4345eb07f793d322d2
Cipher word: b18012389a58e2f3b50b2a0276ffae0f Cipher word: b18012389a58e2f3b50b2a0276ffae0f
partial hash: 6d1e66fe32eb32ecd8906ceab09db996 partial hash: 6d1e66fe32eb32ecd8906ceab09db996
Cipher word: 1ba63799b87b00000000000000000000 Cipher word: 1ba63799b87b00000000000000000000
partial hash: b3d1d2f1fa3b366619bc42cd2eedafee partial hash: b3d1d2f1fa3b366619bc42cd2eedafee
Proceess Length Word Process Length Word
Length word: 00000000000000600000000000000130 Length word: 00000000000000600000000000000130
partial hash: 7debf5fa1fac3bd318d5e1a7ee401091 partial hash: 7debf5fa1fac3bd318d5e1a7ee401091
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 7d eb f5 fa 1f ac 3b d3 18 d5 e1 a7 ee 40 10 91 GHASH: 7d eb f5 fa 1f ac 3b d3 18 d5 e1 a7 ee 40 10 91
K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82 K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82
full GMAC: 7a a3 db 36 df ff d6 b0 f9 bb 78 78 d7 a7 6c 13 full GMAC: 7a a3 db 36 df ff d6 b0 f9 bb 78 78 d7 a7 6c 13
Received tag = 7aa3db36 dfffd6b0 f9bb7878 d7a76c13 Received tag = 7aa3db36 dfffd6b0 f9bb7878 d7a76c13
Computed tag = 7aa3db36 dfffd6b0 f9bb7878 d7a76c13 Computed tag = 7aa3db36 dfffd6b0 f9bb7878 d7a76c13
skipping to change at page 37, line 40 skipping to change at page 34, line 5
IV||blk_cntr: 51753c6580c2726f2071841400000004 IV||blk_cntr: 51753c6580c2726f2071841400000004
key_block: 68 86 43 eb dd 08 07 98 16 3a 16 d5 e5 04 f6 3a key_block: 68 86 43 eb dd 08 07 98 16 3a 16 d5 e5 04 f6 3a
cipher_block: 1b a6 37 99 b8 7b cipher_block: 1b a6 37 99 b8 7b
plain_block: 73 20 74 72 65 73 plain_block: 73 20 74 72 65 73
Verified and Taged packet: Verified and Taged packet:
47616c6c 69612065 7374206f 6d6e6973 47616c6c 69612065 7374206f 6d6e6973
20646976 69736120 696e2070 61727465 20646976 69736120 696e2070 61727465
73207472 6573 73207472 6573
16.3.3. AEAD_AES_256_GCM Authentication Tagging 16.2.3. SRTP AEAD_AES_256_GCM Authentication Tagging
Tagging the following packet: Tagging the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573 6573
Form the IV Form the IV
| Pad | SSRC | ROC | SEQ | | Pad | SSRC | ROC | SEQ |
skipping to change at page 38, line 12 skipping to change at page 34, line 29
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
AAD: 8040f17b 8041f8d3 5501a0b2 47616c6c AAD: 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573 6573
IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14 IV: 51 75 3c 65 80 c2 72 6f 20 71 84 14
H: f29000b62a499fd0a9f39a6add2e7780 H: f29000b62a499fd0a9f39a6add2e7780
Encrypt plaintext
Compute GMAC tag Compute GMAC tag
Process AAD Process AAD
AAD word: 8040f17b8041f8d35501a0b247616c6c AAD word: 8040f17b8041f8d35501a0b247616c6c
partial hash: c059753e6763791762ca630d8ef97714 partial hash: c059753e6763791762ca630d8ef97714
AAD word: 696120657374206f6d6e697320646976 AAD word: 696120657374206f6d6e697320646976
partial hash: a4e3401e712900dc4f1d2303bc4b2675 partial hash: a4e3401e712900dc4f1d2303bc4b2675
AAD word: 69736120696e20706172746573207472 AAD word: 69736120696e20706172746573207472
partial hash: 1c8c1af883de0d67878f379a19c65987 partial hash: 1c8c1af883de0d67878f379a19c65987
AAD word: 65730000000000000000000000000000 AAD word: 65730000000000000000000000000000
partial hash: 958462781aa8e8feacce6d93b54472ac partial hash: 958462781aa8e8feacce6d93b54472ac
Proceess Length Word Process Length Word
Length word: 00000000000001900000000000000000 Length word: 00000000000001900000000000000000
partial hash: af2efb5dcfdb9900e7127721fdb56956 partial hash: af2efb5dcfdb9900e7127721fdb56956
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: af 2e fb 5d cf db 99 00 e7 12 77 21 fd b5 69 56 GHASH: af 2e fb 5d cf db 99 00 e7 12 77 21 fd b5 69 56
K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82 K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82
full GMAC: a8 66 d5 91 0f 88 74 63 06 7c ee fe c4 52 15 d4 full GMAC: a8 66 d5 91 0f 88 74 63 06 7c ee fe c4 52 15 d4
Cipher with tag Cipher with tag
a866d591 0f887463 067ceefe c45215d4 a866d591 0f887463 067ceefe c45215d4
Tagged Packet: Tagged Packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573a866 d5910f88 7463067c eefec452 6573a866 d5910f88 7463067c eefec452
15d4 15d4
16.3.4. AEAD_AES_256_GCM Tag Verification 16.2.4. SRTP AEAD_AES_256_GCM Tag Verification
Verifying the following packet: Verifying the following packet:
8040f17b 8041f8d3 5501a0b2 47616c6c 8040f17b 8041f8d3 5501a0b2 47616c6c
69612065 7374206f 6d6e6973 20646976 69612065 7374206f 6d6e6973 20646976
69736120 696e2070 61727465 73207472 69736120 696e2070 61727465 73207472
6573a866 d5910f88 7463067c eefec452 6573a866 d5910f88 7463067c eefec452
15d4 15d4
Form the IV Form the IV
skipping to change at page 39, line 31 skipping to change at page 36, line 43
Process AAD Process AAD
AAD word: 8040f17b8041f8d35501a0b247616c6c AAD word: 8040f17b8041f8d35501a0b247616c6c
partial hash: c059753e6763791762ca630d8ef97714 partial hash: c059753e6763791762ca630d8ef97714
AAD word: 696120657374206f6d6e697320646976 AAD word: 696120657374206f6d6e697320646976
partial hash: a4e3401e712900dc4f1d2303bc4b2675 partial hash: a4e3401e712900dc4f1d2303bc4b2675
AAD word: 69736120696e20706172746573207472 AAD word: 69736120696e20706172746573207472
partial hash: 1c8c1af883de0d67878f379a19c65987 partial hash: 1c8c1af883de0d67878f379a19c65987
AAD word: 65730000000000000000000000000000 AAD word: 65730000000000000000000000000000
partial hash: 958462781aa8e8feacce6d93b54472ac partial hash: 958462781aa8e8feacce6d93b54472ac
Proceess Length Word Process Length Word
Length word: 00000000000001900000000000000000 Length word: 00000000000001900000000000000000
partial hash: af2efb5dcfdb9900e7127721fdb56956 partial hash: af2efb5dcfdb9900e7127721fdb56956
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: af 2e fb 5d cf db 99 00 e7 12 77 21 fd b5 69 56 GHASH: af 2e fb 5d cf db 99 00 e7 12 77 21 fd b5 69 56
K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82 K0: 07 48 2e cc c0 53 ed 63 e1 6e 99 df 39 e7 7c 82
full GMAC: a8 66 d5 91 0f 88 74 63 06 7c ee fe c4 52 15 d4 full GMAC: a8 66 d5 91 0f 88 74 63 06 7c ee fe c4 52 15 d4
Received tag = a866d591 0f887463 067ceefe c45215d4 Received tag = a866d591 0f887463 067ceefe c45215d4
Computed tag = a866d591 0f887463 067ceefe c45215d4 Computed tag = a866d591 0f887463 067ceefe c45215d4
skipping to change at page 40, line 50 skipping to change at page 38, line 11
not encrypted (E flag = 0), GCM will produce cipher that consists not encrypted (E flag = 0), GCM will produce cipher that consists
solely of the 8 or 16 byte authentication tag. The tagged SRTCP solely of the 8 or 16 byte authentication tag. The tagged SRTCP
consists of the following fields in the order listed below: consists of the following fields in the order listed below:
- All of the AAD save for the ECSRTP word. - All of the AAD save for the ECSRTP word.
- The cipher (= the authentication tag). - The cipher (= the authentication tag).
- The ESRTCP word (the final part of the AAD). - The ESRTCP word (the final part of the AAD).
- Any raw data that might have been appended to the end of the - Any raw data that might have been appended to the end of the
original RTCP packet. original RTCP packet.
17.1. AEAD_AES_128_GCM_8 Encrypt and Tag 17.1. SRTCP AEAD_AES_128_GCM Encrypt and Tag
Encrypting the following packet: Encrypting the following packet:
81c8000d 4d617273 4e545031 4e545032 81c8000d 4d617273 4e545031 4e545032
52545020 0000042a 0000e930 4c756e61 52545020 0000042a 0000e930 4c756e61
deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef
deadbeef deadbeef
Key size = 128 bits Key size = 128 bits
Tag size = 8 octets Tag size = 16 octets
Form the IV Form the IV
| Pad | SSRC | Pad | SRTCP | | Pad | SSRC | Pad | SRTCP |
00 00 4d 61 72 73 00 00 00 00 05 d4 00 00 4d 61 72 73 00 00 00 00 05 d4
salt: 51 75 69 64 20 70 72 6f 20 71 75 6f salt: 51 75 69 64 20 70 72 6f 20 71 75 6f
IV: 51 75 24 05 52 03 72 6f 20 71 70 bb IV: 51 75 24 05 52 03 72 6f 20 71 70 bb
Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f Key: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
AAD: 81c8000d 4d617273 800005d4 AAD: 81c8000d 4d617273 800005d4
PT: 4e545031 4e545032 52545020 0000042a PT: 4e545031 4e545032 52545020 0000042a
skipping to change at page 42, line 9 skipping to change at page 39, line 21
partial hash: 085d6eb166c555aa62982f630430ec6e partial hash: 085d6eb166c555aa62982f630430ec6e
Process Cipher Process Cipher
Cipher word: 63e94885dcdab67ca727d7662f6b7e99 Cipher word: 63e94885dcdab67ca727d7662f6b7e99
partial hash: 8c9221be93466d68bbb16fa0d42b0187 partial hash: 8c9221be93466d68bbb16fa0d42b0187
Cipher word: 7ff5c0f76c06f32dc676a5f1730d6fda Cipher word: 7ff5c0f76c06f32dc676a5f1730d6fda
partial hash: 221ebb044ec9fd0bf116d7780f198792 partial hash: 221ebb044ec9fd0bf116d7780f198792
Cipher word: 4ce09b4686303ded0bb9275b00000000 Cipher word: 4ce09b4686303ded0bb9275b00000000
partial hash: 50f70b9ca110ab312dce212657328dae partial hash: 50f70b9ca110ab312dce212657328dae
Proceess Length Word Process Length Word
Length word: 00000000000000600000000000000160 Length word: 00000000000000600000000000000160
partial hash: 7296107c9716534371dfc1a30c5ffeb5 partial hash: 7296107c9716534371dfc1a30c5ffeb5
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 72 96 10 7c 97 16 53 43 71 df c1 a3 0c 5f fe b5 GHASH: 72 96 10 7c 97 16 53 43 71 df c1 a3 0c 5f fe b5
K0: ba dc b4 24 01 d9 1e 6c b4 74 39 d1 49 86 14 6b K0: ba dc b4 24 01 d9 1e 6c b4 74 39 d1 49 86 14 6b
full GMAC: c8 4a a4 58 96 cf 4d 2f c5 ab f8 72 45 d9 ea de full GMAC: c8 4a a4 58 96 cf 4d 2f c5 ab f8 72 45 d9 ea de
truncated GMAC: c8 4a a4 58 96 cf 4d 2f
Cipher with tag Cipher with tag
63e94885 dcdab67c a727d766 2f6b7e99 63e94885 dcdab67c a727d766 2f6b7e99
7ff5c0f7 6c06f32d c676a5f1 730d6fda 7ff5c0f7 6c06f32d c676a5f1 730d6fda
4ce09b46 86303ded 0bb9275b c84aa458 4ce09b46 86303ded 0bb9275b c84aa458
96cf4d2f 96cf4d2f c5abf872 45d9eade
Add SRTCP with Eflag set. Append ESRTCP word with Eflag set.
Cext:63e94885 dcdab67c a727d766 2f6b7e99 Cext:63e94885 dcdab67c a727d766 2f6b7e99
7ff5c0f7 6c06f32d c676a5f1 730d6fda 7ff5c0f7 6c06f32d c676a5f1 730d6fda
4ce09b46 86303ded 0bb9275b c84aa458 4ce09b46 86303ded 0bb9275b c84aa458
96cf4d2f 800005d4 96cf4d2f c5abf872 45d9eade 800005d4
Encrypted and Tagged packet: Encrypted and Tagged packet:
81c8000d 4d617273 63e94885 dcdab67c 81c8000d 4d617273 63e94885 dcdab67c
a727d766 2f6b7e99 7ff5c0f7 6c06f32d a727d766 2f6b7e99 7ff5c0f7 6c06f32d
c676a5f1 730d6fda 4ce09b46 86303ded c676a5f1 730d6fda 4ce09b46 86303ded
0bb9275b c84aa458 96cf4d2f 800005d4 0bb9275b c84aa458 96cf4d2f c5abf872
45d9eade 800005d4
17.2. AEAD_AES_256_GCM Verify and Decryption 17.2. SRTCP AEAD_AES_256_GCM Verify and Decryption
Key size = 256 bits Key size = 256 bits
Tag size = 16 octets Tag size = 16 octets
Proceess Length Word Process Length Word
Decrypting the following packet: Decrypting the following packet:
81c8000d 4d617273 d50ae4d1 f5ce5d30 81c8000d 4d617273 d50ae4d1 f5ce5d30
4ba297e4 7d470c28 2c3ece5d bffe0a50 4ba297e4 7d470c28 2c3ece5d bffe0a50
a2eaa5c1 110555be 8415f658 c61de047 a2eaa5c1 110555be 8415f658 c61de047
6f1b6fad 1d1eb30c 4446839f 57ff6f6c 6f1b6fad 1d1eb30c 4446839f 57ff6f6c
b26ac3be 800005d4 b26ac3be 800005d4
Key size = 256 bits Key size = 256 bits
Key size = 16 octets Key size = 16 octets
skipping to change at page 43, line 33 skipping to change at page 40, line 46
partial hash: 3ae5afd36dead5280b18950400176b5b partial hash: 3ae5afd36dead5280b18950400176b5b
Process Cipher Process Cipher
Cipher word: d50ae4d1f5ce5d304ba297e47d470c28 Cipher word: d50ae4d1f5ce5d304ba297e47d470c28
partial hash: e90fab7546f6940781227227ac926ebe partial hash: e90fab7546f6940781227227ac926ebe
Cipher word: 2c3ece5dbffe0a50a2eaa5c1110555be Cipher word: 2c3ece5dbffe0a50a2eaa5c1110555be
partial hash: 9b236807d8b2dab07583adce367aa88f partial hash: 9b236807d8b2dab07583adce367aa88f
Cipher word: 8415f658c61de0476f1b6fad00000000 Cipher word: 8415f658c61de0476f1b6fad00000000
partial hash: e69313f423a75e3e0b7eb93321700e86 partial hash: e69313f423a75e3e0b7eb93321700e86
Proceess Length Word Process Length Word
Length word: 00000000000000600000000000000160 Length word: 00000000000000600000000000000160
partial hash: 3a284af2616fdf505faf37eec39fbc8b partial hash: 3a284af2616fdf505faf37eec39fbc8b
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 3a 28 4a f2 61 6f df 50 5f af 37 ee c3 9f bc 8b GHASH: 3a 28 4a f2 61 6f df 50 5f af 37 ee c3 9f bc 8b
K0: 27 36 f9 fe 25 29 5c cf 08 50 58 82 71 f5 7f 35 K0: 27 36 f9 fe 25 29 5c cf 08 50 58 82 71 f5 7f 35
full GMAC: 1d 1e b3 0c 44 46 83 9f 57 ff 6f 6c b2 6a c3 be full GMAC: 1d 1e b3 0c 44 46 83 9f 57 ff 6f 6c b2 6a c3 be
Received tag = 1d1eb30c 4446839f 57ff6f6c b26ac3be Received tag = 1d1eb30c 4446839f 57ff6f6c b26ac3be
Computed tag = 1d1eb30c 4446839f 57ff6f6c b26ac3be Computed tag = 1d1eb30c 4446839f 57ff6f6c b26ac3be
skipping to change at page 44, line 17 skipping to change at page 41, line 30
key_block: 5a b8 48 b7 18 b0 5e a8 b1 b6 d1 42 3b 74 39 55 key_block: 5a b8 48 b7 18 b0 5e a8 b1 b6 d1 42 3b 74 39 55
cipher_block: 84 15 f6 58 c6 1d e0 47 6f 1b 6f ad cipher_block: 84 15 f6 58 c6 1d e0 47 6f 1b 6f ad
plain_block: de ad be ef de ad be ef de ad be ef plain_block: de ad be ef de ad be ef de ad be ef
Verified and Decrypted packet: Verified and Decrypted packet:
81c8000d 4d617273 4e545031 4e545032 81c8000d 4d617273 4e545031 4e545032
52545020 0000042a 0000e930 4c756e61 52545020 0000042a 0000e930 4c756e61
deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef
deadbeef deadbeef
17.3. AEAD_AES_128_GCM Tag Only 17.3. SRTCP AEAD_AES_128_GCM Tag Only
Tagging the following packet: Tagging the following packet:
81c8000d 4d617273 4e545031 4e545032 81c8000d 4d617273 4e545031 4e545032
52545020 0000042a 0000e930 4c756e61 52545020 0000042a 0000e930 4c756e61
deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef
deadbeef deadbeef
Key size = 128 bits Key size = 128 bits
Tag size = 16 octets Tag size = 16 octets
skipping to change at page 44, line 55 skipping to change at page 42, line 14
Process AAD Process AAD
AAD word: 81c8000d4d6172734e5450314e545032 AAD word: 81c8000d4d6172734e5450314e545032
partial hash: f8dbbe278e06afe17fb4fb2e67f0a22e partial hash: f8dbbe278e06afe17fb4fb2e67f0a22e
AAD word: 525450200000042a0000e9304c756e61 AAD word: 525450200000042a0000e9304c756e61
partial hash: 6ccd900dfd0eb292f68f8a410d0648ec partial hash: 6ccd900dfd0eb292f68f8a410d0648ec
AAD word: deadbeefdeadbeefdeadbeefdeadbeef AAD word: deadbeefdeadbeefdeadbeefdeadbeef
partial hash: 6a14be0ea384c6b746235ba955a57ff5 partial hash: 6a14be0ea384c6b746235ba955a57ff5
AAD word: deadbeef000005d40000000000000000 AAD word: deadbeef000005d40000000000000000
partial hash: cc81f14905670a1e37f8bc81a91997cd partial hash: cc81f14905670a1e37f8bc81a91997cd
Proceess Length Word Process Length Word
Length word: 00000000000001c00000000000000000 Length word: 00000000000001c00000000000000000
partial hash: 3ec16d4c3c0e90a59e91be415bd976d8 partial hash: 3ec16d4c3c0e90a59e91be415bd976d8
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: 3e c1 6d 4c 3c 0e 90 a5 9e 91 be 41 5b d9 76 d8 GHASH: 3e c1 6d 4c 3c 0e 90 a5 9e 91 be 41 5b d9 76 d8
K0: ba dc b4 24 01 d9 1e 6c b4 74 39 d1 49 86 14 6b K0: ba dc b4 24 01 d9 1e 6c b4 74 39 d1 49 86 14 6b
full GMAC: 84 1d d9 68 3d d7 8e c9 2a e5 87 90 12 5f 62 b3 full GMAC: 84 1d d9 68 3d d7 8e c9 2a e5 87 90 12 5f 62 b3
Cipher with tag Cipher with tag
841dd968 3dd78ec9 2ae58790 125f62b3 841dd968 3dd78ec9 2ae58790 125f62b3
Tagged Packet: Tagged Packet:
81c8000d 4d617273 4e545031 4e545032 81c8000d 4d617273 4e545031 4e545032
52545020 0000042a 0000e930 4c756e61 52545020 0000042a 0000e930 4c756e61
deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef
deadbeef 841dd968 3dd78ec9 2ae58790 deadbeef 841dd968 3dd78ec9 2ae58790
125f62b3 000005d4 125f62b3 000005d4
17.4. AEAD_AES_256_GCM Tag Verification 17.4. SRTCP AEAD_AES_256_GCM Tag Verification
Key size = 256 bits Key size = 256 bits
Tag size = 16 octets Tag size = 16 octets
Proceess Length Word Process Length Word
Verifying the following packet: Verifying the following packet:
81c8000d 4d617273 4e545031 4e545032 81c8000d 4d617273 4e545031 4e545032
52545020 0000042a 0000e930 4c756e61 52545020 0000042a 0000e930 4c756e61
deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef deadbeef
deadbeef 91db4afb feee5a97 8fab4393 deadbeef 91db4afb feee5a97 8fab4393
ed2615fe 000005d4 ed2615fe 000005d4
Key size = 256 bits Key size = 256 bits
Key size = 16 octets Key size = 16 octets
skipping to change at page 46, line 17 skipping to change at page 43, line 28
Process AAD Process AAD
AAD word: 81c8000d4d6172734e5450314e545032 AAD word: 81c8000d4d6172734e5450314e545032
partial hash: 7bc665c71676a5a5f663b3229af4b85c partial hash: 7bc665c71676a5a5f663b3229af4b85c
AAD word: 525450200000042a0000e9304c756e61 AAD word: 525450200000042a0000e9304c756e61
partial hash: 34ed77752703ab7d69f44237910e3bc0 partial hash: 34ed77752703ab7d69f44237910e3bc0
AAD word: deadbeefdeadbeefdeadbeefdeadbeef AAD word: deadbeefdeadbeefdeadbeefdeadbeef
partial hash: 74a59f1a99282344d64ab1c8a2be6cf8 partial hash: 74a59f1a99282344d64ab1c8a2be6cf8
AAD word: deadbeef000005d40000000000000000 AAD word: deadbeef000005d40000000000000000
partial hash: 126335c0baa7ab1b79416ceeb9f7a518 partial hash: 126335c0baa7ab1b79416ceeb9f7a518
Proceess Length Word Process Length Word
Length word: 00000000000001c00000000000000000 Length word: 00000000000001c00000000000000000
partial hash: b6edb305dbc7065887fb1b119cd36acb partial hash: b6edb305dbc7065887fb1b119cd36acb
Turn GHASH into GMAC Turn GHASH into GMAC
GHASH: b6 ed b3 05 db c7 06 58 87 fb 1b 11 9c d3 6a cb GHASH: b6 ed b3 05 db c7 06 58 87 fb 1b 11 9c d3 6a cb
K0: 27 36 f9 fe 25 29 5c cf 08 50 58 82 71 f5 7f 35 K0: 27 36 f9 fe 25 29 5c cf 08 50 58 82 71 f5 7f 35
full GMAC: 91 db 4a fb fe ee 5a 97 8f ab 43 93 ed 26 15 fe full GMAC: 91 db 4a fb fe ee 5a 97 8f ab 43 93 ed 26 15 fe
Received tag = 91db4afb feee5a97 8fab4393 ed2615fe Received tag = 91db4afb feee5a97 8fab4393 ed2615fe
Computed tag = 91db4afb feee5a97 8fab4393 ed2615fe Computed tag = 91db4afb feee5a97 8fab4393 ed2615fe
 End of changes. 56 change blocks. 
462 lines changed or deleted 98 lines changed or added

This html diff was produced by rfcdiff 1.42. The latest version is available from http://tools.ietf.org/tools/rfcdiff/