Share to: share facebook share twitter share wa share telegram print page

Kotak-S Rijndael

Kotak-S Rijndael adalah kotak substitusi (tabel pencarian) yang dipakai dalam penyandian Rijndael.[1] Standar Enkripsi Lanjutan (AES) berdasar pada penyandian Rijndael sehingga juga memakai kotak substitusi ini.

Kotak-S

Kotak-S memetakan nilai 8 bit, c, ke keluaran 8 bit, s = S(c).

Kotak-S AES
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
00 63 7c 77 7b f2 6b 6f c5 30 01 67 2b fe d7 ab 76
10 ca 82 c9 7d fa 59 47 f0 ad d4 a2 af 9c a4 72 c0
20 b7 fd 93 26 36 3f f7 cc 34 a5 e5 f1 71 d8 31 15
30 04 c7 23 c3 18 96 05 9a 07 12 80 e2 eb 27 b2 75
40 09 83 2c 1a 1b 6e 5a a0 52 3b d6 b3 29 e3 2f 84
50 53 d1 00 ed 20 fc b1 5b 6a cb be 39 4a 4c 58 cf
60 d0 ef aa fb 43 4d 33 85 45 f9 02 7f 50 3c 9f a8
70 51 a3 40 8f 92 9d 38 f5 bc b6 da 21 10 ff f3 d2
80 cd 0c 13 ec 5f 97 44 17 c4 a7 7e 3d 64 5d 19 73
90 60 81 4f dc 22 2a 90 88 46 ee b8 14 de 5e 0b db
a0 e0 32 3a 0a 49 06 24 5c c2 d3 ac 62 91 95 e4 79
b0 e7 c8 37 6d 8d d5 4e a9 6c 56 f4 ea 65 7a ae 08
c0 ba 78 25 2e 1c a6 b4 c6 e8 dd 74 1f 4b bd 8b 8a
d0 70 3e b5 66 48 03 f6 0e 61 35 57 b9 86 c1 1d 9e
e0 e1 f8 98 11 69 d9 8e 94 9b 1e 87 e9 ce 55 28 df
f0 8c a1 89 0d bf e6 42 68 41 99 2d 0f b0 54 bb 16
Tiap kolom ditentukan oleh nilai tempat satuan (nibel bawah) dan tiap baris ditentukan oleh nilai tempat enam belasan (nibel atas). Misalnya, 9a16 diubah ke b816.

Inversi kotak-S

Inversi kotak-S sejatinya adalah kotak-S yang dibalik pemetaannya. Misal, b816 dikembalikan ke 9a16.

Inversi kotak-S
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
00 52 09 6a d5 30 36 a5 38 bf 40 a3 9e 81 f3 d7 fb
10 7c e3 39 82 9b 2f ff 87 34 8e 43 44 c4 de e9 cb
20 54 7b 94 32 a6 c2 23 3d ee 4c 95 0b 42 fa c3 4e
30 08 2e a1 66 28 d9 24 b2 76 5b a2 49 6d 8b d1 25
40 72 f8 f6 64 86 68 98 16 d4 a4 5c cc 5d 65 b6 92
50 6c 70 48 50 fd ed b9 da 5e 15 46 57 a7 8d 9d 84
60 90 d8 ab 00 8c bc d3 0a f7 e4 58 05 b8 b3 45 06
70 d0 2c 1e 8f ca 3f 0f 02 c1 af bd 03 01 13 8a 6b
80 3a 91 11 41 4f 67 dc ea 97 f2 cf ce f0 b4 e6 73
90 96 ac 74 22 e7 ad 35 85 e2 f9 37 e8 1c 75 df 6e
a0 47 f1 1a 71 1d 29 c5 89 6f b7 62 0e aa 18 be 1b
b0 fc 56 3e 4b c6 d2 79 20 9a db c0 fe 78 cd 5a f4
c0 1f dd a8 33 88 07 c7 31 b1 12 10 59 27 80 ec 5f
d0 60 51 7f a9 19 b5 4a 0d 2d e5 7a 9f 93 c9 9c ef
e0 a0 e0 3b 4d ae 2a f5 b0 c8 eb bb 3c 83 53 99 61
f0 17 2b 04 7e ba 77 d6 26 e1 69 14 63 55 21 0c 7d

