






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Date: June 2, 2026
Ericsson AB
Group Function Technology
SE-164 80 Stockholm
Dear NIST,
Thanks for your continued efforts to produce well-written, user-friendly, and open-access security
documents. We welcome NIST’s plans to revise SP 800-38F and to remove TKW from the
specification. Below we provide our feedback on NIST’s questions [1], as well as additional comments
on other aspects of SP 800-38F [2].
General comments and feedback on NIST’s questions [1]:
methods can introduce significant security vulnerabilities. Securely composing encryption and
authentication is non-trivial, and most users cannot be expected to implement such
combinations correctly. Historical experience illustrates this clearly: several compositions used
in TLS and SSH exhibited serious weaknesses, whereas the compositions adopted in 3GPP NAS,
3GPP PDCP, and IPsec ESP are secure. This underlines the importance of involving
cryptographic expertise, such as ETSI SAGE and IETF CFRG in the standardization process.
The problem of insecure compositions is not limited to key wrapping, but applies more broadly
to encrypted data in general. We therefore suggest that NIST provide general guidance, in a
specification separate from NIST SP 800-38F, on how to securely combine a keystream
generator, such as AES-CTR(𝐾, 𝑁, 𝐿) or KMAC(𝐾, 𝑁, 𝐿) with a MAC algorithm in an Encrypt-
then-MAC (EtM) composition, including guidance on nonce handling and associated data. Such
guidance could follow an approach similar to that used for composite KEM construction in
Section 4.6.1 of NIST SP 800- 227 [3]. We see little justification for the continued use of ECB,
CBC, CFB, and OFB modes, and believe these modes should be retired. ECB is not even IND-CPA
secure; CBC is vulnerable to padding oracle attacks; and CFB and OFB are seldom used today.
We suggest that NIST makes it very clear that encryption without integrity is insufficient, as it
does not provide security against active attackers. Unauthenticated encryption is a significant
practical problem. Encryption shall be authenticated.
1
1 Except in cases such as message 2 of the SIGMA-I protocol, where unauthenticated encryption can be proven sufficient.
It is very problematic that IETF uses the term ECB for header protection in QUIC [ 4 ] and
DTLS 1.3 [ 5 ]. We have encountered cases where this terminology has led practitioners to
believe that ECB is fine for general data protection. It also increases the likelihood that
cryptographic libraries will continue to expose ECB interfaces, when they should remove ECB
support entirely. We therefore suggest that NIST withdraw the ECB specification as soon as
possible and replace it with a narrowly scoped mode, Single Block Encryption (SBE), intended
for use cases such as header protection and PIN encryption. Alternatively, the requirement in
FIPS 197 [6] stating that AES “shall be used in conjunction with a FIPS-approved or NIST-
recommended mode of operation” could be revised.
uses AES- 128 - CTR + HMAC-SHA1 in an EtM composition; Secure Frame (SFrame) [7], which
uses AES- 128 - CTR + HMAC-SHA-256 in an EtM composition; and 4G and 5G 3GPP protocols,
where NAS uses AES- 128 - CTR + AES- 128 - CMAC in an EtM composition, while PDCP uses
AES- 128 - CTR + AES- 128 - CMAC in a MAC-then-Encrypt (MtE) composition. Future 5G systems
are expected to optionally support AES- 256 - CTR + AES- 256 - GMAC-SST [ 8 ] in the same
compositions.
We agree with NIST’s guidance in 800-38F [2] to segregate keying material from other data. A
prime example of the security risks inherent in failing to segregate keys from other types of data
is SDP Security Descriptions [ 9 ] also known as Security Descriptions Enabling Surveillance
(SDES). In SDES, keys are transmitted within the signaling channel itself. This means the keys
are exposed in plaintext to any party with access to the signaling channel, including passive
eavesdroppers and active intermediaries such as Session Border Controllers, which terminate
and inspect signaling by design. Furthermore, because signaling traffic is routinely captured for
troubleshooting and auditing, these plaintext keys are frequently written to persistent system
logs and diagnostic traces, where they remain vulnerable long after the session has ended.
See [ 10 ] for a detailed analysis. We strongly suggest that NIST explicitly discourage all use of
SDP Security Descriptions for key transport.
NIST’s currently approved AEAD modes or to compositions already standardized in existing
protocols. Assuming sufficiently large key sizes such that brute-force key recovery attacks can
be neglected, the expected number of successful forgeries against a strong integrity mechanism
should, for all practical values of 𝑣, be ≈ 𝑣/ 2
!
, where 𝑣 is the number of forgery attempts and 𝑡
is the tag length. This property holds for AES-CTR combined with a 96- or 128 - bit KMAC
authentication tag, assuming the composition is instantiated in an Encrypt-then-MAC
construction with cryptographically separated keys. In contrast, the forgery bounds of GCM and
CCM are substantially weaker and deviate significantly from the expected 𝑣/ 2
!
behavior. Both
IETF [7] and 3GPP [8] have recently standardized new compositions, reflecting the fact that
NIST’s existing AEADs are insufficient for some use cases. We therefore believe that new secure
compositions following NIST guidance should be approved.
Rijndael- 256 - based Acc256, we no longer believe that NIST should approve AES-SIV. We
deterministic scheme without nonces is "just as good" as IND-CCA2 for transporting
cryptographic keys.
We do not believe that determinism and the absence of nonces should be design criteria for key
wrapping, as these choices lead to the vulnerability “Equality of Plaintexts” described in
Appendix A. Instead, any future design should focus on mitigating this vulnerability while still
ensuring DAE security [1 5 ] in the presence of a poor random number generator or repeated
nonces.
"ICV2 The 32-bit default ICV for KWP: 0xA65959A6"
The term “default” suggests that an implementation could choose alternative ICV values.
However, Section 8 states that 𝑊 and 𝑊
"#
are not approved for use independently of AES-KW
and AES-KWP. We therefore suggest removing “default”.
The revision could benefit from an explanation of how the ICV constants were chosen. We note
that 0xA6 has Hamming weight 4 and that 0x59 is its bitwise complement. The use of special
constants raises questions about whether the algorithm remains secure under alternative
choices. We welcome the fact that NIST is planning to use all-zero ICVs in Accordion-derived
functions [12], which suggests that the security does not depend on selecting non-trivial or
carefully crafted constant values.
function, then CIPH
K
will be the AES encryption function.”
NIST should consider limiting the KW-AE and KWP-AE constructions to use only the forward
cipher operation (AES encryption). Allowing a choice between the forward and inverse cipher
operations does not improve security and can hinder interoperability.
independent KEKs.
than 2
54
semiblocks.”
We suggest removing the statement “KW can accept longer inputs,” as Appendix A.
demonstrates that KW cannot securely support longer inputs.
$%
− 1 octet plaintext results in a
$%
%&
the ciphertext limit for KWP to “2 to 2
%&
specification. The index-based alternative algorithm description on page 5 of RFC 3394 is more
easily implemented in software and can be implemented in-place, a property we recommend
NIST explicitly highlight. This in-place capability is particularly relevant in memory-constrained
environments, such as low-power IoT devices, where avoiding additional memory allocations
can be important.
𝐴 and 𝑅 shall be destroyed (zeroized) before returning from both the wrapping function 𝑊 and
the unwrapping function 𝑊
"#
, noting that compilers may optimize away naive memset calls. In
addition, on failure, implementations shall not release any portion of the output of 𝑊
"#
to the
caller before all ICV and padding checks have completed successfully. The output of 𝑊
"#
must
be destroyed (zeroized) prior to returning FAIL. The current pseudocode for KWP-AD “leaks”
whether a FAIL is due to the ICV check or padding validation. Since 𝑊
"#
is assumed to behave
as a wide-block cipher, this information might not provide a practical advantage to an attacker,
but the revision should clarify whether this is acceptable in production code or whether
constant-time error handling is required.
functions [ 11 – 12 ], we suggest that NIST consider adding support of 256 - bit block sizes, such as
Rijndael-256 with 128-bit semiblocks. This modification appears conceptually straightforward,
and we believe the current document would have been cleaner if 𝑊 and 𝑇𝑊 had been specified
as a single function with the block size treated as a variable, rather than as separate fixed-size
designs. In most block cipher modes, the narrow 128 - bit block size of AES is a limiting factor. As
shown in Appendix A.4, this also applies to AES Key Wrap.
length of the wrapped key. This information may allow an attacker to focus efforts on the
shortest wrapped keys or passwords. We suggest describing how applications can mitigate this
weakness by adding application-layer variable-length padding to the AES-KW or AES-KWP
plaintext. Similarly, context binding can be achieved by appending application-specific context
information to the plaintext before wrapping. These measures also reduce the probability of
successful forgery attacks.
security property. While GCM and CCM with sequential nonces support protocol-level replay
protection, AES-KW does not use nonces and therefore requires augmentation with a separate
replay protection mechanism. We also recommend that NIST explain that the wrapping
function 𝑊 and encode-then-encipher can be used to provide not only integrity protection, but
also AERO-style replay protection [1 7 ], with lower overhead than conventional approaches.
probability that the string will be a genuine ciphertext is exactly 1 in 2
64
for KW, and
approximately 1 in 2
64
for KWP. The probability that a randomly chosen ciphertext will appear
to be genuine for TKW is greater, 1 in 2
32
”
This is not a realistic attack model, since an adversary would mount adaptive chosen-ciphertext
attacks designed to maximize the success probability. As explained in Appendix A.4, such
from which S||T was generated.”
It should be clarified that this implies an attacker with a decryption oracle will learn a prefix of
the unknown plaintext 𝑆. That a forgery leads to attacks on confidentiality is common;
however, in this case it shows that AES-KW does not fulfil the NIST Key Wrap
requirement [13, 16] that “each ciphertext bit should be a highly non-linear function of each
plaintext bit, and (when unwrapping) each plaintext bit should be a highly non-linear function
of each ciphertext bit.” This should be mentioned in the revision.
Suppose an attacker encrypts 𝑥 plaintexts of length ≈ 2
*(
semiblocks, where all semiblocks are
identical except 𝑃
. Then the probability that the last 𝑑 semiblocks of two ciphertext collide is
%
"*&
/ 6 !. Setting 𝑃 = 0. 5 gives 𝑥 ≈ 2
$(.-*
and a total data complexity of ≈ 2
...-*
semiblocks.
the direction of one or more passes, e.g., performing the final pass in the opposite direction,
seems to mitigate the attack.
“Consequently, if m < 2
54
, as required in Sec. 5.3.1, then P < 2
”
Note that 𝑃 is the additional forgery probability; the total forgery probability is 𝑃
)
"'(
The requirement is therefore that 𝑃 ≪ 2
"'(
, which holds for 𝑚 < 2
*(
28
, as required in Sec. 5.3.1, then P < 2
”
For 𝑚 < 2
%.
the forgery probability is 𝑃
)
"$%
"%(
"$#.*'
. We believe the limit
should have been 𝑚 < 2
%-
security.”
The observation in Appendix A.4 demonstrates that the wrapping function 𝑊 does not achieve
beyond-birthday-bound (BBB) security. Furthermore, our distinguishing attack on AES-KWP
below demonstrates an additional way in which it fails to achieve BBB security. We recommend
removing the quoted phrase and adding a clarification in Appendix A.4 that the observation
shows that AES-KW falls short of BBB security, which is not an attack but an important
qualification of its security properties.
agree with many of their observations, we do not agree with the following points:
“mysterious aspects of the construction (eg, the byte-reversals or xoring-in counters)”
“The xoring of the counter 6t + i into the blockcipher output is not explained; why is this done?”
We view the injection of a round-dependent constant or counter as not only sensible but
standard cryptographic hygiene and best practice. XORing the counter 𝑡 into the state is an
efficient way to break symmetry between iterations and prevent short cycles, fixed points, and
slide-like behaviors. Without the round counter, AES-KW can be viewed as a fixed permutation
𝑄 composed with itself six times, i.e., 𝑊 = 𝑄
'
. We suggest that NIST include text along the lines
above to motivate the design of the wrapping function 𝑊.
As a concrete example, when the round counter 𝑡 is omitted, 𝑊 does not behave like a random
permutation, since cycles in AES induces a large family of fixed points in 𝑊. If 𝐴‖𝑅 is a fixed
point of AES, i.e., AES(𝐴‖𝑅) = 𝐴‖𝑅, then 𝐴‖𝑅‖𝑅, 𝐴‖𝑅‖𝑅‖𝑅, … are all fixed points of 𝑊. Similarly,
if 𝐴‖𝑅 lies on a 2-cycle, i.e., AES
= 𝐵‖𝑆 and AES
= 𝐴‖𝑅, then 𝐴‖𝑅‖𝑆‖𝑅, 𝐵‖𝑆‖𝑅‖𝑆,
𝐴‖𝑅‖𝑆‖𝑅‖𝑆‖𝑅, 𝐵‖𝑆‖𝑅‖𝑆‖𝑅‖𝑆, … are all fixed point of 𝑊. 3 - and 6-cycles also induce fixed
points in 𝑊. For a random permutation, the expected number of fixed points is 1. In contrast,
for 𝑊 without the round counter 𝑡, the expected number of fixed points is 2 – 5, depending on
the input length.
differently, including the decision to use the same key 𝐾 as for longer plaintexts. Conceptually,
this is similar to reusing the same key across two distinct modes of operation. Different
cryptographic functions should use independent keys or derived subkeys. Similar patterns of key
reuse across distinct constructions have led to serious vulnerabilities in the past, for example,
when the same key is used for both CBC and CBC-MAC, or for CMAC and a Key Check Value
The inclusion of short 128 - bit ciphertexts in KWP enables a trivial encryption-oracle
distinguisher: an attacker can query the encryption of all 2
'(
8 - octet strings and observe the
absence of ciphertext collisions. We suggest that NIST include this observation in the revision.
Additionally, for KWP the observation in Appendix A.4 can be extended as follows. Given a valid
ciphertext 𝑆 ‖ 𝑇, the attacker queries the decryption of 𝑆
'(
‖ 𝑇. If the result is accepted
as valid, it will with high probability have the format 𝐼𝐶𝑉 2 ‖ [ 8 ]
$%
‖ 𝑋. The attacker then queries
the decryption of 𝐼𝐶𝑉 2 ‖ [ 8 ]
$%
‖ 𝑌, obtaining the ciphertext 𝐶
%
. The ciphertexts 𝑆
‖ 𝑇 and
'(
%
0
%
now have a guaranteed collision 𝐴
' 0 "#
' 0 "#
$%
The probability that 𝐶
'(
%
0
%
is a successful forgery is therefore
)
'(
'(
Consequently, if 𝑚 < 2
*#
, then 𝑃
)
"'(
"-#.&#
"'$.&&
. This shows that the use of a 64-bit
length field in KWP without 𝐼𝐶𝑉 2 would have been a questionable design choice.
We believe that KW made the right design choice in disallowing 64-bit plaintexts. We suggest
that NIST raise the minimum allowed plaintext length in KWP to 9 octets. In practice, the use of
1 – 8 octet plaintexts is likely negligible or non-existent since Single-DES was disallowed.
[7] Secure Frame (SFrame): Lightweight Authenticated Encryption for Real-Time Media
https://www.rfc-editor.org/rfc/rfc9605.html
[ 8 ] Galois Counter Mode with Strong Secure Tags (GCM-SST)
https://www.ietf.org/archive/id/draft-mattsson-cfrg-aes-gcm-sst-18.html
[ 9 ] Session Description Protocol (SDP) Security Descriptions for Media Streams
https://www.rfc-editor.org/rfc/rfc4568.html
[ 10 ] SDP Security Descriptions is NOT RECOMMENDED and Historic
https://datatracker.ietf.org/doc/html/draft-mattsson-dispatch-sdes-dont-dont-dont
[ 11 ] NIST Launches Development of Cryptographic Accordions
https://csrc.nist.gov/pubs/sp/800/197/a/iprd
[ 12 ] Requirements for Cryptographic Accordions
https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8552.pdf
[ 13 ] AES Key Wrap Specification
https://web.archive.org/web/20041031122517/http://www.csrc.nist.gov/CryptoToolkit/kms/key-
wrap.pdf
[ 14 ] Request for Review of Key Wrap Algorithms
https://eprint.iacr.org/2004/340.pdf
[ 15 ] Deterministic Authenticated-Encryption
https://eprint.iacr.org/2006/221.pdf
[ 16 ] Advanced Encryption Standard (AES) Key Wrap Algorithm
https://www.rfc-editor.org/rfc/rfc3394.html
[1 7 ] Authenticated Encryption with Replay prOtection (AERO)
https://datatracker.ietf.org/doc/html/draft-mcgrew-aero
[ 18 ] Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm
https://www.rfc-editor.org/rfc/rfc5649.html
[ 19 ] Ericsson comments on SP 800-38B The CMAC Mode for Authentication
https://csrc.nist.gov/csrc/media/Projects/crypto-publication-review-project/documents/initial-
comments/sp800-38b-initial-public-comments-2024.pdf