diff --git a/draft-ietf-sframe-enc.html b/draft-ietf-sframe-enc.html index a86d1be..9f6417d 100644 --- a/draft-ietf-sframe-enc.html +++ b/draft-ietf-sframe-enc.html @@ -4,39 +4,40 @@ -Secure Frame (SFrame) +Secure Frame (SFrame): Lightweight Authenticated Encryption for Real-Time Media - + - - + + + + @@ -1036,11 +1037,11 @@ Internet-Draft SFrame -April 2024 +July 2024 Omara, et al. -Expires 6 October 2024 +Expires 9 January 2025 [Page] @@ -1048,17 +1049,17 @@
Workgroup:
-
Network Working Group
+
sframe
Internet-Draft:
draft-ietf-sframe-enc-latest
Published:
- +
Intended Status:
Standards Track
Expires:
-
+
Authors:
@@ -1067,14 +1068,14 @@
J. Uberti
-
Google
+
Fixie.ai
-
S. Murillo
+
S. G. Murillo
CoSMo Software
-
R. L. Barnes, Ed. +
R. Barnes, Ed.
Cisco
@@ -1085,34 +1086,18 @@
-

Secure Frame (SFrame)

+

Secure Frame (SFrame): Lightweight Authenticated Encryption for Real-Time Media

Abstract

This document describes the Secure Frame (SFrame) end-to-end encryption and authentication mechanism for media frames in a multiparty conference call, in -which central media servers (selective forwarding units or SFUs) can access the +which central media servers (Selective Forwarding Units or SFUs) can access the media metadata needed to make forwarding decisions without having access to the actual media.

-

The proposed mechanism differs from the Secure Real-Time Protocol (SRTP) in that +

This mechanism differs from the Secure Real-Time Protocol (SRTP) in that it is independent of RTP (thus compatible with non-RTP media transport) and can be applied to whole media frames in order to be more bandwidth efficient.

-
-

-About This Document -

-

This note is to be removed before publishing as an RFC.

-

- The latest revision of this draft can be found at https://sframe-wg.github.io/sframe/draft-ietf-sframe-enc.html. - Status information for this document may be found at https://datatracker.ietf.org/doc/draft-ietf-sframe-enc/.

-

- Discussion of this document takes place on the - Secure Media Frames Working Group mailing list (mailto:sframe@ietf.org), - which is archived at https://mailarchive.ietf.org/arch/browse/sframe/. - Subscribe at https://www.ietf.org/mailman/listinfo/sframe/.

-

Source for this draft and an issue tracker can be found at - https://github.com/sframe-wg/sframe.

-

@@ -1132,7 +1117,7 @@

time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

- This Internet-Draft will expire on 6 October 2024.

+ This Internet-Draft will expire on 9 January 2025.

@@ -1978,8 +1975,8 @@

4.4.2. Key Derivation

SFrame encryption and decryption use a key and salt derived from the base_key -associated to a KID. Given a base_key value, the key and salt are derived -using HKDF [RFC5869] as follows:

+associated with a KID. Given a base_key value, the key and salt are derived +using HMAC-based Key Derivation Function (HKDF) [RFC5869] as follows:

 def derive_key_salt(KID, base_key):
@@ -2017,10 +2014,10 @@ 

4.4.3. Encryption

SFrame encryption uses the AEAD encryption algorithm for the cipher suite in use. -The key for the encryption is the sframe_key and the nonce is formed by XORing -the sframe_salt with the current counter, encoded as a big-endian integer of +The key for the encryption is the sframe_key. The nonce is formed by first XORing +the sframe_salt with the current CTR value, and then encoding the result as a big-endian integer of length AEAD.Nn.

-

The encryptor forms an SFrame header using the CTR, and KID values provided. +

The encryptor forms an SFrame header using the CTR and KID values provided. The encoded header is provided as AAD to the AEAD encryption operation, together with application-provided metadata about the encrypted media (see Section 9.4).

@@ -2028,13 +2025,13 @@

def encrypt(CTR, KID, metadata, plaintext): sframe_key, sframe_salt = key_store[KID] - # encode_big_endian(x, n) produces an n-byte string encoding the integer x in - # big-endian byte order. + # encode_big_endian(x, n) produces an n-byte string encoding the + # integer x in big-endian byte order. ctr = encode_big_endian(CTR, AEAD.Nn) nonce = xor(sframe_salt, CTR) - # encode_sframe_header produces a byte string encoding the provided KID and - # CTR values into an SFrame Header. + # encode_sframe_header produces a byte string encoding the + # provided KID and CTR values into an SFrame header. header = encode_sframe_header(CTR, KID) aad = header + metadata @@ -2043,11 +2040,11 @@