Kriteria desain

Kotak-S Rijndael didesain khusus untuk tahan terhadap serangan analisis kriptografi linear dan diferensial. Caranya adalah dengan meminimalkan kolerasi transformasi linear antara masukan dan keluaran sekaligus meminimalkan peluang rambantan selisih.

Kotak-S Rijndael dapat ditukar dalam penyandian Rijndael.[1] Hal tersebut melemahkan tuduhan bahwa suatu pintu belakang dibuat dengan menggunakan kotak-S statis. Para pembuat mengeklaim bahwa struktur penyandian Rijndael seharusnya sudah cukup tahan terhadap analisis kriptografi linear dan diferensial jika kotak-S yang memiliki sifat korelasi/rambatan selisih "rata-rata" dipakai.

Contoh implementasi dalam bahasa C

Kode C berikut menghitung nilai kotak-S.

#include <stdint.h>

#define ROTL8(x,shift) ((uint8_t) ((x) << (shift)) | ((x) >> (8 - (shift))))

void initialize_aes_sbox(uint8_t sbox[256]) {
	uint8_t p = 1, q = 1;

	/* perulangan: p * q == 1 dalam medan Galois */
	do {
		/* kalikan p dengan 3 */
		p = p ^ (p << 1) ^ (p & 0x80 ? 0x1B : 0);

		/* bagi q dengan 3 (sama dengan perkalian dengan 0xf6) */
		q ^= q << 1;
		q ^= q << 2;
		q ^= q << 4;
		q ^= q & 0x80 ? 0x09 : 0;

		/* hitung transformasi afinnya */
		uint8_t xformed = q ^ ROTL8(q, 1) ^ ROTL8(q, 2) ^ ROTL8(q, 3) ^ ROTL8(q, 4);

		sbox[p] = xformed ^ 0x63;
	} while (p != 1);

	/* 0 adalah kasus khusus karena ia tidak memiliki inversi */
	sbox[0] = 0x63;
}

Referensi

  1. ^ a b "The Rijndael Block Cipher" (PDF). Diakses tanggal 11 November 2013. 

Read other articles:

Untuk kelompok masyarakat adat Sunda di Banten, Indonesia, lihat orang Kanekes. BaduiSebuah keluarga Badui di OmanDaerah dengan populasi signifikan Sudan10,199,000[butuh rujukan] Aljazair230,000[1]-2,257,000 ±[butuh rujukan] Arab Saudi467,000 (2013)[butuh rujukan] Irak1,437,000[butuh rujukan] Yordania380,000 (2007)[2] Libya916,000[butuh rujukan] Mesir902,000 (2007)[butuh rujukan] Suriah620,00…

Peta menunjukan lokasi San Vicente Data sensus penduduk di San Vicente Tahun Populasi Persentase 19959.848—200010.8772.16%200711.9071.26% San Vicente adalah munisipalitas yang terletak di provinsi Ilocos Sur, Filipina. Pada tahun 2010, munisipalitas ini memiliki populasi sebesar 11.907 jiwa atau 2.478 rumah tangga. Pembagian wilayah Secara administratif San Vicente terbagi menjadi 7 barangay, yaitu: Bantaoay Bayubay Norte Bayubay Sur Lubong Pudoc San Sebastian Pranala luar Pasyalang Ilocos Sur…

Device designed to reduce vibrations in structures For the song, see Tuned Mass Damper. This article may be too technical for most readers to understand. Please help improve it to make it understandable to non-experts, without removing the technical details. (March 2020) (Learn how and when to remove this template message) Tuned mass damper atop Taipei 101 Shanghai Tower tuned mass damper A tuned mass damper (TMD), also known as a harmonic absorber or seismic damper, is a device mounted in struc…

Cet article est une ébauche concernant les télécommunications. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Pour les articles homonymes, voir fréquence (homonymie). La bande des très hautes fréquences (very high frequency/VHF) est la partie du spectre radioélectrique s'étendant de 30 MHz à 300 MHz [1], soit respectivement, de 10 à 1 m de longueur d'onde électromagnétique. Antennes VHF d…

