Extendable-output function
Extendable-output function (XOF) is a type of cryptographic hash function that allows its output to be arbitrarily long, allowing it to be used as a cryptographically secure pseudo-random number generator. One particular hash construction, the sponge construction, makes any sponge hash a natural XOF: the squeeze operation can be repeated thus resulting in an XOF (the regular hash functions with a fixed-size result are obtained from a sponge mechanism by stopping the squeezing phase after obtaining the fixed number of bits). A secure XOF is collision, preimage and second preimage resistant. While technically any XOF can be turned into a cryptographic hash by truncating the result to a fixed length, in the real world hashes and XOFs tend to be defined differently using domain separation. ) Examples of sponge construction XOFs include the algorithms from the Keccak family: SHAKE128, SHAKE256, and a variant with higher efficiency, KangarooTwelve. There are other XOFs which are not sponge constructions, such as Skein and RadioGatún. XOFs are used as key derivation functions (KDFs), stream ciphers , and mask generation functions.
Extendable-output function (XOF) is a type of cryptographic hash function that allows its output to be arbitrarily long, allowing it to be used as a cryptographically secure pseudo-random number generator. One particular hash construction, the sponge construction, makes any sponge hash a natural XOF: the squeeze operation can be repeated thus resulting in an XOF (the regular hash functions with a fixed-size result are obtained from a sponge mechanism by stopping the squeezing phase after obtaining the fixed number of bits). A secure XOF is collision, preimage and second preimage resistant. While technically any XOF can be turned into a cryptographic hash by truncating the result to a fixed length, in the real world hashes and XOFs tend to be defined differently using domain separation. ) Examples of sponge construction XOFs include the algorithms from the Keccak family: SHAKE128, SHAKE256, and a variant with higher efficiency, KangarooTwelve. There are other XOFs which are not sponge constructions, such as Skein and RadioGatún. XOFs are used as key derivation functions (KDFs), stream ciphers , and mask generation functions. ==Related-output issues== By their nature, XOFs can produce related outputs (a longer result includes a shorter one as a prefix). The use of KDFs for key derivation can therefore cause related-output problems. As a "naïve" example, if the Triple DES keys are generated with an XOF, and there is a confusion in the implementation that causes some operations to be performed as 3TDEA (3 56 = 168-bit key), and some as 2TDEA (2 56 = 112 bit key), comparing the encryption results will lower the attack complexity to just 56 bits; similar problems can occur if hashes in the NIST SP 800-108 are naïvely replaced by the KDFs. ==References== ==Sources==
References
- Dworkin 2014 , p. 3. Wikipedia revision 1363295166, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1363295166
Cite this reference
MLA "Dworkin 2014 , p. 3. Wikipedia revision 1363295166, retrieved 2026-11-19." Dworkin 2014 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166. Accessed 24 November 2026.
Chicago "Dworkin 2014 , p. 3. Wikipedia revision 1363295166, retrieved 2026-11-19." Dworkin 2014 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166.
APA Dworkin 2014 , p. (2026). Dworkin 2014 , p. 3. Wikipedia revision 1363295166, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1363295166
- Mittelbach & Fischlin 2021 , p. 526. Wikipedia revision 1363295166, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1363295166
Cite this reference
MLA "Mittelbach & Fischlin 2021 , p. 526. Wikipedia revision 1363295166, retrieved 2026-11-19." Mittelbach & Fischlin 2021 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166. Accessed 24 November 2026.
Chicago "Mittelbach & Fischlin 2021 , p. 526. Wikipedia revision 1363295166, retrieved 2026-11-19." Mittelbach & Fischlin 2021 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166.
APA Mittelbach & Fischlin 2021 , p. (2026). Mittelbach & Fischlin 2021 , p. 526. Wikipedia revision 1363295166, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1363295166
- Perlner 2014 , p. 4. Wikipedia revision 1363295166, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1363295166
Cite this reference
MLA "Perlner 2014 , p. 4. Wikipedia revision 1363295166, retrieved 2026-11-19." Perlner 2014 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166. Accessed 24 November 2026.
Chicago "Perlner 2014 , p. 4. Wikipedia revision 1363295166, retrieved 2026-11-19." Perlner 2014 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166.
APA Perlner 2014 , p. (2026). Perlner 2014 , p. 4. Wikipedia revision 1363295166, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1363295166
- Perlner 2014 , p. 5. Wikipedia revision 1363295166, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1363295166
Cite this reference
MLA "Perlner 2014 , p. 5. Wikipedia revision 1363295166, retrieved 2026-11-19." Perlner 2014 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166. Accessed 24 November 2026.
Chicago "Perlner 2014 , p. 5. Wikipedia revision 1363295166, retrieved 2026-11-19." Perlner 2014 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166.
APA Perlner 2014 , p. (2026). Perlner 2014 , p. 5. Wikipedia revision 1363295166, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1363295166
- a b c Peyrin & Wang 2020 , p. 7. Wikipedia revision 1363295166, retrieved 2026-11-19 · retrieved 2026-11-18 · rev 1363295166
Cite this reference
MLA "a b c Peyrin & Wang 2020 , p. 7. Wikipedia revision 1363295166, retrieved 2026-11-19." a b c Peyrin & Wang 2020 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166. Accessed 24 November 2026.
Chicago "a b c Peyrin & Wang 2020 , p. 7. Wikipedia revision 1363295166, retrieved 2026-11-19." a b c Peyrin & Wang 2020 , p. 2026-11-18. https://en.wikipedia.org/w/index.php?oldid=1363295166.
APA a b c Peyrin & Wang 2020 , p. (2026). a b c Peyrin & Wang 2020 , p. 7. Wikipedia revision 1363295166, retrieved 2026-11-19. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1363295166
Cite this article
MLA
"Extendable-output function." encyclopegia.org, 2026, https://encyclopegia.org/wiki/extendable-output-function. Accessed 24 November 2026.
Chicago
"Extendable-output function." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/extendable-output-function.
APA
encyclopegia.org. (2026). Extendable-output function. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/extendable-output-function
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON