Sponge function

Illustration of the sponge construction
The sponge construction for hash functions. Pi are blocks of the input string, Zi are hashed output blocks.

In cryptography, a sponge function or sponge construction is any of a class of algorithms with finite internal state that take an input bit stream of any length and produce an output bit stream of any desired length. Sponge functions have both theoretical and practical uses. They can be used to model or implement many cryptographic primitives, including cryptographic hashes, message authentication codes, mask generation functions, stream ciphers, pseudo-random number generators, and authenticated encryption.[1]

Construction

A sponge function is built from three components:[2]

  • a state memory, S, containing b bits,
  • a function
  • a padding function P

S is divided into two sections: one of size r (the bitrate) and the remaining part of size c (the capacity). These sections are denoted R and C respectively.

f produces a pseudorandom permutation of the states from S.

P appends enough bits to the input string so that the length of the padded input is a whole multiple of the bitrate, r. This means the input is segmented into blocks of r bits.

Operation

The sponge function "absorbs" (in the sponge metaphor) all blocks of a padded input string as follows:

  • S is initialized to zero
  • for each r-bit block B of P(string)
    • R is replaced with R XOR B (using bitwise XOR)
    • S is replaced by f(S)

The sponge function output is now ready to be produced ("squeezed out") as follows:

  • repeat until output is full
    • output the R portion of S
    • S is replaced by f(S)

If less than r bits remain to be output, then R will be truncated (only part of R will be output).

Another metaphor describes the state memory as an "entropy pool", with input "poured into" the pool, and the transformation function referred to as "stirring the entropy pool".[3]

Note that input bits are never XORed into the C portion of the state memory, nor are any bits of C ever output directly. The extent to which C is altered by the input depends entirely on the transformation function f. In hash applications, resistance to collision or preimage attacks depends on C, and its size (the "capacity" c) is typically twice the desired resistance level.

Duplex construction

It is also possible to absorb and squeeze in an alternating fashion.[1] This operation is called the duplex construction or duplexing. It can be the basis of a single pass authenticated encryption system.

  • The state S is initialized to zero
  • for each r-bit block B of the input
    • R is XORed with B
    • S is replaced by f(S)
    • R is now an output block of size r bits.

Overwrite mode

It is possible to omit the XOR operations during absorption, while still maintaining the chosen security level.[1] In this mode, in the absorbing phase, the next block of the input overwrites the R part of the state. This allows keeping a smaller state between the steps. Since the R part will be overwritten anyway, it can be discarded in advance, only the C part must be kept.

Applications

Sponge functions have both theoretical and practical uses. In theoretical cryptanalysis, a random sponge function is a sponge construction where f is a random permutation or transformation, as appropriate. Random sponge functions capture more of the practical limitations of cryptographic primitives than does the widely used random oracle model, in particular the finite internal state.[4]

The sponge construction can also be used to build practical cryptographic primitives. For example, Keccak cryptographic sponge with a 1600-bit state has been selected by NIST as the winner in the SHA-3 competition. The strength of Keccak derives from the intricate, multi-round permutation f that its authors developed.[5] The RC4-redesign called Spritz refers to the sponge-construct to define the algorithm.

For other examples, a sponge function can be used to build authenticated encryption with associated data (AEAD),[3] as well as a password hashing schemes.[6]

References

  1. ^ a b c Bertoni, Guido; Daemen, Joan; Peeters, Michaël; van Assche, Giles. "Duplexing the Sponge: Single-Pass Authenticated Encryption and Other Applications" (PDF). Retrieved 2023-03-27.
  2. ^ Bertoni, Guido; Daemen, Joan; Peeters, Michaël; van Assche, Giles. "The sponge and duplex constructions". Retrieved 2023-03-27.
  3. ^ a b Rivest, Ron; Schuldt, Jacob (2014-10-27). "Spritz – a spongy RC4-like stream cipher and hash function" (PDF). Retrieved 2014-12-29.
  4. ^ Bertoni, Guido; Daemen, Joan; Peeters, Michaël; van Assche, Giles. "On the Indifferentiability of the Sponge Construction" (PDF). Retrieved March 27, 2023.
  5. ^ Boutin, Chad (2 October 2012). "NIST Selects Winner of Secure Hash Algorithm (SHA-3) Competition". NIST. Retrieved 4 October 2012.
  6. ^ van Beirendonck, M.; Trudeau, L.; Giard, P.; Balatsoukas-Stimming, A. (2019-05-29). A Lyra2 FPGA Core for Lyra2REv2-Based Cryptocurrencies. IEEE International Symposium on Circuits and Systems (ISCAS). Sapporo, Japan: IEEE. pp. 1–5. arXiv:1807.05764. doi:10.1109/ISCAS.2019.8702498.

Read other articles:

اللاسلطوية الاجتماعية[1][2][3][4][5] هي فرع من الأناركية ترى الحرية الفردية مترابطة بالتعاون المتبادل. يؤكد الفكر الأناركي الاجتماعي أن المجتمع والمساواة الاجتماعية مكملان للاستقلالية والحرية الشخصية. يحاول هذا الفكر الوصول إلى ذلك التوازن من خلال حرية �...

 