Book by Claudius Ptolemaeus Tetrabiblos (Quadripartitum) Opening page of Tetrabiblos: 15th-century Latin printed edition of the 12th-century translation of Plato of Tivoli; published in Venice by Erhard Ratdolt, 1484.AuthorClaudius PtolemyOriginal titleApotelesmatikaLanguageGreekSubjectAstrologyPublication date2nd century Quadripartitum, 1622 Tetrabiblos (Greek: Τετράβιβλος, lit. 'Four books'), also known as Apotelesmatiká (Greek: Ἀποτελεσματικά, lit.…

Léon Dufourny Léon Dufourny, lahir di Paris 5 Maret 1754 dan meninggal 16 September 1818 di kota yang sama, dia merupakan seorang arsitek berkebangsaan Prancis. Léon adalah putra Jean-Baptiste Dufourny, pedagang kanvas. Karya-karyanya termasuk dalam gaya neoklasik akhir abad ke-18. Pada 1801 ia bekerja di Italia sebagai Komisaris Republik, yang bertanggung jawab atas perolehan karya seni; di Roma dia membeli koleksi patung di palazzo Giustiniani.[1] Referensi ^ Angela Gallottini, Le s…

Egyptian poet and publisher Ahmed Zaki Abu Shadiأحمد زكي أبو شاديPortrait of Abu Shadi as a young man, c. 1909Born(1892-02-09)February 9, 1892Cairo, Khedivate of EgyptDiedApril 12, 1955(1955-04-12) (aged 63)Washington, D.C., United StatesNationalityEgyptianOther namesAhmed Zaky AbushadyOccupation(s)Poet, writer, beekeeper, doctor, publisher, translatorMovementNeo-romanticism, Apollo Society Ahmed Zaki Abu Shadi[a] (Arabic: أحمد زكي أبو شادي, AL…

Not to be confused with Chappell Hill, Texas. City in Texas, United StatesNew Chapel Hill, TexasCityLocation of NewChapelHill, TexasCoordinates: 32°18′13″N 95°10′9″W / 32.30361°N 95.16917°W / 32.30361; -95.16917CountryUnited StatesStateTexasCountySmithArea[1] • Total2.42 sq mi (6.27 km2) • Land2.39 sq mi (6.20 km2) • Water0.03 sq mi (0.07 km2)Elevation430 ft (131 …

Ketua Menteri Odisha(Odisha Mukhya Mantri)PetahanaNaveen Patnaiksejak 5 Maret 2000Ditunjuk olehGubernur OdishaPejabat perdanaHarekrushna MahatabDibentuk23 April 1946 Ketua Menteri Odisha, sebuah negara bagian India timur, adalah kepala Pemerintahan Odisha. Sesuai dengan Konstitusi India, gubernur adalah seorang kepala de jure negara bagian, tetapi otoritas eksekutif de facto dipegang ketua menteri. Setelah pemilihan-pemilihan dari Mahkamah Legislatif Odisha, gubernur negara bagian tersebut …

Jeff Joniak (center) and Tom Thayer (left), the play-by-play and color commentator for Bears radio games on WMVP, respectively. Currently, ESPN Radio 1000 airs the Chicago Bears football games with Jeff Joniak doing the play-by-play, along with color commentator Tom Thayer and sideline reporter Jason McKie.[1] Marc Silverman, Dionne Miller and former Bears linebacker Lance Briggs host the pre-game shows. John Jurkovic and Peggy Kusinski host the post-game shows. Radio announcers Yea…

Mestaruussarja 1950 Competizione Mestaruussarja Sport Calcio Edizione 41ª Organizzatore SPL/FBF Luogo  Finlandia Partecipanti 10 Formula Girone all'italiana Risultati Vincitore Ilves-Kissat(1º titolo) Secondo KuPS Retrocessioni TuVeKullervo Statistiche Miglior marcatore Jorma Saarinen Yrjö Asikainen (15) Incontri disputati 90 Gol segnati 357 (3,97 per incontro) Cronologia della competizione 1949 1951 Manuale La Mestaruussarja 1950 fu la quarantunesima edizione della massima ser…

FK Dinamo MoskvaCalcio Biancoazzurri (Belo-golubye), Sbirri (Menty) Segni distintivi Uniformi di gara Casa Trasferta Colori sociali Bianco, azzurro Dati societari Città Mosca Nazione  Russia Confederazione UEFA Federazione RFU Campionato Prem'er-Liga Fondazione 1923 Proprietario VTB Bank Presidente Gennadij Solov'ëv Allenatore Pavel Alpatov Stadio VTB Arena(27 000 posti) Sito web www.fcdynamo.ru Palmarès Titoli nazionali 11 Campionati sovietici Trofei nazionali 6 Coppe dell'URSS1 Coppa d…

St. Maurice's Abbey bell-tower Perpetual prayer (Latin: laus perennis) is the Christian practice of continuous prayer carried out by a group. History The practice of perpetual prayer was inaugurated by the archimandrite Alexander (died about 430), the founder of the monastic Acoemetae or vigil-keepers. Laus perennis was imported to Western Europe at St. Maurice's Abbey in Agaunum, where it was carried on, day and night, by several choirs, or turmae, who succeeded each other in the recitation of …

ياقوت الحموي معلومات شخصية الميلاد سنة 1178   القسطنطينية  الوفاة 20 أغسطس 1229 (50–51 سنة)  حلب  مكان الدفن مقبرة الخيزران  الحياة العملية تعلم لدى ابن يعيش النحوي،  وأبو البقاء العكبري  المهنة مستكشف،  وجغرافي،  وكاتب،  ومؤرخ  اللغات العربية  مجال …

Rear edge of an aerodynamic surface For trailing edge in electronics, the back edge of a digital signal, see Signal edge. Cross section of an aerodynamic surface with the trailing edge emphasised An American Aviation AA-1 Yankee being refuelled. Its wing trailing edge can be seen with aileron (deployed downwards) and flap. The trailing edge of an aerodynamic surface such as a wing is its rear edge, where the airflow separated by the leading edge meets.[1] Essential flight control surface…

German playwright and poet Ludwig Anton Salomon FuldaBornJuly 7, 1862FrankfurtDiedMarch 7, 1939Berlin Ludwig Anton Salomon Fulda (July 7, 1862 – March 7, 1939) was a German playwright and poet, with a strong social commitment. He lived with Moritz Moszkowski's first wife Henriette, née Chaminade, younger sister of pianist and composer Cécile Chaminade.[1] Biography He was born in the Free City of Frankfurt. He was a member of the Prussian Academy of Arts and the first president of th…

Association football team representing the world This article is about the association football team. For the cricket team, see World XI (cricket). World XIAssociationFIFAFirst international England 2–1 FIFA World XI(London, England; 23 October 1963)[1][a]Biggest win Spain 0–3 FIFA World XI(Madrid, Spain; 27 September 1967)Europe XI 2–5 FIFA World XI(Marseille, France; 4 December 1997)Biggest defeat Italy 6–2 FIFA World XI(Rome, Italy; 16 December 1998)…

Pour les articles homonymes, voir Paquin. Anna Paquin Anna Paquin à Toronto en septembre 2018. Données clés Nom de naissance Anna Helene Paquin Naissance 24 juillet 1982 (41 ans)Winnipeg, Manitoba (Canada) Nationalité Canadienne Néo-zélandaise Profession ActriceProductrice Films notables La Leçon de pianoDarkness Presque célèbresaga X-Men Séries notables True BloodThe Affair modifier Anna Paquin [ˈænə ˈpækwɪn][1], née le 24 juillet 1982 à Winnipeg, est une actrice …

Karen ShakhnazarovKaren Shakhnazarov pada 2016.LahirKaren Georgievich Shakhnazarov8 Juli 1952 (umur 71)Krasnodar, Uni SovietPekerjaanSutradara, penulis latarTahun aktif1980 – sekarang Karen Georgievich Shakhnazarov, PAR (bahasa Rusia: Каре́н Гео́ргиевич Шахназа́ров; lahir 8 Juli 1952) adalah seorang pembuat film, produser dan penulis latar Soviet dan Rusia-Armenia. Ia menjadi Direktur Jenderal studio-studio Mosfilm pada 1998. Shakhnazarov adalah putra …

Министерство природных ресурсов и экологии Российской Федерациисокращённо: Минприроды России Общая информация Страна  Россия Юрисдикция Россия Дата создания 12 мая 2008 Предшественники Министерство природных ресурсов Российской Федерации (1996—1998)Министерство охраны о…

Kembali kehalaman sebelumnya