For example, the metadata input to encryption allows for frame metadata to be -authenticated when SFrame is applied per-frame. After encoding the frame and +authenticated when SFrame is applied per frame. After encoding the frame and before packetizing it, the necessary media metadata will be moved out of the -encoded frame buffer, to be sent in some channel visible to the SFU (e.g., an +encoded frame buffer to be sent in some channel visible to the SFU (e.g., an RTP header extension).

-
+
@@ -2115,7 +2112,7 @@

-
Figure 4: +
Figure 5: Encrypting an SFrame Ciphertext
@@ -2126,11 +2123,11 @@

4.4.4. Decryption

Before decrypting, a receiver needs to assemble a full SFrame ciphertext. When -an SFrame ciphertext may be fragmented into multiple parts for transport (e.g., +an SFrame ciphertext is fragmented into multiple parts for transport (e.g., a whole encrypted frame sent in multiple SRTP packets), the receiving client collects all the fragments of the ciphertext, using appropriate sequencing and start/end markers in the transport. Once all of the required fragments are -available, the client reassembles them into the SFrame ciphertext, then passes +available, the client reassembles them into the SFrame ciphertext and passes the ciphertext to SFrame for decryption.

The KID field in the SFrame header is used to find the right key and salt for the encrypted frame, and the CTR field is used to construct the nonce. The SFrame @@ -2150,13 +2147,13 @@

If a ciphertext fails to decrypt because there is no key available for the KID -in the SFrame header, the client MAY buffer the ciphertext and retry decryption +in the SFrame header, the client MAY buffer the ciphertext and retry decryption once a key with that KID is received. If a ciphertext fails to decrypt for any -other reason, the client MUST discard the ciphertext. Invalid ciphertexts SHOULD be +other reason, the client MUST discard the ciphertext. Invalid ciphertexts SHOULD be discarded in a way that is indistinguishable (to an external observer) from having processed a valid ciphertext. In other words, the SFrame decrypt operation -should be constant-time, regardless of whether decryption succeeds or fails.

-
+should take the same amount of time regardless of whether decryption succeeds or fails.

+
@@ -2224,7 +2221,7 @@

-
Figure 5: +
Figure 6: Decrypting an SFrame Ciphertext
@@ -2253,7 +2250,7 @@

@@ -2322,13 +2319,13 @@

Numeric identifiers for these cipher suites are defined in the IANA registry created in Section 8.1.

In the suite names, the length of the authentication tag is indicated by -the last value: "_128" indicates a hundred-twenty-eight-bit tag, "_80" indicates -an eighty-bit tag, "_64" indicates a sixty-four-bit tag and "_32" indicates a -thirty-two-bit tag.

+the last value: "_128" indicates a 128-bit tag, "_80" indicates +an 80-bit tag, "_64" indicates a 64-bit tag, and "_32" indicates a +32-bit tag.

In a session that uses multiple media streams, different cipher suites might be configured for different media streams. For example, in order to conserve -bandwidth, a session might use a cipher suite with eighty-bit tags for video frames -and another cipher suite with thirty-two-bit tags for audio frames.

+bandwidth, a session might use a cipher suite with 80-bit tags for video frames +and another cipher suite with 32-bit tags for audio frames.

@@ -2340,7 +2337,7 @@

Before encryption or decryption, encryption and authentication subkeys are derived from the single AEAD key. The overall length of the AEAD key is Nka + Nh, where Nka represents the key size for the AES block cipher in use and Nh -represents the output size of the hash function (as in Table 2). +represents the output size of the hash function (as in Section 4.4). The encryption subkey comprises the first Nka bytes and the authentication subkey comprises the remaining Nh bytes.

@@ -2420,16 +2417,16 @@

5.1. Sender Keys

-

If the participants in a call have a pre-existing E2E-secure channel, they can +

If the participants in a call have a preexisting E2E-secure channel, they can use it to distribute SFrame keys. Each client participating in a call generates a fresh base_key value that it will use to encrypt media. The client then uses the E2E-secure channel to send their encryption key to the other participants.

In this scheme, it is assumed that receivers have a signal outside of SFrame for -which client has sent a given frame (e.g., an RTP SSRC). SFrame KID +which client has sent a given frame (e.g., an RTP synchronization source (SSRC)). SFrame KID values are then used to distinguish between versions of the sender's base_key.

-

Key IDs in this scheme have two parts: a "key generation" and a "ratchet step". +

KID values in this scheme have two parts: a "key generation" and a "ratchet step". Both are unsigned integers that begin at zero. The key generation increments -each time the sender distributes a new key to receivers. The "ratchet step" is +each time the sender distributes a new key to receivers. The ratchet step is incremented each time the sender ratchets their key forward for forward secrecy:

@@ -2443,16 +2440,16 @@ 

senders may use different values of R, but each receiver of a given sender needs to know what value of R is used by the sender so that they can recognize when they need to ratchet (vs. expecting a new key). R effectively defines a -re-ordering window, since no more than 2R ratchet steps can be +reordering window, since no more than 2R ratchet steps can be active at a given time. The key generation is sent in the remaining 64 - R -bits of the key ID.

+bits of the KID.

 KID = (key_generation << R) + (ratchet_step % (1 << R))
 

The sender signals such a ratchet step update by sending with a KID value in @@ -2493,7 +2490,7 @@

from each sender (a) the current sender key for that sender and (b) the current KID value for the sender. Evicting a participant requires each sender to send a fresh sender key to all receivers.

-

It is up to the application to decide when sender keys are updated. A sender +

It is the application's responsibility to decide when sender keys are updated. A sender key may be updated by sending a new base_key (updating the key generation) or by hashing the current base_key (updating the ratchet step). Ratcheting the key forward is useful when adding new receivers to an SFrame-based interaction, @@ -2520,10 +2517,10 @@

group.

To generate keys and nonces for SFrame, we use the MLS exporter function to generate a base_key value for each MLS epoch. Each member of the group is -assigned a set of KID values, so that each member has a unique sframe_key and +assigned a set of KID values so that each member has a unique sframe_key and sframe_salt that it uses to encrypt with. Senders may choose any KID value within their assigned set of KID values, e.g., to allow a single sender to send -multiple uncoordinated outbound media streams.

+multiple, uncoordinated outbound media streams.

 base_key = MLS-Exporter("SFrame 1.0 Base Key", "", AEAD.Nk)
@@ -2531,14 +2528,14 @@ 

For compactness, we do not send the whole epoch number. Instead, we send only its low-order E bits, where E is a value set by the application. E -effectively defines a re-ordering window, since no more than 2E -epochs can be active at a given time. Receivers MUST be prepared for the epoch -counter to roll over, removing an old epoch when a new epoch with the same E -lower bits is introduced.

+effectively defines a reordering window, since no more than 2E +epochs can be active at a given time. To handle rollover of the epoch counter, +receivers MUST remove an old epoch when a new epoch with the same low-order +E bits is introduced.

Let S be the number of bits required to encode a member index in the group, i.e., the smallest value such that group_size <= (1 << S). The sender index is encoded in the S bits above the epoch. The remaining 64 - S - E bits of -the KID value are a context value chosen by the sender (context value 0 will +the KID value are a context value chosen by the sender (context value 0 will produce the shortest encoded KID).

@@ -2546,7 +2543,7 @@ 

-
+
@@ -2580,16 +2577,16 @@

-
Figure 7: +
Figure 8: Structure of a KID for an MLS Sender

Once an SFrame stack has been provisioned with the sframe_epoch_secret for an epoch, it can compute the required KID values on demand (as well as the -resulting SFrame keys/nonces derived from the base_key and KID), as it needs +resulting SFrame keys/nonces derived from the base_key and KID) as it needs to encrypt or decrypt for a given member.

@@ -2702,17 +2699,17 @@

6.1. Selective Forwarding Units

-

Selective Forwarding Units (SFUs) (e.g., those described in Section 3.7 of [RFC7667]) receive the media streams from each participant and select which +

SFUs (e.g., those described in Section 3.7 of [RFC7667]) receive the media streams from each participant and select which ones should be forwarded to each of the other participants. There are several approaches for stream selection, but in general, the SFU needs to access -metadata associated to each frame and modify the RTP information of the incoming +metadata associated with each frame and modify the RTP information of the incoming packets when they are transmitted to the received participants.

-

This section describes how this normal SFU modes of operation interact with the +

This section describes how these normal SFU modes of operation interact with the E2EE provided by SFrame.

-
+
-

-6.1.1. LastN and RTP stream reuse +

+6.1.1. RTP Stream Reuse

The SFU may choose to send only a certain number of streams based on the voice activity of the participants. To avoid the overhead involved in establishing new @@ -2720,11 +2717,12 @@

even pre-allocate a predefined number of streams and choose in each moment in time which participant media will be sent through it.

This means that in the same transport-level stream (e.g., an RTP stream defined -by either SSRC or MID) may carry media from different streams of different -participants. As different keys are used by each participant for encoding their -media, the receiver will be able to verify which is the sender of the media -coming within the RTP stream at any given point in time, preventing the SFU -trying to impersonate any of the participants with another participant's media.

+by either SSRC or Media Identification (MID)) may carry media from different +streams of different participants. Because each participant uses a different key +to encrypt their media, the receiver will be able to verify the sender of the +media within the RTP stream at any given point in time. Thus the receiver will +correctly associate the media with the sender indicated by the authenticated +SFrame KID value, irrespective of how the SFU transmits the media to the client.

Note that in order to prevent impersonation by a malicious participant (not the SFU), a mechanism based on digital signature would be required. SFrame does not protect against such attacks.

@@ -2736,18 +2734,18 @@

6.1.2. Simulcast

When using simulcast, the same input image will produce N different encoded -frames (one per simulcast layer) which would be processed independently by the -frame encryptor and assigned an unique counter for each.

+frames (one per simulcast layer), which would be processed independently by the +frame encryptor and assigned an unique CTR value for each.

-
+
-

-6.1.3. SVC +

+6.1.3. Scalable Video Coding (SVC)

In both temporal and spatial scalability, the SFU may choose to drop layers in -order to match a certain bitrate or forward specific media sizes or frames per -second. In order to support the SFU selectively removing layers, the sender MUST +order to match a certain bitrate or to forward specific media sizes or frames per +second. In order to support the SFU selectively removing layers, the sender MUST encapsulate each layer in a different SFrame ciphertext.

@@ -2758,22 +2756,22 @@

6.2. Video Key Frames

-

Forward Security and Post-Compromise Security require that the E2EE keys (base keys) +

Forward security and post-compromise security require that the E2EE keys (base keys) are updated any time a participant joins or leaves the call.

The key exchange happens asynchronously and on a different path than the SFU signaling and media. So it may happen that when a new participant joins the call and the SFU side requests a key frame, the sender generates the E2EE frame -with a key not known by the receiver, so it will be discarded. When the sender +with a key that is not known by the receiver, so it will be discarded. When the sender updates his sending key with the new key, it will send it in a non-key frame, so the receiver will be able to decrypt it, but not decode it.

-

The new Receiver will then re-request a key frame, but due to sender and SFU +

The new receiver will then re-request a key frame, but due to sender and SFU policies, that new key frame could take some time to be generated.

If the sender sends a key frame after the new E2EE key is in use, the time required for the new participant to display the video is minimized.

Note that this issue does not arise for media streams that do not have dependencies among frames, e.g., audio streams. In these streams, each frame is -independently decodeable, so there is never a need to process two frames -together which might be on two sides of a key rotation.

+independently decodable, so there is never a need to process together two frames +that might be on two sides of a key rotation.

@@ -2782,8 +2780,8 @@

6.3. Partial Decoding

Some codecs support partial decoding, where individual packets can be decoded -without waiting for the full frame to arrive. When SFrame is applied per-frame, -this won't be possible because the decoder cannot access data until an entire +without waiting for the full frame to arrive. When SFrame is applied per frame, +partial decoding is not possible because the decoder cannot access data until an entire frame has arrived and has been decrypted.

@@ -2799,12 +2797,12 @@

7.1. No Header Confidentiality

-

SFrame provides integrity protection to the SFrame Header (the key ID and -counter values), but does not provide confidentiality protection. Parties that +

SFrame provides integrity protection to the SFrame header (the KID and +CTR values), but it does not provide confidentiality protection. Parties that can observe the SFrame header may learn, for example, which parties are sending SFrame payloads (from KID values) and at what rates (from CTR values). In cases where SFrame is used for end-to-end security on top of hop-by-hop protections -(e.g., running over SRTP as described in Appendix C.5), the hop-by-hop security +(e.g., running over SRTP as described in Appendix B.5), the hop-by-hop security mechanisms provide confidentiality protection of the SFrame header between hops.

@@ -2824,9 +2822,9 @@

7.3. Key Management

-

Key exchange mechanism is out of scope of this document, however every client -SHOULD change their keys when new clients joins or leaves the call for forward -secrecy and post compromise security.

+

The specifics of key management are beyond the scope of this document. However, every client +SHOULD change their keys when new clients join or leave the call for forward +secrecy and post-compromise security.

@@ -2835,30 +2833,30 @@

7.4. Replay

The handling of replay is out of the scope of this document. However, senders -MUST reject requests to encrypt multiple times with the same key and nonce, +MUST reject requests to encrypt multiple times with the same key and nonce since several AEAD algorithms fail badly in such cases (see, e.g., Section 5.1.1 of [RFC5116]).

-7.5. Risks due to Short Tags +7.5. Risks Due to Short Tags

-

The SFrame ciphersuites based on AES-CTR allow for the use of short +

The SFrame cipher suites based on AES-CTR allow for the use of short authentication tags, which bring a higher risk that an attacker will be able to cause an SFrame receiver to accept an SFrame ciphertext of the attacker's choosing.

-

Assuming that the authentication properties of the ciphersuite are robust, the +

Assuming that the authentication properties of the cipher suite are robust, the only attack that an attacker can mount is an attempt to find an acceptable (ciphertext, tag) combination through brute force. Such a brute-force attack will have an expected success rate of the following form:

attacker_success_rate = attempts_per_second / 2^(8*Nt)

-

For example, a gigabit ethernet connection is able to transmit roughly 2^20 +

For example, a gigabit Ethernet connection is able to transmit roughly 220 packets per second. If an attacker saturated such a link with guesses against a 32-bit authentication tag (Nt=4), then the attacker would succeed on average -roughly once every 2^12 seconds, or about once an hour.

+roughly once every 212 seconds, or about once an hour.

In a typical SFrame usage in a real-time media application, there are a few approaches to mitigating this risk:

    @@ -2877,27 +2875,27 @@

  • Media applications typically do not provide feedback to media senders as to -which media packets failed to decrypt. When media quality feedback +which media packets failed to decrypt. When media-quality feedback mechanisms are used, decryption failures will typically appear as packet losses, but only at an aggregate level.

  • -

    Anti-replay mechanisms (see Section 7.4) prevent the attacker from re-using +

    Anti-replay mechanisms (see Section 7.4) prevent the attacker from reusing valid ciphertexts (either observed or guessed by the attacker). A receiver applying anti-replay controls will only accept one valid plaintext per CTR value. Since the CTR value is covered by SFrame authentication, an attacker has to do a fresh search for a valid tag for every forged ciphertext, even if -the encrypted content is unchanged. In other words, when the above brute -force attack succeeds, it only allows the attacker to send a single SFrame +the encrypted content is unchanged. In other words, when the above brute-force +attack succeeds, it only allows the attacker to send a single SFrame ciphertext; the ciphertext cannot be reused because either it will have the same CTR value and be discarded as a replay, or else it will have a different -CTR value its tag will no longer be valid.

    +CTR value and its tag will no longer be valid.

Nonetheless, without these mitigations, an application that makes use of short tags will be at heightened risk of forgery attacks. In many cases, it is simpler to use full-size tags and tolerate slightly higher bandwidth usage -rather than add the additional defenses necessary to safely use short tags.

+rather than to add the additional defenses necessary to safely use short tags.

@@ -2907,25 +2905,18 @@

8. IANA Considerations

-

This document requests the creation of the following new IANA registry:

- -

This registry should be under a heading of "SFrame", and assignments are made -via the Specification Required policy [RFC8126].

-

RFC EDITOR: Please replace XXXX throughout with the RFC number assigned to -this document

+

IANA has created a new registry called "SFrame Cipher Suites" (Section 8.1) +under the "SFrame" group registry heading. Assignments are made +via the Specification Required policy [RFC8126].

8.1. SFrame Cipher Suites

-

This registry lists identifiers for SFrame cipher suites, as defined in +

The "SFrame Cipher Suites" registry lists identifiers for SFrame cipher suites as defined in Section 4.5. The cipher suite field is two bytes wide, so the valid cipher suites are in the range 0x0000 to 0xFFFF.

-

Template:

+

The registration template is as follows:

  • Value: The numeric value of the cipher suite

    @@ -2935,20 +2926,23 @@

  • Recommended: Whether support for this cipher suite is recommended by the IETF. -Valid values are "Y", "N", and "D", as described in Section 17.1 of [MLS-PROTO]. The default value of the "Recommended" column is "N". Setting the +Valid values are "Y", "N", and "D" as described in Section 17.1 of [MLS-PROTO]. The default value of the "Recommended" column is "N". Setting the Recommended item to "Y" or "D", or changing an item whose current value is "Y" or "D", requires Standards Action [RFC8126].

  • Reference: The document where this cipher suite is defined

    +
  • +
  • +

    Change Controller: Who is authorized to update the row in the registry +Initial contents:

-

Initial contents:

Table 1: -SFrame cipher suite constants +SFrame Cipher Suite Constants
@@ -2956,6 +2950,7 @@

+ @@ -2963,7 +2958,8 @@

- + + @@ -2971,7 +2967,8 @@

AES_128_CTR_HMAC_SHA256_80

- + + @@ -2979,7 +2976,8 @@

AES_128_CTR_HMAC_SHA256_64

- + + @@ -2987,7 +2985,8 @@

AES_128_CTR_HMAC_SHA256_32

- + + @@ -2995,7 +2994,8 @@

AES_128_GCM_SHA256_128

- + + @@ -3003,13 +3003,15 @@

AES_256_GCM_SHA512_128

- + + - + - + +
Table 2: -SFrame cipher suites +SFrame Cipher Suites
Name R ReferenceChange Controller
0x0000 Reserved -RFC XXXXRFC 9605IETF
0x0001YRFC XXXXRFC 9605IETF
0x0002YRFC XXXXRFC 9605IETF
0x0003YRFC XXXXRFC 9605IETF
0x0004YRFC XXXXRFC 9605IETF
0x0005YRFC XXXXRFC 9605IETF
0xF000 - 0xFFFFReserved for private useReserved for Private Use -RFC XXXXRFC 9605IETF
@@ -3026,25 +3028,25 @@

To use SFrame, an application needs to define the inputs to the SFrame encryption and decryption operations, and how SFrame ciphertexts are delivered from sender to receiver (including any fragmentation and reassembly). In this -section, we lay out additional requirements that an integration must meet in +section, we lay out additional requirements that an application must meet in order for SFrame to operate securely.

In general, an application using SFrame is responsible for configuring SFrame. The application must first define when SFrame is applied at all. When SFrame is applied, the application must define which cipher suite is to be used. If new -versions of SFrame are defined in the future, it will be up to the application +versions of SFrame are defined in the future, it will be the application's responsibility to determine which version should be used.

This division of responsibilities is similar to the way other media parameters (e.g., codecs) are typically handled in media applications, in the sense that -they are set up in some signaling protocol, and then not described in the media. +they are set up in some signaling protocol and not described in the media. Applications might find it useful to extend the protocols used for negotiating -other media parameters (e.g., SDP [RFC8866]) to also negotiate parameters for +other media parameters (e.g., Session Description Protocol (SDP) [RFC8866]) to also negotiate parameters for SFrame.

9.1. Header Value Uniqueness

-

Applications MUST ensure that each (base_key, KID, CTR) combination is used +

Applications MUST ensure that each (base_key, KID, CTR) combination is used for at most one SFrame encryption operation. This ensures that the (key, nonce) pairs used by the underlying AEAD algorithm are never reused. Typically this is done by assigning each sender a KID or set of KIDs, then having each sender use @@ -3052,7 +3054,7 @@

encrypted. In addition to its simplicity, this scheme minimizes overhead by keeping CTR values as small as possible.

In applications where an SFrame context might be written to persistent storage, -this context needs to include the last used CTR value. When the context is used +this context needs to include the last-used CTR value. When the context is used later, the application should use the stored CTR value to determine the next CTR value to be used in an encryption operation, and then write the next CTR value back to storage before using the CTR value for encryption. Storing the CTR @@ -3065,17 +3067,17 @@

9.2. Key Management Framework

-

It is up to the application to provision SFrame with a mapping of KID values to +

The application is responsible for provisioning SFrame with a mapping of KID values to base_key values and the resulting keys and salts. More importantly, the application specifies which KID values are used for which purposes (e.g., by -which senders). An application's KID assignment strategy MUST be structured to +which senders). An application's KID assignment strategy MUST be structured to assure the non-reuse properties discussed in Section 9.1.

-

It is also up to the application to define a rotation schedule for keys. For +

The application is also responsible for defining a rotation schedule for keys. For example, one application might have an ephemeral group for every call and keep -rotating keys when end points join or leave the call, while another application +rotating keys when endpoints join or leave the call, while another application could have a persistent group that can be used for multiple calls and simply derives ephemeral symmetric keys for a specific call.

-

It should be noted that KID values are not encrypted by SFrame, and are thus +

It should be noted that KID values are not encrypted by SFrame and are thus visible to any application-layer intermediaries that might handle an SFrame ciphertext. If there are application semantics included in KID values, then this information would be exposed to intermediaries. For example, in the scheme @@ -3091,10 +3093,10 @@

It is the responsibility of the application to handle anti-replay. Replay by network attackers is assumed to be prevented by network-layer facilities (e.g., TLS, SRTP). -As mentioned in Section 7.4, senders MUST reject requests to encrypt multiple times +As mentioned in Section 7.4, senders MUST reject requests to encrypt multiple times with the same key and nonce.

-

It is not mandatory to implement anti-replay on the receiver side. Receivers MAY -apply time or counter based anti-replay mitigations. For example, Section 3.3.2 of [RFC3711] specifies a counter-based anti-replay mitigation, which +

It is not mandatory to implement anti-replay on the receiver side. Receivers MAY +apply time- or counter-based anti-replay mitigations. For example, Section 3.3.2 of [RFC3711] specifies a counter-based anti-replay mitigation, which could be adapted to use with SFrame, using the CTR field as the counter.

@@ -3103,10 +3105,10 @@

9.4. Metadata

-

The metadata input to SFrame operations is pure application-specified data. As -such, it is up to the application to define what information should go in the +

The metadata input to SFrame operations an opaque byte string specified by the application. As +such, the application needs to define what information should go in the metadata input and ensure that it is provided to the encryption and decryption -functions at the appropriate points. A receiver MUST NOT use SFrame-authenticated +functions at the appropriate points. A receiver MUST NOT use SFrame-authenticated metadata until after the SFrame decrypt function has authenticated it, unless the purpose of such usage is to prepare an SFrame ciphertext for SFrame decryption. Essentially, metadata may be used "upstream of SFrame" in a @@ -3114,11 +3116,11 @@

For example, consider an application where SFrame is used to encrypt audio frames that are sent over SRTP, with some application data included in the RTP header extension. Suppose the application also includes this application data in -the SFrame metadata, so that the SFU is allowed to read, but not modify the +the SFrame metadata, so that the SFU is allowed to read, but not modify, the application data. A receiver can use the application data in the RTP header -extension as part of the standard SRTP decryption process, since this is +extension as part of the standard SRTP decryption process since this is required to recover the SFrame ciphertext carried in the SRTP payload. However, -the receiver MUST NOT use the application data for other purposes before SFrame +the receiver MUST NOT use the application data for other purposes before SFrame decryption has authenticated the application data.

@@ -3167,13 +3169,13 @@

10.2. Informative References

-
[I-D.codec-agnostic-rtp-payload-format]
+
[I-D.gouaillard-avtcore-codec-agn-rtp-payload]
-Murillo, S. G. and A. Gouaillard, "Codec agnostic RTP payload format for video", Work in Progress, Internet-Draft, draft-codec-agnostic-rtp-payload-format-00, , <https://datatracker.ietf.org/doc/html/draft-codec-agnostic-rtp-payload-format-00>.
+Murillo, S. G., Fablet, Y., and A. Gouaillard, "Codec agnostic RTP payload format for video", Work in Progress, Internet-Draft, draft-gouaillard-avtcore-codec-agn-rtp-payload-01, , <https://datatracker.ietf.org/doc/html/draft-gouaillard-avtcore-codec-agn-rtp-payload-01>.
[I-D.ietf-moq-transport]
-Curley, L., Pugin, K., Nandakumar, S., Vasiliev, V., and I. Swett, "Media over QUIC Transport", Work in Progress, Internet-Draft, draft-ietf-moq-transport-03, , <https://datatracker.ietf.org/doc/html/draft-ietf-moq-transport-03>.
+Curley, L., Pugin, K., Nandakumar, S., Vasiliev, V., and I. Swett, "Media over QUIC Transport", Work in Progress, Internet-Draft, draft-ietf-moq-transport-05, , <https://datatracker.ietf.org/doc/html/draft-ietf-moq-transport-05>.
[I-D.ietf-webtrans-overview]
@@ -3181,7 +3183,7 @@

[MLS-ARCH]
-Beurdouche, B., Rescorla, E., Omara, E., Inguva, S., and A. Duric, "The Messaging Layer Security (MLS) Architecture", Work in Progress, Internet-Draft, draft-ietf-mls-architecture-13, , <https://datatracker.ietf.org/doc/html/draft-ietf-mls-architecture-13>.
+Beurdouche, B., Rescorla, E., Omara, E., Inguva, S., and A. Duric, "The Messaging Layer Security (MLS) Architecture", Work in Progress, Internet-Draft, draft-ietf-mls-architecture-14, , <https://datatracker.ietf.org/doc/html/draft-ietf-mls-architecture-14>.

[RFC3711]
@@ -3209,66 +3211,56 @@

[TestVectors]
-"SFrame Test Vectors", , <https://github.com/eomara/sframe/blob/master/test-vectors.json>.
+"SFrame Test Vectors", commit 025d568, , <https://github.com/sframe-wg/sframe/blob/025d568/test-vectors/test-vectors.json>.

-
-
-

-Appendix A. Acknowledgements -

-

The authors wish to specially thank Dr. Alex Gouaillard as one of the early -contributors to the document. His passion and energy were key to the design and -development of SFrame.

-
-
-
+

-Appendix B. Example API +Appendix A. Example API

-

This section is not normative.

-

This section describes a notional API that an SFrame implementation might +

This section is not normative.

+

This section describes a notional API that an SFrame implementation might expose. The core concept is an "SFrame context", within which KID values are meaningful. In the key management scheme described in Section 5.1, each sender has a different context; in the scheme described in Section 5.2, all senders -share the same context.

-

An SFrame context stores mappings from KID values to "key contexts", which are +share the same context.

+

An SFrame context stores mappings from KID values to "key contexts", which are different depending on whether the KID is to be used for sending or receiving (an SFrame key should never be used for both operations). A key context tracks the key and salt associated to the KID, and the current CTR value. A key -context to be used for sending also tracks the next CTR value to be used.

-

The primary operations on an SFrame context are as follows:

+context to be used for sending also tracks the next CTR value to be used.

+

The primary operations on an SFrame context are as follows:

    -
  • -

    Create an SFrame context: The context is initialized with a ciphersuite and -no KID mappings.

    +
  • +

    Create an SFrame context: The context is initialized with a cipher suite and +no KID mappings.

  • -
  • -

    Adding a key for sending: The key and salt are derived from the base key, and -used to initialize a send context, together with a zero counter value.

    +
  • +

    Add a key for sending: The key and salt are derived from the base key and +used to initialize a send context, together with a zero CTR value.

  • -
  • -

    Adding a key for receiving: The key and salt are derived from the base key, and -used to initialize a send context.

    +
  • +

    Add a key for receiving: The key and salt are derived from the base key and +used to initialize a send context.

  • -
  • -

    Encrypt a plaintext: Encrypt a given plaintext using the key for a given KID, -including the specified metadata.

    +
  • +

    Encrypt a plaintext: Encrypt a given plaintext using the key for a given KID, +including the specified metadata.

  • -
  • -

    Decrypt an SFrame ciphertext: Decrypt an SFrame ciphertext with the KID -and CTR values specified in the SFrame Header, and the provided metadata.

    +
  • +

    Decrypt an SFrame ciphertext: Decrypt an SFrame ciphertext with the KID +and CTR values specified in the SFrame header, and the provided metadata.

-

Figure 9 shows an example of the types of structures and methods that could -be used to create an SFrame API in Rust.

+

Figure 10 shows an example of the types of structures and methods that could +be used to create an SFrame API in Rust.

-
-
+
+
 type KeyId = u64;
 type Counter = u64;
@@ -3301,54 +3293,58 @@ 

}