Malam Tahun BaruPerayaan malam tahun baru di SydneyNama lain Hogmanay (Skotlandia) Calennig (Wales) Silvester (Austria, Bosnia dan Herzegovina, Kroasia, Republik Ceko, Prancis, Jerman, Hungaria, Israel, Italia, Liechtenstein, Luxembourg, Polandia, Slowakia, Slovenia, Swiss) Réveillon (Belgia, Brasil, Prancis, Portugal, Rumania, dan lokasi pembicaraan Prancis dalam Amerika Utara) Novyy God (Belarusia, Rusia, Ukraina) JenisInternasionalMaknaHari terakhir dari tahun GregorianPerayaanRefleksi; b...

 

For the wine region, see St. Helena AVA. City in California, United StatesSt. HelenaCity Clockwise: The Culinary Institute of America at Greystone; V. Sattui Winery; the Richie Block downtown; former train depot; Beringer VineyardsMotto(s): Napa Valley's Main Street,[1]Location in Napa County and the state of CaliforniaCoordinates: 38°30′19″N 122°28′13″W / 38.50528°N 122.47028°W / 38.50528; -122.47028CountryUnited StatesStateCaliforniaCountyNap...

American judge David Patterson DyerSenior Judge of the United States District Court for the Eastern District of MissouriIn officeNovember 3, 1919 – April 29, 1924Judge of the United States District Court for the Eastern District of MissouriIn officeMarch 1, 1907 – November 3, 1919Appointed byTheodore RooseveltPreceded byGustavus A. FinkelnburgSucceeded byCharles Breckenridge FarisMember of the U.S. House of Representativesfrom Missouri's 9th districtIn office...

 

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (May 2020) (Learn how and when to remove this template message) Nuevo MirandillaFull nameEstadio Nuevo MirandillaFormer namesEstadio Ramón de Carranza (1955–2021)LocationPlaza de Madrid, s/n11010 CádizCoordinates36°30′10″N 6°16′23″W / 36.50278°N 6.27306°W / 36.50278; -6.273...

 

Ferdinando Maria Poggioli Ferdinando Maria Poggioli (Bologna, 15 dicembre 1897 – Roma, 2 febbraio 1945) è stato un regista e sceneggiatore italiano. Indice 1 Biografia 2 Filmografia 2.1 Regista 2.2 Montatore 3 Note 4 Altri progetti 5 Collegamenti esterni Biografia Si avvicinò al mondo del cinema con l'avvento del sonoro, inizialmente nel ruolo di montatore, esordendo nel 1931 come regista del documentario Impressioni siciliane. Nelle sue opere, ispirate a volte alle opere liriche del seco...

Historical group of Indo-European peoples Map displaying the origins of the Proto-Indo-Iranian (Ā́rya/Aryan) Sintashta culture as a migration of peoples from the Bronze Age European Corded Ware culture[1][2][3][4] through the Fatyanovo-Balanovo culture[5][6][7][note 1] The Sintashta-Petrovka culture (red) expanded into the Andronovo culture (orange) in the 2nd millennium BC, overlapping the Oxus civilization (green) in the sou...

 

Pour les articles homonymes, voir Bonvoisin. Bernie Bonvoisin Bernie Bonvoisin en 1978. Photo d'identité (Sacem)Informations générales Surnom Bernard Bonvoisin Naissance 9 juillet 1956 (67 ans)Nanterre Activité principale Chanteur Activités annexes Acteur, écrivain, scénariste et réalisateur Genre musical Rock, hard rock Instruments Chant Années actives de 1977 à aujourd'hui modifier Bernie Bonvoisin à Rennes le samedi 26 novembre 2022 Bernard « Bernie » Bonvoisin...

 

1st-century pre-Roman British king Coin of Cunobeline Cunobeline or Cunobelin (Common Brittonic: *Cunobelinos, Dog-Strong), also known by his name's Latin form Cunobelinus, was a king in pre-Roman Britain from about AD 9 to about AD 40.[1] He is mentioned in passing by the classical historians Suetonius and Dio Cassius, and many coins bearing his inscription have been found. He controlled a substantial portion of south-eastern Britain, including the territories of the Catuvellauni and...

