diff --git a/ChangeLog b/ChangeLog
index 7f1cd5b9cab720565ad5d9184c99e38e66c289d9..7ba98a77ea69d076fe3ff3d7937d49b62b4d9d1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-10-17  Niels Möller  <niels@s3.kth.se>
+
+	* aes-internal.h (struct aes_table): Deleted idx and sparc_idx
+	arrays. 
+	* aes-encrypt-table.c (_aes_encrypt_table): Likewise.
+	* aes-decrypt.c (_aes_decrypt_table): Likewise.
+	* asm.m4 (AES): Likewise
+
 2005-10-16  Niels Möller  <nisse@lysator.liu.se>
 
 	* tools/input.c (sexp_get_char): Use unsigned for the done flag.
diff --git a/aes-decrypt.c b/aes-decrypt.c
index 32bac66e860dae225e98c47724d41505003de7f8..05f6adf22b6b2659543d61c68a1d62ea6bf5faf2 100644
--- a/aes-decrypt.c
+++ b/aes-decrypt.c
@@ -68,13 +68,12 @@ _aes_decrypt_table =
       0x17,0x2b,0x04,0x7e,0xba,0x77,0xd6,0x26,
       0xe1,0x69,0x14,0x63,0x55,0x21,0x0c,0x7d,
     },
-    { /* idx */
-      { 3, 0, 1, 2 },
-      { 2, 3, 0, 1 },
-      { 1, 2, 3, 0 } },
-    { /* sparc_idx, explained in aes-internal.h */
-      { 14, 2, 6,  10 },
-      {  4, 8, 12,  0 } },
+    /* Indexing array, hard-coded into the decryption function.
+      { { 0, 1, 2, 3 },
+        { 3, 0, 1, 2 },
+	{ 2, 3, 0, 1 },
+	{ 1, 2, 3, 0 } }
+    */
     { /* itable */
       { 
 	0x50a7f451,0x5365417e,0xc3a4171a,0x965e273a,
diff --git a/aes-encrypt-table.c b/aes-encrypt-table.c
index de21ff9cb2512e791b65dfab7f6c964e2b7b9ed3..ed4945ec8352026677afd7968653ba1399bee9f6 100644
--- a/aes-encrypt-table.c
+++ b/aes-encrypt-table.c
@@ -77,13 +77,12 @@ _aes_encrypt_table =
       0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,
       0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16,
     },
-    { /* idx */
-      { 1, 2, 3, 0 },
-      { 2, 3, 0, 1 },
-      { 3, 0, 1, 2 } },
-    { /* sparc_idx, explained in aes-internal.h */
-      {  6, 10, 14, 2 },
-      { 12,  0,  4, 8 } },
+    /* Indexing array, hard coded into the encryption function.
+       { { 0, 1, 2, 3 },
+	 { 1, 2, 3, 0 },
+	 { 2, 3, 0, 1 },
+	 { 3, 0, 1, 2 } }
+    */
     { /* dtable */
       { 
 	0xa56363c6,0x847c7cf8,0x997777ee,0x8d7b7bf6,
diff --git a/aes-internal.h b/aes-internal.h
index 60c7f9dfbb8a9a69967af3835726948316c406d5..dda43d0edb7505011d8c8bf867cfc6a6d9a3890d 100644
--- a/aes-internal.h
+++ b/aes-internal.h
@@ -47,17 +47,6 @@
 struct aes_table
 {
   uint8_t sbox[0x100];
-  unsigned idx[3][4];
-
-  /* Variant of the idx array suitable for the sparc
-   * assembler code.
-   *
-   * sparc_idx[0][i] = idx[0][i] * 4 + 2
-   * sparc_idx[1][i] = idx[2][i] * 4
-   */
-  
-  unsigned sparc_idx [2][4]; 
-
   uint32_t table[AES_TABLE_SIZE][0x100];
 };
 
diff --git a/asm.m4 b/asm.m4
index 9b6d858e98a306daff9916438c1e7a77a3882741..ee2be4fc4bc79e8382505fabee7a5ef189bd3fa4 100644
--- a/asm.m4
+++ b/asm.m4
@@ -43,19 +43,10 @@ STRUCTURE(AES)
   UNSIGNED(NROUNDS)
 
 define(AES_SBOX_SIZE,	256)dnl
-define(AES_IDX_SIZE,	16)dnl
 define(AES_TABLE_SIZE,	1024)dnl
 
 STRUCTURE(AES)
   STRUCT(SBOX, AES_SBOX_SIZE)
-
-  STRUCT(IDX1, AES_IDX_SIZE)
-  STRUCT(IDX2, AES_IDX_SIZE)
-  STRUCT(IDX3, AES_IDX_SIZE)
-
-  STRUCT(SIDX1, AES_IDX_SIZE)
-  STRUCT(SIDX3, AES_IDX_SIZE)
-
   STRUCT(TABLE0, AES_TABLE_SIZE)
   STRUCT(TABLE1, AES_TABLE_SIZE)
   STRUCT(TABLE2, AES_TABLE_SIZE)