-
Figure 9: +
Figure 10: An Example SFrame API
-
+

-Appendix C. Overhead Analysis +Appendix B. Overhead Analysis

-

Any use of SFrame will impose overhead in terms of the amount of bandwidth +

Any use of SFrame will impose overhead in terms of the amount of bandwidth necessary to transmit a given media stream. Exactly how much overhead will be added -depends on several factors:

+depends on several factors:

    -
  • -

    How many senders are involved in a conference (length of KID)

    +
  • +

    The number of senders involved in a conference (length of KID)

  • -
  • -

    How long the conference has been going on (length of CTR)

    +
  • +

    The duration of the conference (length of CTR)

  • -
  • -

    The cipher suite in use (length of authentication tag)

    +
  • +

    The cipher suite in use (length of authentication tag)

  • -
  • -

    Whether SFrame is used to encrypt packets, whole frames, or some other unit

    +
  • +

    Whether SFrame is used to encrypt packets, whole frames, or some other unit

-

Overall, the overhead rate in kilobits per second can be estimated as:

-

+

Overall, the overhead rate in kilobits per second can be estimated as:

+

OverheadKbps = (1 + |CTR| + |KID| + |TAG|) * 8 * CTPerSecond / 1024 -

-

Here the constant value 1 reflects the fixed SFrame header; |CTR| and +

+

Here the constant value 1 reflects the fixed SFrame header; |CTR| and |KID| reflect the lengths of those fields; |TAG| reflects the cipher overhead; and CTPerSecond reflects the number of SFrame ciphertexts -sent per second (e.g., packets or frames per second).

-

In the remainder of this secton, we compute overhead estimates for a collection -of common scenarios.

+sent per second (e.g., packets or frames per second).

+

In the remainder of this section, we compute overhead estimates for a collection +of common scenarios.

-
+

-C.1. Assumptions +B.1. Assumptions

-

In the below calculations, we make conservative assumptions about SFrame -overhead, so that the overhead amounts we compute here are likely to be an upper -bound on those seen in practice.

+

In the below calculations, we make conservative assumptions about SFrame +overhead so that the overhead amounts we compute here are likely to be an upper +bound of those seen in practice.

+
- + @@ -3375,70 +3371,64 @@

- +
Table 3 +Table 3: +Overhead Analysis Assumptions +
Field
Cipher overhead 16Full GCM tag (longest defined here)Full authentication tag (longest defined here)
-

In total, then, we assume that each SFrame encryption will add 22 bytes of -overhead.

-

We consider two scenarios, applying SFrame per-frame and per-packet. In each -scenario, we compute the SFrame overhead in absolute terms (Kbps) and as a -percentage of the base bandwidth.

+
+

In total, then, we assume that each SFrame encryption will add 22 bytes of +overhead.

+

We consider two scenarios: applying SFrame per frame and per packet. In each +scenario, we compute the SFrame overhead in absolute terms (kbps) and as a +percentage of the base bandwidth.

-
+

-C.2. Audio +B.2. Audio

-

In audio streams, there is typically a one-to-one relationship between frames +

In audio streams, there is typically a one-to-one relationship between frames and packets, so the overhead is the same whether one uses SFrame at a per-packet -or per-frame level.

-

The below table considers three scenarios, based on recommended configurations -of the Opus codec [RFC6716]:

-
    -
  • -

    Narrow-band speech: 120ms packets, 8Kbps

    -
  • -
  • -

    Full-band speech: 20ms packets, 32Kbps

    -
  • -
  • -

    Full-band stereo music: 10ms packets, 128Kbps

    -
  • -
+or per-frame level.

+

Table 4 considers three scenarios that are based on recommended configurations +of the Opus codec [RFC6716] (where "fps" stands for "frames per second"):

+ - - + + - + + - + + - + + @@ -3450,28 +3440,28 @@

-
+

-C.3. Video +B.3. Video

-

Video frames can be larger than an MTU and thus are commonly split across +

Video frames can be larger than an MTU and thus are commonly split across multiple frames. Table 5 and Table 6 show the estimated overhead of encrypting a video stream, where SFrame is -applied per-frame and per-packet, respectively. The choices of resolution, -frames per second, and bandwidth are chosen to roughly reflect the capabilities of -modern video codecs across a range from very low to very high quality.

+applied per frame and per packet, respectively. The choices of resolution, +frames per second, and bandwidth roughly reflect the capabilities of +modern video codecs across a range from very low to very high quality.

Table 4: -SFrame overhead for audio streams +SFrame Overhead for Audio Streams
ScenarioFrame length fpsBase KbpsOverhead KbpsBase kbpsOverhead kbps Overhead %
NB speech, 120ms packetsNarrow-band speech120 ms 8.3 8 1.4 17.9%
FB speech, 20ms packetsFull-band speech20 ms 50 32 8.6 26.9%
FB stereo, 10ms packetsFull-band stereo music10 ms 100 128 17.2
- - + + @@ -3518,15 +3508,15 @@

Table 5: -SFrame overhead for a video stream encrypted per-frame +SFrame Overhead for a Video Stream Encrypted per Frame
Scenario fpsBase KbpsOverhead KbpsBase kbpsOverhead kbps Overhead %
- - - + + + @@ -3574,34 +3564,34 @@

Table 6: -SFrame overhead for a video stream encrypted per-packet +SFrame Overhead for a Video Stream Encrypted per Packet
Scenario fpsppsBase KbpsOverhead KbpsPackets per Second (pps)Base kbpsOverhead kbps Overhead %
-

In the per-frame case, the SFrame percentage overhead approaches zero as the -quality of the video goes up, since bandwidth is driven more by picture size +

In the per-frame case, the SFrame percentage overhead approaches zero as the +quality of the video improves since bandwidth is driven more by picture size than frame rate. In the per-packet case, the SFrame percentage overhead approaches the ratio between the SFrame overhead per packet and the MTU (here 22 -bytes of SFrame overhead divided by an assumed 1200-byte MTU, or about 1.8%).

+bytes of SFrame overhead divided by an assumed 1200-byte MTU, or about 1.8%).

-
+

-C.4. Conferences +B.4. Conferences

-

Real conferences usually involve several audio and video streams. The overhead -of SFrame in such a conference is the aggregate of the overhead over all the +

Real conferences usually involve several audio and video streams. The overhead +of SFrame in such a conference is the aggregate of the overhead across all the individual streams. Thus, while SFrame incurs a large percentage overhead on an audio stream, if the conference also involves a video stream, then the audio overhead is likely negligible relative to the overall bandwidth of the -conference.

-

For example, Table 7 shows the overhead estimates for a two -person conference where one person is sending low-quality media and the other -sending high-quality. (And we assume that SFrame is applied per-frame.) The +conference.

+

For example, Table 7 shows the overhead estimates for a two-person +conference where one person is sending low-quality media and the other is +sending high-quality media. (And we assume that SFrame is applied per frame.) The video streams dominate the bandwidth at the SFU, so the total bandwidth overhead -is only around 1%.

+is only around 1%.

@@ -3648,38 +3638,38 @@

-
+

-C.5. SFrame over RTP +B.5. SFrame over RTP

-

SFrame is a generic encapsulation format, but many of the applications in which +

SFrame is a generic encapsulation format, but many of the applications in which it is likely to be integrated are based on RTP. This section discusses how an integration between SFrame and RTP could be done, and some of the challenges -that would need to be overcome.

-

As discussed in Section 4.1, there are two natural patterns for -integrating SFrame into an application: applying SFrame per-frame or per-packet. -In RTP-based applications, applying SFrame per-packet means that the payload of -each RTP packet will be an SFrame ciphertext, starting with an SFrame Header, as -shown in Figure 10. Applying SFrame per-frame means that different +that would need to be overcome.

+

As discussed in Section 4.1, there are two natural patterns for +integrating SFrame into an application: applying SFrame per frame or per packet. +In RTP-based applications, applying SFrame per packet means that the payload of +each RTP packet will be an SFrame ciphertext, starting with an SFrame header, as +shown in Figure 11. Applying SFrame per frame means that different RTP payloads will have different formats: The first payload of a frame will contain the SFrame headers, and subsequent payloads will contain further chunks -of the ciphertext, as shown in Figure 11.

-

In order for these media payloads to be properly interpreted by receivers, +of the ciphertext, as shown in Figure 12.

+

In order for these media payloads to be properly interpreted by receivers, receivers will need to be configured to know which of the above schemes the sender has applied to a given sequence of RTP packets. SFrame does not provide a mechanism for distributing this configuration information. In applications that use SDP for negotiating RTP media streams [RFC8866], an appropriate -extension to SDP could provide this function.

-

Applying SFrame per-frame also requires that packetization and depacketization +extension to SDP could provide this function.

+