Commuter rail service in San Diego County, California Coaster train redirects here. For the roller coaster vehicle, see Roller coaster train. COASTERA Coaster train near Encinitas, March 2021.OverviewService typeCommuter railLocaleSan Diego County, California, United StatesFirst serviceFebruary 27, 1995; 29 years ago (1995-02-27)Current operator(s)North County Transit DistrictFormer operator(s)Amtrak (1995–2005)TransitAmerica (2006–2015)Bombardier Transportation (2015–...

 

此條目可能包含不适用或被曲解的引用资料,部分内容的准确性无法被证實。 (2023年1月5日)请协助校核其中的错误以改善这篇条目。详情请参见条目的讨论页。 各国相关 主題列表 索引 国内生产总值 石油储量 国防预算 武装部队(军事) 官方语言 人口統計 人口密度 生育率 出生率 死亡率 自杀率 谋杀率 失业率 储蓄率 识字率 出口额 进口额 煤产量 发电量 监禁率 死刑 国债 ...

 

莎拉·阿什頓-西里洛2023年8月,阿什頓-西里洛穿著軍服出生 (1977-07-09) 1977年7月9日(46歲) 美國佛羅里達州国籍 美國别名莎拉·阿什頓(Sarah Ashton)莎拉·西里洛(Sarah Cirillo)金髮女郎(Blonde)职业記者、活動家、政治活動家和候選人、軍醫活跃时期2020年—雇主內華達州共和黨候選人(2020年)《Political.tips》(2020年—)《LGBTQ國度》(2022年3月—2022年10月)烏克蘭媒�...

Untuk pulau di Antartika, lihat Pulau D'Urville, Antartika. Rangitoto ki te Tonga / Pulau D'UrvillePulau D'Urville dan Teluk TasmanLokasi Pulau D'UrvilleGeografiKoordinat40°50′S 173°52′E / 40.833°S 173.867°E / -40.833; 173.867Koordinat: 40°50′S 173°52′E / 40.833°S 173.867°E / -40.833; 173.867Luas150 km2Titik tertinggiAttempt Hill[1] (729 m)[2]PemerintahanNegaraSelandia BaruKependudukanPenduduk5...

 

Music of Canada Genres Blues classical country Eurodance grime hip hop jazz punk rock Latin subgenres Specific forms Ethnic music Overview Aboriginal Blackfeet Dene Innu Inuit Iroquois Kwakwaka'wakw Métis Celtic French Instrumental repertoires Canadian fiddle Media and performance Music awards Junos Polaris Félixes Hall of Fame ECMAs Atlantis WCMAs CASBYs CRMAs CCMAs MMVAs CUMAs CFMAs Music charts Canadian Hot 100 Singles Chart (Jam!) Chart Attack Exclaim! CBC Music Top 20 Music festivals ...

 

Para otras personas del mismo nombre, véase Pedro Enríquez. Efigie de Pedro Enríquez en su tumba, realizada en 1520, y que se encuentra en el mausoleo de Los Ribera del Monasterio de Santa María de las Cuevas Pedro Enríquez de Quiñones (fallecido en 1493) fue un noble castellano, I señor de Tarifa y IV adelantado mayor de Andalucía. Vida Cartuja de Sevilla. Capilla del Capítulo, Panteón de la Casa de Ribera. Fue hijo segundogénito de Fadrique Enríquez, I conde de Melgar, II almir...

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ديسمبر 2023) كنانة للكود معلومات شخصية الميلاد سنة 1985 (العمر 38–39 سنة)  محافظة حمص  مواطنة سوريا  الحياة العملية المهنة رسامة  بوابة فنون مرئية تعديل مصدري - ت...

 

Filippo Guastavillani Filippo Guastavillani (1541–1587) merupakan seorang kardinal Katolik Roma Italia. Biografi Filippo Guastavillani lahir di Bologna pada 28 September 1541, sebagai putra dari bangsawan Bologna yang bernama Angelo Michele Guastavillani dan Giacoma Boncompagni.[1] Ibunya merupakan saudari dari Paus Gregorius XIII.[1] Ia merupakan sepupu dari Kardinal Filippo Boncompagni.[1] Ia pernah berpartisipasi dalam Konklaf Kepausan 1585 yang memilih Paus Siktu...

 

2010 Serbian horror-thriller film by Srđan Spasojević This article is about the 2010 Serbian film. For Serbian films in general, see Cinema of Serbia. A Serbian FilmTheatrical release posterSrpski film/Српски филм (Serbian)Directed bySrđan SpasojevićWritten by Aleksandar Radivojević Srđan Spasojević Produced by Srđan Spasojević Dragoljub Vojnov Starring Srđan Todorović Sergej Trifunović Jelena Gavrilović Slobodan Beštić Katarina Žutić CinematographyNemanja Jova...

Anja SelbachAnja Selbach nel 2014Nazionalità Germania Altezza171 cm Peso61 kg Slittino SpecialitàSingolo SquadraRC Berchtesgaden Termine carriera2003 Skeleton SquadraRC Berchtesgaden Palmarès Competizione Ori Argenti Bronzi Olimpiadi 0 0 1 Mondiali 2 3 0 Europei 4 1 2 Mondiali juniores 0 0 1 Campionati tedeschi 5 1 0 Trofeo Vittorie Coppa del Mondo 1 trofeo Vedi maggiori dettagliStatistiche aggiornate al 4 marzo 2015 Modifica dati su Wikidata · Manuale Anja Selbach nata Hube...

 

Australian rugby league footballer Jake AverilloPersonal informationBorn (2000-08-11) 11 August 2000 (age 24)Sydney, New South Wales, AustraliaHeight183 cm (6 ft 0 in)Weight92 kg (14 st 7 lb)Playing informationPositionCentre, Fullback, Five-eighth Club Years Team Pld T G FG P 2020–23 Canterbury Bulldogs 78 31 39 0 202 2024– Dolphins 23 11 0 0 44 Total 101 42 39 0 246 Representative Years Team Pld T G FG P 2022 Prime Minister's XIII 1 1 0 0 4 Sour...