Applying SFrame per frame also requires that packetization and depacketization be done in a generic manner that does not depend on the media content of the -packets, since the content being packetized / depacketized will be opaque +packets, since the content being packetized or depacketized will be opaque ciphertext (except for the SFrame header). In order for such a generic -packetization scheme to work interoperably one would have to be defined, e.g., -as proposed in [I-D.codec-agnostic-rtp-payload-format].

+packetization scheme to work interoperably, one would have to be defined, e.g., +as proposed in [I-D.gouaillard-avtcore-codec-agn-rtp-payload].

@@ -3839,2125 +3829,2125 @@

-
+

-Appendix D. Test Vectors +Appendix C. Test Vectors

-

This section provides a set of test vectors that implementations can use to +

This section provides a set of test vectors that implementations can use to verify that they correctly implement SFrame encryption and decryption. In addition to test vectors for the overall process of SFrame encryption/decryption, we also provide test vectors for header encoding/decoding, and for AEAD encryption/decryption using the AES-CTR -construction defined in Section 4.5.1.

-

All values are either numeric or byte strings. Numeric values are represented +construction defined in Section 4.5.1.

+

All values are either numeric or byte strings. Numeric values are represented as hex values, prefixed with 0x. Byte strings are represented in hex -encoding.

-

Line breaks and whitespace within values are inserted to conform to the width -requirements of the RFC format. They should be removed before use.

-

These test vectors are also available in JSON format at [TestVectors]. In the +encoding.

+

Line breaks and whitespace within values are inserted to conform to the width +requirements of the RFC format. They should be removed before use.

+

These test vectors are also available in JSON format at [TestVectors]. In the JSON test vectors, numeric values are JSON numbers and byte string values are -JSON strings containing the hex encoding of the byte strings.

+JSON strings containing the hex encoding of the byte strings.

-
+

-D.1. Header encoding/decoding +C.1. Header Encoding/Decoding

-

For each case, we provide:

+

For each case, we provide:

    -
  • -

    kid: A KID value

    +
  • +

    kid: A KID value

  • -
  • -

    ctr: A CTR value

    +
  • +

    ctr: A CTR value

  • -
  • -

    header: An encoded SFrame header

    +
  • +

    header: An encoded SFrame header

-

An implementation should verify that:

+

An implementation should verify that:

    -
  • -

    Encoding a header with the KID and CTR results in the provided header value

    +
  • +

    Encoding a header with the KID and CTR results in the provided header value

  • -
  • -

    Decoding the provided header value results in the provided KID and CTR values

    +
  • +

    Decoding the provided header value results in the provided KID and CTR values

-
+
 kid: 0x0000000000000000
 ctr: 0x0000000000000000
 header: 00
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000000000000001
 header: 01
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x00000000000000ff
 header: 08ff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000000000000100
 header: 090100
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x000000000000ffff
 header: 09ffff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000000000010000
 header: 0a010000
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000000000ffffff
 header: 0affffff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000000001000000
 header: 0b01000000
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x00000000ffffffff
 header: 0bffffffff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000000100000000
 header: 0c0100000000
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x000000ffffffffff
 header: 0cffffffffff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000010000000000
 header: 0d010000000000
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0000ffffffffffff
 header: 0dffffffffffff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0001000000000000
 header: 0e01000000000000
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x00ffffffffffffff
 header: 0effffffffffffff
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0x0100000000000000
 header: 0f0100000000000000
-
+
-
+
 kid: 0x0000000000000000
 ctr: 0xffffffffffffffff
 header: 0fffffffffffffffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000000000000
 header: 10
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000000000001
 header: 11
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x00000000000000ff
 header: 18ff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000000000100
 header: 190100
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x000000000000ffff
 header: 19ffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000000010000
 header: 1a010000
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000000ffffff
 header: 1affffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000001000000
 header: 1b01000000
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x00000000ffffffff
 header: 1bffffffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000000100000000
 header: 1c0100000000
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x000000ffffffffff
 header: 1cffffffffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000010000000000
 header: 1d010000000000
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0000ffffffffffff
 header: 1dffffffffffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0001000000000000
 header: 1e01000000000000
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x00ffffffffffffff
 header: 1effffffffffffff
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0x0100000000000000
 header: 1f0100000000000000
-
+
-
+
 kid: 0x0000000000000001
 ctr: 0xffffffffffffffff
 header: 1fffffffffffffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000000000000
 header: 80ff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000000000001
 header: 81ff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x00000000000000ff
 header: 88ffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000000000100
 header: 89ff0100
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x000000000000ffff
 header: 89ffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000000010000
 header: 8aff010000
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000000ffffff
 header: 8affffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000001000000
 header: 8bff01000000
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x00000000ffffffff
 header: 8bffffffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000000100000000
 header: 8cff0100000000
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x000000ffffffffff
 header: 8cffffffffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000010000000000
 header: 8dff010000000000
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0000ffffffffffff
 header: 8dffffffffffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0001000000000000
 header: 8eff01000000000000
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x00ffffffffffffff
 header: 8effffffffffffffff
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0x0100000000000000
 header: 8fff0100000000000000
-
+
-
+
 kid: 0x00000000000000ff
 ctr: 0xffffffffffffffff
 header: 8fffffffffffffffffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000000000000
 header: 900100
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000000000001
 header: 910100
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x00000000000000ff
 header: 980100ff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000000000100
 header: 9901000100
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x000000000000ffff
 header: 990100ffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000000010000
 header: 9a0100010000
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000000ffffff
 header: 9a0100ffffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000001000000
 header: 9b010001000000
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x00000000ffffffff
 header: 9b0100ffffffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000000100000000
 header: 9c01000100000000
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x000000ffffffffff
 header: 9c0100ffffffffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000010000000000
 header: 9d0100010000000000
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0000ffffffffffff
 header: 9d0100ffffffffffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0001000000000000
 header: 9e010001000000000000
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x00ffffffffffffff
 header: 9e0100ffffffffffffff
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0x0100000000000000
 header: 9f01000100000000000000
-
+
-
+
 kid: 0x0000000000000100
 ctr: 0xffffffffffffffff
 header: 9f0100ffffffffffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000000000000
 header: 90ffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000000000001
 header: 91ffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x00000000000000ff
 header: 98ffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000000000100
 header: 99ffff0100
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x000000000000ffff
 header: 99ffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000000010000
 header: 9affff010000
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000000ffffff
 header: 9affffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000001000000
 header: 9bffff01000000
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x00000000ffffffff
 header: 9bffffffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000000100000000
 header: 9cffff0100000000
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x000000ffffffffff
 header: 9cffffffffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000010000000000
 header: 9dffff010000000000
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0000ffffffffffff
 header: 9dffffffffffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0001000000000000
 header: 9effff01000000000000
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x00ffffffffffffff
 header: 9effffffffffffffffff
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0x0100000000000000
 header: 9fffff0100000000000000
-
+
-
+
 kid: 0x000000000000ffff
 ctr: 0xffffffffffffffff
 header: 9fffffffffffffffffffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000000000000
 header: a0010000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000000000001
 header: a1010000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x00000000000000ff
 header: a8010000ff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000000000100
 header: a90100000100
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x000000000000ffff
 header: a9010000ffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000000010000
 header: aa010000010000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000000ffffff
 header: aa010000ffffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000001000000
 header: ab01000001000000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x00000000ffffffff
 header: ab010000ffffffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000000100000000
 header: ac0100000100000000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x000000ffffffffff
 header: ac010000ffffffffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000010000000000
 header: ad010000010000000000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0000ffffffffffff
 header: ad010000ffffffffffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0001000000000000
 header: ae01000001000000000000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x00ffffffffffffff
 header: ae010000ffffffffffffff
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0x0100000000000000
 header: af0100000100000000000000
-
+
-
+
 kid: 0x0000000000010000
 ctr: 0xffffffffffffffff
 header: af010000ffffffffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000000000000
 header: a0ffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000000000001
 header: a1ffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x00000000000000ff
 header: a8ffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000000000100
 header: a9ffffff0100
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x000000000000ffff
 header: a9ffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000000010000
 header: aaffffff010000
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000000ffffff
 header: aaffffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000001000000
 header: abffffff01000000
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x00000000ffffffff
 header: abffffffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000000100000000
 header: acffffff0100000000
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x000000ffffffffff
 header: acffffffffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000010000000000
 header: adffffff010000000000
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0000ffffffffffff
 header: adffffffffffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0001000000000000
 header: aeffffff01000000000000
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x00ffffffffffffff
 header: aeffffffffffffffffffff
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0x0100000000000000
 header: afffffff0100000000000000
-
+
-
+
 kid: 0x0000000000ffffff
 ctr: 0xffffffffffffffff
 header: afffffffffffffffffffffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000000000000
 header: b001000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000000000001
 header: b101000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x00000000000000ff
 header: b801000000ff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000000000100
 header: b9010000000100
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x000000000000ffff
 header: b901000000ffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000000010000
 header: ba01000000010000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000000ffffff
 header: ba01000000ffffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000001000000
 header: bb0100000001000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x00000000ffffffff
 header: bb01000000ffffffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000000100000000
 header: bc010000000100000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x000000ffffffffff
 header: bc01000000ffffffffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000010000000000
 header: bd01000000010000000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0000ffffffffffff
 header: bd01000000ffffffffffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0001000000000000
 header: be0100000001000000000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x00ffffffffffffff
 header: be01000000ffffffffffffff
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0x0100000000000000
 header: bf010000000100000000000000
-
+
-
+
 kid: 0x0000000001000000
 ctr: 0xffffffffffffffff
 header: bf01000000ffffffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000000000000
 header: b0ffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000000000001
 header: b1ffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x00000000000000ff
 header: b8ffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000000000100
 header: b9ffffffff0100
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x000000000000ffff
 header: b9ffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000000010000
 header: baffffffff010000
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000000ffffff
 header: baffffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000001000000
 header: bbffffffff01000000
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x00000000ffffffff
 header: bbffffffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000000100000000
 header: bcffffffff0100000000
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x000000ffffffffff
 header: bcffffffffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000010000000000
 header: bdffffffff010000000000
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0000ffffffffffff
 header: bdffffffffffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0001000000000000
 header: beffffffff01000000000000
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x00ffffffffffffff
 header: beffffffffffffffffffffff
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0x0100000000000000
 header: bfffffffff0100000000000000
-
+
-
+
 kid: 0x00000000ffffffff
 ctr: 0xffffffffffffffff
 header: bfffffffffffffffffffffffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000000000000
 header: c00100000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000000000001
 header: c10100000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x00000000000000ff
 header: c80100000000ff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000000000100
 header: c901000000000100
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x000000000000ffff
 header: c90100000000ffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000000010000
 header: ca0100000000010000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000000ffffff
 header: ca0100000000ffffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000001000000
 header: cb010000000001000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x00000000ffffffff
 header: cb0100000000ffffffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000000100000000
 header: cc01000000000100000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x000000ffffffffff
 header: cc0100000000ffffffffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000010000000000
 header: cd0100000000010000000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0000ffffffffffff
 header: cd0100000000ffffffffffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0001000000000000
 header: ce010000000001000000000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x00ffffffffffffff
 header: ce0100000000ffffffffffffff
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0x0100000000000000
 header: cf01000000000100000000000000
-
+
-
+
 kid: 0x0000000100000000
 ctr: 0xffffffffffffffff
 header: cf0100000000ffffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000000000000
 header: c0ffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000000000001
 header: c1ffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x00000000000000ff
 header: c8ffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000000000100
 header: c9ffffffffff0100
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x000000000000ffff
 header: c9ffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000000010000
 header: caffffffffff010000
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000000ffffff
 header: caffffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000001000000
 header: cbffffffffff01000000
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x00000000ffffffff
 header: cbffffffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000000100000000
 header: ccffffffffff0100000000
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x000000ffffffffff
 header: ccffffffffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000010000000000
 header: cdffffffffff010000000000
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0000ffffffffffff
 header: cdffffffffffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0001000000000000
 header: ceffffffffff01000000000000
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x00ffffffffffffff
 header: ceffffffffffffffffffffffff
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0x0100000000000000
 header: cfffffffffff0100000000000000
-
+
-
+
 kid: 0x000000ffffffffff
 ctr: 0xffffffffffffffff
 header: cfffffffffffffffffffffffffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000000000000
 header: d0010000000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000000000001
 header: d1010000000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x00000000000000ff
 header: d8010000000000ff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000000000100
 header: d90100000000000100
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x000000000000ffff
 header: d9010000000000ffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000000010000
 header: da010000000000010000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000000ffffff
 header: da010000000000ffffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000001000000
 header: db01000000000001000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x00000000ffffffff
 header: db010000000000ffffffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000000100000000
 header: dc0100000000000100000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x000000ffffffffff
 header: dc010000000000ffffffffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000010000000000
 header: dd010000000000010000000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0000ffffffffffff
 header: dd010000000000ffffffffffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0001000000000000
 header: de01000000000001000000000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x00ffffffffffffff
 header: de010000000000ffffffffffffff
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0x0100000000000000
 header: df0100000000000100000000000000
-
+
-
+
 kid: 0x0000010000000000
 ctr: 0xffffffffffffffff
 header: df010000000000ffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000000000000
 header: d0ffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000000000001
 header: d1ffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x00000000000000ff
 header: d8ffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000000000100
 header: d9ffffffffffff0100
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x000000000000ffff
 header: d9ffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000000010000
 header: daffffffffffff010000
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000000ffffff
 header: daffffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000001000000
 header: dbffffffffffff01000000
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x00000000ffffffff
 header: dbffffffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000000100000000
 header: dcffffffffffff0100000000
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x000000ffffffffff
 header: dcffffffffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000010000000000
 header: ddffffffffffff010000000000
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0000ffffffffffff
 header: ddffffffffffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0001000000000000
 header: deffffffffffff01000000000000
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x00ffffffffffffff
 header: deffffffffffffffffffffffffff
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0x0100000000000000
 header: dfffffffffffff0100000000000000
-
+
-
+
 kid: 0x0000ffffffffffff
 ctr: 0xffffffffffffffff
 header: dfffffffffffffffffffffffffffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000000000000
 header: e001000000000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000000000001
 header: e101000000000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x00000000000000ff
 header: e801000000000000ff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000000000100
 header: e9010000000000000100
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x000000000000ffff
 header: e901000000000000ffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000000010000
 header: ea01000000000000010000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000000ffffff
 header: ea01000000000000ffffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000001000000
 header: eb0100000000000001000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x00000000ffffffff
 header: eb01000000000000ffffffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000000100000000
 header: ec010000000000000100000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x000000ffffffffff
 header: ec01000000000000ffffffffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000010000000000
 header: ed01000000000000010000000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0000ffffffffffff
 header: ed01000000000000ffffffffffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0001000000000000
 header: ee0100000000000001000000000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x00ffffffffffffff
 header: ee01000000000000ffffffffffffff
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0x0100000000000000
 header: ef010000000000000100000000000000
-
+
-
+
 kid: 0x0001000000000000
 ctr: 0xffffffffffffffff
 header: ef01000000000000ffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000000000000
 header: e0ffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000000000001
 header: e1ffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x00000000000000ff
 header: e8ffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000000000100
 header: e9ffffffffffffff0100
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x000000000000ffff
 header: e9ffffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000000010000
 header: eaffffffffffffff010000
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000000ffffff
 header: eaffffffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000001000000
 header: ebffffffffffffff01000000
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x00000000ffffffff
 header: ebffffffffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000000100000000
 header: ecffffffffffffff0100000000
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x000000ffffffffff
 header: ecffffffffffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000010000000000
 header: edffffffffffffff010000000000
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0000ffffffffffff
 header: edffffffffffffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0001000000000000
 header: eeffffffffffffff01000000000000
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x00ffffffffffffff
 header: eeffffffffffffffffffffffffffff
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0x0100000000000000
 header: efffffffffffffff0100000000000000
-
+
-
+
 kid: 0x00ffffffffffffff
 ctr: 0xffffffffffffffff
 header: efffffffffffffffffffffffffffffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000000000000
 header: f00100000000000000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000000000001
 header: f10100000000000000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x00000000000000ff
 header: f80100000000000000ff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000000000100
 header: f901000000000000000100
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x000000000000ffff
 header: f90100000000000000ffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000000010000
 header: fa0100000000000000010000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000000ffffff
 header: fa0100000000000000ffffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000001000000
 header: fb010000000000000001000000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x00000000ffffffff
 header: fb0100000000000000ffffffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000000100000000
 header: fc01000000000000000100000000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x000000ffffffffff
 header: fc0100000000000000ffffffffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000010000000000
 header: fd0100000000000000010000000000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0000ffffffffffff
 header: fd0100000000000000ffffffffffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0001000000000000
 header: fe010000000000000001000000000000
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x00ffffffffffffff
 header: fe0100000000000000ffffffffffffff
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0x0100000000000000
 header: ff010000000000000001000000000000
         00
-
+
-
+
 kid: 0x0100000000000000
 ctr: 0xffffffffffffffff
 header: ff0100000000000000ffffffffffffff
         ff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000000000000
 header: f0ffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000000000001
 header: f1ffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x00000000000000ff
 header: f8ffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000000000100
 header: f9ffffffffffffffff0100
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x000000000000ffff
 header: f9ffffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000000010000
 header: faffffffffffffffff010000
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000000ffffff
 header: faffffffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000001000000
 header: fbffffffffffffffff01000000
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x00000000ffffffff
 header: fbffffffffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000000100000000
 header: fcffffffffffffffff0100000000
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x000000ffffffffff
 header: fcffffffffffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000010000000000
 header: fdffffffffffffffff010000000000
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0000ffffffffffff
 header: fdffffffffffffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0001000000000000
 header: feffffffffffffffff01000000000000
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x00ffffffffffffff
 header: feffffffffffffffffffffffffffffff
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0x0100000000000000
 header: ffffffffffffffffff01000000000000
         00
-
+
-
+
 kid: 0xffffffffffffffff
 ctr: 0xffffffffffffffff
 header: ffffffffffffffffffffffffffffffff
         ff
-
+
-
+

-D.2. AEAD encryption/decryption using AES-CTR and HMAC +C.2. AEAD Encryption/Decryption Using AES-CTR and HMAC

-

For each case, we provide:

+

For each case, we provide:

    -
  • -

    cipher_suite: The index of the cipher suite in use (see -Section 8.1)

    +
  • +

    cipher_suite: The index of the cipher suite in use (see +Section 8.1)

  • -
  • -

    key: The key input to encryption/decryption

    +
  • +

    key: The key input to encryption/decryption

  • -
  • -

    enc_key: The encryption subkey produced by the derive_subkeys() algorithm

    +
  • +

    enc_key: The encryption subkey produced by the derive_subkeys() algorithm

  • -
  • -

    auth_key: The encryption subkey produced by the derive_subkeys() algorithm

    +
  • +

    auth_key: The encryption subkey produced by the derive_subkeys() algorithm

  • -
  • -

    nonce: The nonce input to encryption/decryption

    +
  • +

    nonce: The nonce input to encryption/decryption

  • -
  • -

    aad: The aad input to encryption/decryption

    +
  • +

    aad: The aad input to encryption/decryption

  • -
  • -

    pt: The plaintext

    +
  • +

    pt: The plaintext

  • -
  • -

    ct: The ciphertext

    +
  • +

    ct: The ciphertext

-

An implementation should verify that the following are true, where -AEAD.Encrypt and AEAD.Decrypt are as defined in Section 4.5.1:

+

An implementation should verify that the following are true, where +AEAD.Encrypt and AEAD.Decrypt are as defined in Section 4.5.1:

    -
  • -

    AEAD.Encrypt(key, nonce, aad, pt) == ct

    +
  • +

    AEAD.Encrypt(key, nonce, aad, pt) == ct

  • -
  • -

    AEAD.Decrypt(key, nonce, aad, ct) == pt

    +
  • +

    AEAD.Decrypt(key, nonce, aad, ct) == pt

-

The other values in the test vector are intermediate values provided to -facilitate debugging of test failures.

-
+

The other values in the test vector are intermediate values provided to +facilitate debugging of test failures.

+
 cipher_suite: 0x0001
 key: 000102030405060708090a0b0c0d0e0f
@@ -5972,9 +5962,9 @@ 

652d656e63 ct: 6339af04ada1d064688a442b8dc69d5b 6bfa40f4bef0583e8081069cc60705 -

+
-
+
 cipher_suite: 0x0002
 key: 000102030405060708090a0b0c0d0e0f
@@ -5989,9 +5979,9 @@ 

652d656e63 ct: 6339af04ada1d064688a442b8dc69d5b 6bfa40f4be6e93b7da076927bb -

+
-
+
 cipher_suite: 0x0003
 key: 000102030405060708090a0b0c0d0e0f
@@ -6006,69 +5996,69 @@ 

652d656e63 ct: 6339af04ada1d064688a442b8dc69d5b 6bfa40f4be09480509 -

+
-
+

-D.3. SFrame encryption/decryption +C.3. SFrame Encryption/Decryption

-

For each case, we provide:

+

For each case, we provide:

    -
  • -

    cipher_suite: The index of the cipher suite in use (see -Section 8.1)

    +
  • +

    cipher_suite: The index of the cipher suite in use (see +Section 8.1)

  • -
  • -

    kid: A KID value

    +
  • +

    kid: A KID value

  • -
  • -

    ctr: A CTR value

    +
  • +

    ctr: A CTR value

  • -
  • -

    base_key: The base_key input to the derive_key_salt algorithm

    +
  • +

    base_key: The base_key input to the derive_key_salt algorithm

  • -
  • -

    sframe_key_label: The label used to derive sframe_key in the derive_key_salt algorithm

    +
  • +

    sframe_key_label: The label used to derive sframe_key in the derive_key_salt algorithm

  • -
  • -

    sframe_salt_label: The label used to derive sframe_salt in the derive_key_salt algorithm

    +
  • +

    sframe_salt_label: The label used to derive sframe_salt in the derive_key_salt algorithm

  • -
  • -

    sframe_secret: The sframe_secret variable in the derive_key_salt algorithm

    +
  • +

    sframe_secret: The sframe_secret variable in the derive_key_salt algorithm

  • -
  • -

    sframe_key: The sframe_key value produced by the derive_key_salt algorithm

    +
  • +

    sframe_key: The sframe_key value produced by the derive_key_salt algorithm

  • -
  • -

    sframe_salt: The sframe_salt value produced by the derive_key_salt algorithm

    +
  • +

    sframe_salt: The sframe_salt value produced by the derive_key_salt algorithm

  • -
  • -

    metadata: The metadata input to the SFrame encrypt algorithm

    +
  • +

    metadata: The metadata input to the SFrame encrypt algorithm

  • -
  • -

    pt: The plaintext

    +
  • +

    pt: The plaintext

  • -
  • -

    ct: The SFrame ciphertext

    +
  • +

    ct: The SFrame ciphertext

-

An implementation should verify that the following are true, where +

An implementation should verify that the following are true, where encrypt and decrypt are as defined in Section 4.4, using an SFrame -context initialized with base_key assigned to kid:

+context initialized with base_key assigned to kid:

    -
  • -

    encrypt(ctr, kid, metadata, plaintext) == ct

    +
  • +

    encrypt(ctr, kid, metadata, plaintext) == ct

  • -
  • -

    decrypt(metadata, ct) == pt

    +
  • +

    decrypt(metadata, ct) == pt

-

The other values in the test vector are intermediate values provided to -facilitate debugging of test failures.

-
+

The other values in the test vector are intermediate values provided to +facilitate debugging of test failures.

+
 cipher_suite: 0x0001
 kid: 0x0000000000000123
@@ -6094,9 +6084,9 @@ 

ct: 9901234567449408b6f490086165b9d6 f62b24ae1a59a56486b4ae8ed036b889 12e24f11 -

+
-
+
 cipher_suite: 0x0002
 kid: 0x0000000000000123
@@ -6122,9 +6112,9 @@ 

ct: 99012345673f31438db4d09434e43afa 0f8a2f00867a2be085046a9f5cb4f101 d607 -

+
-
+
 cipher_suite: 0x0003
 kid: 0x0000000000000123
@@ -6149,9 +6139,9 @@ 

652d656e63 ct: 990123456717fc8af28a5a695afcfc6c 8df6358a17e26b2fcb3bae32e443 -

+
-
+
 cipher_suite: 0x0004
 kid: 0x0000000000000123
@@ -6175,9 +6165,9 @@ 

ct: 9901234567b7412c2513a1b66dbb4884 1bbaf17f598751176ad847681a69c6d0 b091c07018ce4adb34eb -

+
-
+
 cipher_suite: 0x0005
 kid: 0x0000000000000123
@@ -6204,10 +6194,20 @@ 

ct: 990123456794f509d36e9beacb0e261d 99c7d1e972f1fed787d4049f17ca2135 3c1cc24d56ceabced279 -

+ +
+
+
+
+

+Acknowledgements +

+

The authors wish to specially thank Dr. Alex Gouaillard as one of the early +contributors to the document. His passion and energy were key to the design and +development of SFrame.

@@ -6216,7 +6216,7 @@

Contributors

-
Frederic Jacobs
+
Frédéric Jacobs
Apple
Justin Uberti
-
Google
+
Fixie.ai
@@ -6287,7 +6287,7 @@

-
Richard L. Barnes (editor)
+
Richard Barnes (editor)
Cisco

Table 7: -SFrame overhead for a two-person conference +SFrame Overhead for a Two-Person Conference