summaryrefslogtreecommitdiff
path: root/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref
diff options
context:
space:
mode:
Diffstat (limited to 'crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref')
-rwxr-xr-xcrypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_order.txt809
-rwxr-xr-xcrypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_random.txt809
2 files changed, 1618 insertions, 0 deletions
diff --git a/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_order.txt b/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_order.txt
new file mode 100755
index 0000000..586078f
--- /dev/null
+++ b/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_order.txt
@@ -0,0 +1,809 @@
+Tweak :
+17 16 15 14 13 12 11 10
+0f 0e 0d 0c 0b 0a 09 08
+07 06 05 04 03 02 01 00
+
+Key :
+0f 0e 0d 0c 0b 0a 09 08
+07 06 05 04 03 02 01 00
+
+Message :
+0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00
+
+One round EGFN round : 0
+ State :
+ Non Linear Layer :
+ State round : 0
+ 0f 0e 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00
+ Subtweakey :
+ 17 16 15 14 13 12 11 10
+
+ Variables xored :
+ 10 10 10 10 10 10 10 10
+ Variables sboxed :
+ f8 f8 f8 f8 f8 f8 f8 f8
+ State non linearized :
+ f7 f6 f5 f4 f3 f2 f1 f0 07 06 05 04 03 02 01 00
+ Linear Layer :
+ State round : 0
+ f7 f6 f5 f4 f3 f2 f1 f0 07 06 05 04 03 02 01 00
+ State linearized :
+ f7 f1 f2 f3 f4 f5 f6 f0 07 06 05 04 03 02 01 00
+ Permutation Layer :
+ State round : 0
+ f7 f1 f2 f3 f4 f5 f6 f0 07 06 05 04 03 02 01 00
+ State permuted :
+ 07 02 00 06 05 04 01 03 f7 f2 f6 f0 f5 f3 f4 f1
+
+One round EGFN round : 1
+ State :
+ Non Linear Layer :
+ State round : 1
+ 07 02 00 06 05 04 01 03 f7 f2 f6 f0 f5 f3 f4 f1
+ Subtweakey :
+ ff c0 74 4b e0 df 54 6a
+
+ Variables xored :
+ 08 32 82 bb 15 2c a0 9b
+ Variables sboxed :
+ 30 05 26 f0 bd 68 95 f7
+ State non linearized :
+ f0 97 68 bb f5 22 04 33 f7 f2 f6 f0 f5 f3 f4 f1
+ Linear Layer :
+ State round : 1
+ f0 97 68 bb f5 22 04 33 f7 f2 f6 f0 f5 f3 f4 f1
+ State linearized :
+ 01 60 9f 4c 02 d5 f3 33 f7 f2 f6 f0 f5 f3 f4 f1
+ Permutation Layer :
+ State round : 1
+ 01 60 9f 4c 02 d5 f3 33 f7 f2 f6 f0 f5 f3 f4 f1
+ State permuted :
+ f7 f3 f1 f2 f6 f0 f4 f5 01 9f f3 33 d5 4c 02 60
+
+One round EGFN round : 2
+ State :
+ Non Linear Layer :
+ State round : 2
+ f7 f3 f1 f2 f6 f0 f4 f5 01 9f f3 33 d5 4c 02 60
+ Subtweakey :
+ ce e4 96 bc d8 aa f2 82
+
+ Variables xored :
+ cf 7b 65 8f 0d e6 f0 e2
+ Variables sboxed :
+ ac 13 0a ca 1f d5 bc e1
+ State non linearized :
+ 16 4f 24 ed 3c fa e7 59 01 9f f3 33 d5 4c 02 60
+ Linear Layer :
+ State round : 2
+ 16 4f 24 ed 3c fa e7 59 01 9f f3 33 d5 4c 02 60
+ State linearized :
+ d3 4e 25 ec 3d fb e6 59 01 9f f3 33 d5 4c 02 60
+ Permutation Layer :
+ State round : 2
+ d3 4e 25 ec 3d fb e6 59 01 9f f3 33 d5 4c 02 60
+ State permuted :
+ 01 4c 60 9f f3 33 02 d5 d3 25 e6 59 fb ec 3d 4e
+
+One round EGFN round : 3
+ State :
+ Non Linear Layer :
+ State round : 3
+ 01 4c 60 9f f3 33 02 d5 d3 25 e6 59 fb ec 3d 4e
+ Subtweakey :
+ ca b5 b8 62 6f c7 10 1e
+
+ Variables xored :
+ 19 90 5e 3b 94 2b 2d 50
+ Variables sboxed :
+ c5 3d 2e 51 a1 59 d2 3a
+ State non linearized :
+ 3b 9e 39 3e a2 1d 3f 10 d3 25 e6 59 fb ec 3d 4e
+ Linear Layer :
+ State round : 3
+ 3b 9e 39 3e a2 1d 3f 10 d3 25 e6 59 fb ec 3d 4e
+ State linearized :
+ 58 4d ea ed 71 ce ec 10 d3 25 e6 59 fb ec 3d 4e
+ Permutation Layer :
+ State round : 3
+ 58 4d ea ed 71 ce ec 10 d3 25 e6 59 fb ec 3d 4e
+ State permuted :
+ d3 ec 4e 25 e6 59 3d fb 58 ea ec 10 ce ed 71 4d
+
+One round EGFN round : 4
+ State :
+ Non Linear Layer :
+ State round : 4
+ d3 ec 4e 25 e6 59 3d fb 58 ea ec 10 ce ed 71 4d
+ Subtweakey :
+ 47 2e 13 31 65 7a 0c 5c
+
+ Variables xored :
+ 1f c4 ff 21 ab 97 7d 11
+ Variables sboxed :
+ d8 18 d4 01 f5 10 5a 96
+ State non linearized :
+ 45 b6 5e d0 e7 8d 25 23 58 ea ec 10 ce ed 71 4d
+ Linear Layer :
+ State round : 4
+ 45 b6 5e d0 e7 8d 25 23 58 ea ec 10 ce ed 71 4d
+ State linearized :
+ 59 ee 06 88 bf d5 7d 23 58 ea ec 10 ce ed 71 4d
+ Permutation Layer :
+ State round : 4
+ 59 ee 06 88 bf d5 7d 23 58 ea ec 10 ce ed 71 4d
+ State permuted :
+ 58 ed 4d ea ec 10 71 ce 59 06 7d 23 d5 88 bf ee
+
+One round EGFN round : 5
+ State :
+ Non Linear Layer :
+ State round : 5
+ 58 ed 4d ea ec 10 71 ce 59 06 7d 23 d5 88 bf ee
+ Subtweakey :
+ 43 24 d0 64 f7 b7 03 95
+
+ Variables xored :
+ 1a 22 ad 47 22 3f bc 7b
+ Variables sboxed :
+ a2 23 ce e4 23 17 14 13
+ State non linearized :
+ 4b f9 5a c9 08 de 52 6c 59 06 7d 23 d5 88 bf ee
+ Linear Layer :
+ State round : 5
+ 4b f9 5a c9 08 de 52 6c 59 06 7d 23 d5 88 bf ee
+ State linearized :
+ a8 a0 03 90 51 87 0b 6c 59 06 7d 23 d5 88 bf ee
+ Permutation Layer :
+ State round : 5
+ a8 a0 03 90 51 87 0b 6c 59 06 7d 23 d5 88 bf ee
+ State permuted :
+ 59 88 ee 06 7d 23 bf d5 a8 03 0b 6c 87 90 51 a0
+
+One round EGFN round : 6
+ State :
+ Non Linear Layer :
+ State round : 6
+ 59 88 ee 06 7d 23 bf d5 a8 03 0b 6c 87 90 51 a0
+ Subtweakey :
+ 2d f1 16 00 3b dc ca e1
+
+ Variables xored :
+ 85 f2 1d 6c bc 4c 9b 41
+ Variables sboxed :
+ 81 de 57 72 14 bf f7 4e
+ State non linearized :
+ 17 7f 51 12 0f 74 61 54 a8 03 0b 6c 87 90 51 a0
+ Linear Layer :
+ State round : 6
+ 17 7f 51 12 0f 74 61 54 a8 03 0b 6c 87 90 51 a0
+ State linearized :
+ 9d d7 f9 ba a7 dc c9 54 a8 03 0b 6c 87 90 51 a0
+ Permutation Layer :
+ State round : 6
+ 9d d7 f9 ba a7 dc c9 54 a8 03 0b 6c 87 90 51 a0
+ State permuted :
+ a8 90 a0 03 0b 6c 51 87 9d f9 c9 54 dc ba a7 d7
+
+One round EGFN round : 7
+ State :
+ Non Linear Layer :
+ State round : 7
+ a8 90 a0 03 0b 6c 51 87 9d f9 c9 54 dc ba a7 d7
+ Subtweakey :
+ e1 b7 2b 6e f2 38 7d a3
+
+ Variables xored :
+ 7c 4e e2 3a 2e 82 da 74
+ Variables sboxed :
+ d7 b6 e1 9d 77 26 d1 e6
+ State non linearized :
+ 4e 41 86 74 96 8d e7 50 9d f9 c9 54 dc ba a7 d7
+ Linear Layer :
+ State round : 7
+ 4e 41 86 74 96 8d e7 50 9d f9 c9 54 dc ba a7 d7
+ State linearized :
+ 76 dc 1b e9 0b 10 7a 50 9d f9 c9 54 dc ba a7 d7
+ Permutation Layer :
+ State round : 7
+ 76 dc 1b e9 0b 10 7a 50 9d f9 c9 54 dc ba a7 d7
+ State permuted :
+ 9d ba d7 f9 c9 54 a7 dc 76 1b 7a 50 10 e9 0b dc
+
+One round EGFN round : 8
+ State :
+ Non Linear Layer :
+ State round : 8
+ 9d ba d7 f9 c9 54 a7 dc 76 1b 7a 50 10 e9 0b dc
+ Subtweakey :
+ 14 d8 31 bc 70 55 fd 91
+
+ Variables xored :
+ 62 c3 4b ec 60 bc f6 4d
+ Variables sboxed :
+ cd 1a 4a 6e 3f 14 9a ad
+ State non linearized :
+ 30 20 c3 c6 a7 1e bd 11 76 1b 7a 50 10 e9 0b dc
+ Linear Layer :
+ State round : 8
+ 30 20 c3 c6 a7 1e bd 11 76 1b 7a 50 10 e9 0b dc
+ State linearized :
+ 85 56 b5 b0 d1 68 cb 11 76 1b 7a 50 10 e9 0b dc
+ Permutation Layer :
+ State round : 8
+ 85 56 b5 b0 d1 68 cb 11 76 1b 7a 50 10 e9 0b dc
+ State permuted :
+ 76 e9 dc 1b 7a 50 0b 10 85 b5 cb 11 68 b0 d1 56
+
+One round EGFN round : 9
+ State :
+ Non Linear Layer :
+ State round : 9
+ 76 e9 dc 1b 7a 50 0b 10 85 b5 cb 11 68 b0 d1 56
+ Subtweakey :
+ b6 2b 87 54 c9 f8 65 13
+
+ Variables xored :
+ 33 9e 4c 45 a1 48 b4 45
+ Variables sboxed :
+ 87 e0 bf 47 b5 e2 a0 47
+ State non linearized :
+ 31 49 3e ae 3d ef eb 97 85 b5 cb 11 68 b0 d1 56
+ Linear Layer :
+ State round : 9
+ 31 49 3e ae 3d ef eb 97 85 b5 cb 11 68 b0 d1 56
+ State linearized :
+ d2 cc bb 2b b8 6a 6e 97 85 b5 cb 11 68 b0 d1 56
+ Permutation Layer :
+ State round : 9
+ d2 cc bb 2b b8 6a 6e 97 85 b5 cb 11 68 b0 d1 56
+ State permuted :
+ 85 b0 56 b5 cb 11 d1 68 d2 bb 6e 97 6a 2b b8 cc
+
+One round EGFN round : 10
+ State :
+ Non Linear Layer :
+ State round : 10
+ 85 b0 56 b5 cb 11 d1 68 d2 bb 6e 97 6a 2b b8 cc
+ Subtweakey :
+ ac 68 bb ca 0e dd 19 75
+
+ Variables xored :
+ 7e d3 d5 5d 64 f6 a1 b9
+ Variables sboxed :
+ 7f 2c fe 25 7e 9a b5 53
+ State non linearized :
+ d6 05 cc cb ee ef fd 17 d2 bb 6e 97 6a 2b b8 cc
+ Linear Layer :
+ State round : 10
+ d6 05 cc cb ee ef fd 17 d2 bb 6e 97 6a 2b b8 cc
+ State linearized :
+ bf d7 1e 19 3c 3d 2f 17 d2 bb 6e 97 6a 2b b8 cc
+ Permutation Layer :
+ State round : 10
+ bf d7 1e 19 3c 3d 2f 17 d2 bb 6e 97 6a 2b b8 cc
+ State permuted :
+ d2 2b cc bb 6e 97 b8 6a bf 1e 2f 17 3d 19 3c d7
+
+One round EGFN round : 11
+ State :
+ Non Linear Layer :
+ State round : 11
+ d2 2b cc bb 6e 97 b8 6a bf 1e 2f 17 3d 19 3c d7
+ Subtweakey :
+ bd 70 ef c0 5f 92 0d 29
+
+ Variables xored :
+ 02 6e c0 d7 62 8b 31 fe
+ Variables sboxed :
+ b2 29 ee 5e cd 08 09 ab
+ State non linearized :
+ 79 22 c4 76 30 79 91 d8 bf 1e 2f 17 3d 19 3c d7
+ Linear Layer :
+ State round : 11
+ 79 22 c4 76 30 79 91 d8 bf 1e 2f 17 3d 19 3c d7
+ State linearized :
+ f8 9d 7b c9 8f c6 2e d8 bf 1e 2f 17 3d 19 3c d7
+ Permutation Layer :
+ State round : 11
+ f8 9d 7b c9 8f c6 2e d8 bf 1e 2f 17 3d 19 3c d7
+ State permuted :
+ bf 19 d7 1e 2f 17 3c 3d f8 7b 2e d8 c6 c9 8f 9d
+
+One round EGFN round : 12
+ State :
+ Non Linear Layer :
+ State round : 12
+ bf 19 d7 1e 2f 17 3c 3d f8 7b 2e d8 c6 c9 8f 9d
+ Subtweakey :
+ 17 fb 4c a0 cd 21 96 76
+
+ Variables xored :
+ ef 80 62 78 0b e8 19 eb
+ Variables sboxed :
+ c1 84 cd 67 64 f4 c5 df
+ State non linearized :
+ 60 dc 23 7a 48 da b8 fc f8 7b 2e d8 c6 c9 8f 9d
+ Linear Layer :
+ State round : 12
+ 60 dc 23 7a 48 da b8 fc f8 7b 2e d8 c6 c9 8f 9d
+ State linearized :
+ 95 24 db 82 b0 22 40 fc f8 7b 2e d8 c6 c9 8f 9d
+ Permutation Layer :
+ State round : 12
+ 95 24 db 82 b0 22 40 fc f8 7b 2e d8 c6 c9 8f 9d
+ State permuted :
+ f8 c9 9d 7b 2e d8 8f c6 95 db 40 fc 22 82 b0 24
+
+One round EGFN round : 13
+ State :
+ Non Linear Layer :
+ State round : 13
+ f8 c9 9d 7b 2e d8 8f c6 95 db 40 fc 22 82 b0 24
+ Subtweakey :
+ 52 97 39 fc 08 cd a6 6e
+
+ Variables xored :
+ c7 4c 79 00 2a 4f 16 4a
+ Variables sboxed :
+ 88 bf 94 20 2b 40 3e a8
+ State non linearized :
+ 50 f7 dd 50 0e 4c 30 4e 95 db 40 fc 22 82 b0 24
+ Linear Layer :
+ State round : 13
+ 50 f7 dd 50 0e 4c 30 4e 95 db 40 fc 22 82 b0 24
+ State linearized :
+ b2 62 48 c5 9b d9 a5 4e 95 db 40 fc 22 82 b0 24
+ Permutation Layer :
+ State round : 13
+ b2 62 48 c5 9b d9 a5 4e 95 db 40 fc 22 82 b0 24
+ State permuted :
+ 95 82 24 db 40 fc b0 22 b2 48 a5 4e d9 c5 9b 62
+
+One round EGFN round : 14
+ State :
+ Non Linear Layer :
+ State round : 14
+ 95 82 24 db 40 fc b0 22 b2 48 a5 4e d9 c5 9b 62
+ Subtweakey :
+ 48 63 2b 00 da 92 f1 b7
+
+ Variables xored :
+ fa 2b 8e 4e 03 57 6a d5
+ Variables sboxed :
+ 56 59 e5 b6 85 fb 55 fe
+ State non linearized :
+ 6b d7 df 5e f6 19 e9 74 b2 48 a5 4e d9 c5 9b 62
+ Linear Layer :
+ State round : 14
+ 6b d7 df 5e f6 19 e9 74 b2 48 a5 4e d9 c5 9b 62
+ State linearized :
+ fd 65 6d ec 44 ab 5b 74 b2 48 a5 4e d9 c5 9b 62
+ Permutation Layer :
+ State round : 14
+ fd 65 6d ec 44 ab 5b 74 b2 48 a5 4e d9 c5 9b 62
+ State permuted :
+ b2 c5 62 48 a5 4e 9b d9 fd 6d 5b 74 ab ec 44 65
+
+One round EGFN round : 15
+ State :
+ Non Linear Layer :
+ State round : 15
+ b2 c5 62 48 a5 4e 9b d9 fd 6d 5b 74 ab ec 44 65
+ Subtweakey :
+ 9a 44 2f 4f 24 f1 fa 9e
+
+ Variables xored :
+ 67 29 74 3b 8f 1d be fb
+ Variables sboxed :
+ d9 c7 e6 51 ca 57 4d 36
+ State non linearized :
+ 84 88 35 82 f4 a8 5c 00 fd 6d 5b 74 ab ec 44 65
+ Linear Layer :
+ State round : 15
+ 84 88 35 82 f4 a8 5c 00 fd 6d 5b 74 ab ec 44 65
+ State linearized :
+ 38 75 c8 7f 09 55 a1 00 fd 6d 5b 74 ab ec 44 65
+ Permutation Layer :
+ State round : 15
+ 38 75 c8 7f 09 55 a1 00 fd 6d 5b 74 ab ec 44 65
+ State permuted :
+ fd ec 65 6d 5b 74 44 ab 38 c8 a1 00 55 7f 09 75
+
+One round EGFN round : 16
+ State :
+ Non Linear Layer :
+ State round : 16
+ fd ec 65 6d 5b 74 44 ab 38 c8 a1 00 55 7f 09 75
+ Subtweakey :
+ a4 cb 20 25 a1 4f ce 5a
+
+ Variables xored :
+ 9c 03 81 25 f4 30 c7 2f
+ Variables sboxed :
+ 3b 85 a4 24 aa 37 88 5f
+ State non linearized :
+ a2 64 52 c7 7f d0 c1 90 38 c8 a1 00 55 7f 09 75
+ Linear Layer :
+ State round : 16
+ a2 64 52 c7 7f d0 c1 90 38 c8 a1 00 55 7f 09 75
+ State linearized :
+ d0 5c 6a ff 47 e8 f9 90 38 c8 a1 00 55 7f 09 75
+ Permutation Layer :
+ State round : 16
+ d0 5c 6a ff 47 e8 f9 90 38 c8 a1 00 55 7f 09 75
+ State permuted :
+ 38 7f 75 c8 a1 00 09 55 d0 6a f9 90 e8 ff 47 5c
+
+One round EGFN round : 17
+ State :
+ Non Linear Layer :
+ State round : 17
+ 38 7f 75 c8 a1 00 09 55 d0 6a f9 90 e8 ff 47 5c
+ Subtweakey :
+ 79 f7 98 df 3e 16 51 a1
+
+ Variables xored :
+ a9 9d 61 4f d6 e9 16 fd
+ Variables sboxed :
+ 4b 76 43 40 7d 19 3e bb
+ State non linearized :
+ 83 41 6c b5 e1 43 7f 1e d0 6a f9 90 e8 ff 47 5c
+ Linear Layer :
+ State round : 17
+ 83 41 6c b5 e1 43 7f 1e d0 6a f9 90 e8 ff 47 5c
+ State linearized :
+ 00 91 bc 65 31 93 af 1e d0 6a f9 90 e8 ff 47 5c
+ Permutation Layer :
+ State round : 17
+ 00 91 bc 65 31 93 af 1e d0 6a f9 90 e8 ff 47 5c
+ State permuted :
+ d0 ff 5c 6a f9 90 47 e8 00 bc af 1e 93 65 31 91
+
+One round EGFN round : 18
+ State :
+ Non Linear Layer :
+ State round : 18
+ d0 ff 5c 6a f9 90 47 e8 00 bc af 1e 93 65 31 91
+ Subtweakey :
+ 2e 8f ed 92 51 33 4c e2
+
+ Variables xored :
+ 2e 33 42 8c c2 56 7d 73
+ Variables sboxed :
+ 77 87 60 8d 8c 1c 5a 6d
+ State non linearized :
+ bd a5 40 e6 74 f0 c0 9f 00 bc af 1e 93 65 31 91
+ Linear Layer :
+ State round : 18
+ bd a5 40 e6 74 f0 c0 9f 00 bc af 1e 93 65 31 91
+ State linearized :
+ 77 a5 40 e6 74 f0 c0 9f 00 bc af 1e 93 65 31 91
+ Permutation Layer :
+ State round : 18
+ 77 a5 40 e6 74 f0 c0 9f 00 bc af 1e 93 65 31 91
+ State permuted :
+ 00 65 91 bc af 1e 31 93 77 40 c0 9f f0 e6 74 a5
+
+One round EGFN round : 19
+ State :
+ Non Linear Layer :
+ State round : 19
+ 00 65 91 bc af 1e 31 93 77 40 c0 9f f0 e6 74 a5
+ Subtweakey :
+ 84 ed f3 72 6c 1b 9a 16
+
+ Variables xored :
+ f3 ad 33 ed 9c fd ee b3
+ Variables sboxed :
+ 41 ce 87 48 3b bb 58 03
+ State non linearized :
+ 03 3d 2a 87 e7 99 ff d2 77 40 c0 9f f0 e6 74 a5
+ Linear Layer :
+ State round : 19
+ 03 3d 2a 87 e7 99 ff d2 77 40 c0 9f f0 e6 74 a5
+ State linearized :
+ 09 4a 5d f0 90 ee 88 d2 77 40 c0 9f f0 e6 74 a5
+ Permutation Layer :
+ State round : 19
+ 09 4a 5d f0 90 ee 88 d2 77 40 c0 9f f0 e6 74 a5
+ State permuted :
+ 77 e6 a5 40 c0 9f 74 f0 09 5d 88 d2 ee f0 90 4a
+
+One round EGFN round : 20
+ State :
+ Non Linear Layer :
+ State round : 20
+ 77 e6 a5 40 c0 9f 74 f0 09 5d 88 d2 ee f0 90 4a
+ Subtweakey :
+ d1 bf 14 cf a1 64 7a 1e
+
+ Variables xored :
+ d8 e2 9c 1d 4f 94 ea 54
+ Variables sboxed :
+ 66 e1 3b 57 40 a1 f9 6b
+ State non linearized :
+ 1c 1f 04 00 97 a4 95 96 09 5d 88 d2 ee f0 90 4a
+ Linear Layer :
+ State round : 20
+ 1c 1f 04 00 97 a4 95 96 09 5d 88 d2 ee f0 90 4a
+ State linearized :
+ 9c 16 0d 09 9e ad 9c 96 09 5d 88 d2 ee f0 90 4a
+ Permutation Layer :
+ State round : 20
+ 9c 16 0d 09 9e ad 9c 96 09 5d 88 d2 ee f0 90 4a
+ State permuted :
+ 09 f0 4a 5d 88 d2 90 ee 9c 0d 9c 96 ad 09 9e 16
+
+One round EGFN round : 21
+ State :
+ Non Linear Layer :
+ State round : 21
+ 09 f0 4a 5d 88 d2 90 ee 9c 0d 9c 96 ad 09 9e 16
+ Subtweakey :
+ 32 97 fd 8c 29 e6 43 4d
+
+ Variables xored :
+ ae 9a 61 1a 84 ef dd 5b
+ Variables sboxed :
+ 42 97 43 a2 02 c1 b0 7c
+ State non linearized :
+ 75 40 8b 5f 2a 91 07 ac 9c 0d 9c 96 ad 09 9e 16
+ Linear Layer :
+ State round : 21
+ 75 40 8b 5f 2a 91 07 ac 9c 0d 9c 96 ad 09 9e 16
+ State linearized :
+ d4 dc 17 c3 b6 0d 9b ac 9c 0d 9c 96 ad 09 9e 16
+ Permutation Layer :
+ State round : 21
+ d4 dc 17 c3 b6 0d 9b ac 9c 0d 9c 96 ad 09 9e 16
+ State permuted :
+ 9c 09 16 0d 9c 96 9e ad d4 17 9b ac 0d c3 b6 dc
+
+One round EGFN round : 22
+ State :
+ Non Linear Layer :
+ State round : 22
+ 9c 09 16 0d 9c 96 9e ad d4 17 9b ac 0d c3 b6 dc
+ Subtweakey :
+ fe 61 4d 0c 93 bf 20 c4
+
+ Variables xored :
+ 2a 76 d6 a0 9e 7c 96 18
+ Variables sboxed :
+ 2b 2f 7d 95 e0 d7 9b e8
+ State non linearized :
+ 74 92 c1 ed 09 eb b1 86 d4 17 9b ac 0d c3 b6 dc
+ Linear Layer :
+ State round : 22
+ 74 92 c1 ed 09 eb b1 86 d4 17 9b ac 0d c3 b6 dc
+ State linearized :
+ f8 46 15 39 dd 3f 65 86 d4 17 9b ac 0d c3 b6 dc
+ Permutation Layer :
+ State round : 22
+ f8 46 15 39 dd 3f 65 86 d4 17 9b ac 0d c3 b6 dc
+ State permuted :
+ d4 c3 dc 17 9b ac b6 0d f8 15 65 86 3f 39 dd 46
+
+One round EGFN round : 23
+ State :
+ Non Linear Layer :
+ State round : 23
+ d4 c3 dc 17 9b ac b6 0d f8 15 65 86 3f 39 dd 46
+ Subtweakey :
+ df bb 3e 2d a8 cc 49 4d
+
+ Variables xored :
+ 27 ae 5b ab 97 f5 94 0b
+ Variables sboxed :
+ 83 42 7c f5 10 e9 a1 64
+ State non linearized :
+ b0 62 35 07 6e d0 f4 8e f8 15 65 86 3f 39 dd 46
+ Linear Layer :
+ State round : 23
+ b0 62 35 07 6e d0 f4 8e f8 15 65 86 3f 39 dd 46
+ State linearized :
+ 65 9a cd ff 96 28 0c 8e f8 15 65 86 3f 39 dd 46
+ Permutation Layer :
+ State round : 23
+ 65 9a cd ff 96 28 0c 8e f8 15 65 86 3f 39 dd 46
+ State permuted :
+ f8 39 46 15 65 86 dd 3f 65 cd 0c 8e 28 ff 96 9a
+
+One round EGFN round : 24
+ State :
+ Non Linear Layer :
+ State round : 24
+ f8 39 46 15 65 86 dd 3f 65 cd 0c 8e 28 ff 96 9a
+ Subtweakey :
+ 57 9d 40 8a 21 eb 36 e4
+
+ Variables xored :
+ 32 50 4c 04 09 14 a0 7e
+ Variables sboxed :
+ 05 3a bf 33 8a 15 95 7f
+ State non linearized :
+ 87 ac 53 9f 56 39 e7 3a 65 cd 0c 8e 28 ff 96 9a
+ Linear Layer :
+ State round : 24
+ 87 ac 53 9f 56 39 e7 3a 65 cd 0c 8e 28 ff 96 9a
+ State linearized :
+ ec c9 36 fa 33 5c 82 3a 65 cd 0c 8e 28 ff 96 9a
+ Permutation Layer :
+ State round : 24
+ ec c9 36 fa 33 5c 82 3a 65 cd 0c 8e 28 ff 96 9a
+ State permuted :
+ 65 ff 9a cd 0c 8e 96 28 ec 36 82 3a 5c fa 33 c9
+
+One round EGFN round : 25
+ State :
+ Non Linear Layer :
+ State round : 25
+ 65 ff 9a cd 0c 8e 96 28 ec 36 82 3a 5c fa 33 c9
+ Subtweakey :
+ d0 e3 66 55 3d 0e b8 92
+
+ Variables xored :
+ 3c d5 e4 6f 61 f4 8b 5b
+ Variables sboxed :
+ 91 fe 8f ed 43 aa 08 7c
+ State non linearized :
+ 19 f7 30 8e e1 01 68 b9 ec 36 82 3a 5c fa 33 c9
+ Linear Layer :
+ State round : 25
+ 19 f7 30 8e e1 01 68 b9 ec 36 82 3a 5c fa 33 c9
+ State linearized :
+ ee 1b dc 62 0d ed 84 b9 ec 36 82 3a 5c fa 33 c9
+ Permutation Layer :
+ State round : 25
+ ee 1b dc 62 0d ed 84 b9 ec 36 82 3a 5c fa 33 c9
+ State permuted :
+ ec fa c9 36 82 3a 33 5c ee dc 84 b9 ed 62 0d 1b
+
+One round EGFN round : 26
+ State :
+ Non Linear Layer :
+ State round : 26
+ ec fa c9 36 82 3a 33 5c ee dc 84 b9 ed 62 0d 1b
+ Subtweakey :
+ e9 ad 50 14 8c 71 c8 2f
+
+ Variables xored :
+ 07 71 d4 ad 61 13 c5 34
+ Variables sboxed :
+ 12 5b e7 ce 43 06 cb 04
+ State non linearized :
+ e8 31 cf 75 4c dd 68 4e ee dc 84 b9 ed 62 0d 1b
+ Linear Layer :
+ State round : 26
+ e8 31 cf 75 4c dd 68 4e ee dc 84 b9 ed 62 0d 1b
+ State linearized :
+ 65 df 21 9b a2 33 86 4e ee dc 84 b9 ed 62 0d 1b
+ Permutation Layer :
+ State round : 26
+ 65 df 21 9b a2 33 86 4e ee dc 84 b9 ed 62 0d 1b
+ State permuted :
+ ee 62 1b dc 84 b9 0d ed 65 21 86 4e 33 9b a2 df
+
+One round EGFN round : 27
+ State :
+ Non Linear Layer :
+ State round : 27
+ ee 62 1b dc 84 b9 0d ed 65 21 86 4e 33 9b a2 df
+ Subtweakey :
+ cf 03 5c 22 7d 90 b1 f5
+
+ Variables xored :
+ aa 22 da 6c 4e 0b 13 2a
+ Variables sboxed :
+ ff 23 d1 72 b6 64 06 2b
+ State non linearized :
+ c5 64 7f 6a f6 68 2e 12 65 21 86 4e 33 9b a2 df
+ Linear Layer :
+ State round : 27
+ c5 64 7f 6a f6 68 2e 12 65 21 86 4e 33 9b a2 df
+ State linearized :
+ 43 01 1a 0f 93 0d 4b 12 65 21 86 4e 33 9b a2 df
+ Permutation Layer :
+ State round : 27
+ 43 01 1a 0f 93 0d 4b 12 65 21 86 4e 33 9b a2 df
+ State permuted :
+ 65 9b df 21 86 4e a2 33 43 1a 4b 12 0d 0f 93 01
+
+One round EGFN round : 28
+ State :
+ Non Linear Layer :
+ State round : 28
+ 65 9b df 21 86 4e a2 33 43 1a 4b 12 0d 0f 93 01
+ Subtweakey :
+ a0 14 9f e5 da 2b 6e 4d
+
+ Variables xored :
+ e3 0e d4 f7 d7 24 fd 4c
+ Variables sboxed :
+ 49 54 e7 fd 5e 5c bb bf
+ State non linearized :
+ da 20 83 7f 7b a9 f6 7a 43 1a 4b 12 0d 0f 93 01
+ Linear Layer :
+ State round : 28
+ da 20 83 7f 7b a9 f6 7a 43 1a 4b 12 0d 0f 93 01
+ State linearized :
+ 4b 63 c0 3c 38 ea b5 7a 43 1a 4b 12 0d 0f 93 01
+ Permutation Layer :
+ State round : 28
+ 4b 63 c0 3c 38 ea b5 7a 43 1a 4b 12 0d 0f 93 01
+ State permuted :
+ 43 0f 01 1a 4b 12 93 0d 4b c0 b5 7a ea 3c 38 63
+
+One round EGFN round : 29
+ State :
+ Non Linear Layer :
+ State round : 29
+ 43 0f 01 1a 4b 12 93 0d 4b c0 b5 7a ea 3c 38 63
+ Subtweakey :
+ 81 b8 92 0b 18 ab 32 3c
+
+ Variables xored :
+ ca 78 27 71 f2 97 0a 5f
+ Variables sboxed :
+ c4 67 83 5b de 10 6a d6
+ State non linearized :
+ 95 65 11 c4 10 91 f4 c9 4b c0 b5 7a ea 3c 38 63
+ Linear Layer :
+ State round : 29
+ 95 65 11 c4 10 91 f4 c9 4b c0 b5 7a ea 3c 38 63
+ State linearized :
+ 3f 2e 5a 8f 5b da bf c9 4b c0 b5 7a ea 3c 38 63
+ Permutation Layer :
+ State round : 29
+ 3f 2e 5a 8f 5b da bf c9 4b c0 b5 7a ea 3c 38 63
+ State permuted :
+ 4b 3c 63 c0 b5 7a 38 ea 3f 5a bf c9 da 8f 5b 2e
+
+One round EGFN round : 30
+ State :
+ Non Linear Layer :
+ State round : 30
+ 4b 3c 63 c0 b5 7a 38 ea 3f 5a bf c9 da 8f 5b 2e
+ Subtweakey :
+ 2b ce ea d0 11 35 0f ea
+
+ Variables xored :
+ 14 94 55 19 cb ba 54 c4
+ Variables sboxed :
+ 15 a1 0f c5 8e fc 6b 18
+ State non linearized :
+ 53 57 9f 4e 70 75 99 ff 3f 5a bf c9 da 8f 5b 2e
+ Linear Layer :
+ State round : 30
+ 53 57 9f 4e 70 75 99 ff 3f 5a bf c9 da 8f 5b 2e
+ State linearized :
+ 4e 68 a0 71 4f 4a a6 ff 3f 5a bf c9 da 8f 5b 2e
+ Permutation Layer :
+ State round : 30
+ 4e 68 a0 71 4f 4a a6 ff 3f 5a bf c9 da 8f 5b 2e
+ State permuted :
+ 3f 8f 2e 5a bf c9 5b da 4e a0 a6 ff 4a 71 4f 68
+
+Last round EGFN :
+ State :
+ Non Linear Layer :
+ State round : 31
+ 3f 8f 2e 5a bf c9 5b da 4e a0 a6 ff 4a 71 4f 68
+ Subtweakey :
+ a7 8f ba ae 9b 86 92 ac
+
+ Variables xored :
+ e9 2f 1c 51 d1 f7 dd c4
+ Variables sboxed :
+ 19 5f da 98 5d fd b0 18
+ State non linearized :
+ 27 3f d3 07 27 13 04 c3 4e a0 a6 ff 4a 71 4f 68
+ Linear Layer :
+ State round : 31
+ 27 3f d3 07 27 13 04 c3 4e a0 a6 ff 4a 71 4f 68
+ State linearized :
+ e4 71 9d 49 69 5d 4a c3 4e a0 a6 ff 4a 71 4f 68
+
+Ciphertext :
+ e4 71 9d 49 69 5d 4a c3 4e a0 a6 ff 4a 71 4f 68
diff --git a/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_random.txt b/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_random.txt
new file mode 100755
index 0000000..ab77e18
--- /dev/null
+++ b/crypto_aead/lilliputaei128v1/ref/test/test-cipher-ref/lilliputTBCEnc_random.txt
@@ -0,0 +1,809 @@
+Tweak :
+4d d2 b3 2a 12 43 8d 7d
+21 26 90 90 fa 2e f8 df
+84 1c 11 81 10 f3 43 a8
+
+Key :
+9b f9 d5 3d 4d 23 f4 7f
+68 91 73 02 0a c6 96 c1
+
+Message :
+0b 94 30 0d bd 1d 9d 9c f9 c8 b6 84 29 f0 d7 bc
+
+One round EGFN round : 0
+ State :
+ Non Linear Layer :
+ State round : 0
+ 0b 94 30 0d bd 1d 9d 9c f9 c8 b6 84 29 f0 d7 bc
+ Subtweakey :
+ 1b 80 94 04 bf 7b 54 b4
+
+ Variables xored :
+ e2 48 22 80 96 8b 83 08
+ Variables sboxed :
+ e1 e2 23 84 9b 08 34 30
+ State non linearized :
+ 3b a0 38 96 39 3e 7f 7d f9 c8 b6 84 29 f0 d7 bc
+ Linear Layer :
+ State round : 0
+ 3b a0 38 96 39 3e 7f 7d f9 c8 b6 84 29 f0 d7 bc
+ State linearized :
+ 36 59 c1 6f c0 c7 86 7d f9 c8 b6 84 29 f0 d7 bc
+ Permutation Layer :
+ State round : 0
+ 36 59 c1 6f c0 c7 86 7d f9 c8 b6 84 29 f0 d7 bc
+ State permuted :
+ f9 f0 bc c8 b6 84 d7 29 36 c1 86 7d c7 6f c0 59
+
+One round EGFN round : 1
+ State :
+ Non Linear Layer :
+ State round : 1
+ f9 f0 bc c8 b6 84 d7 29 36 c1 86 7d c7 6f c0 59
+ Subtweakey :
+ e8 da e1 9b 92 c9 4c 06
+
+ Variables xored :
+ de 1b 67 e6 55 a6 8c 5f
+ Variables sboxed :
+ ea c2 d9 d5 0f a3 8d d6
+ State non linearized :
+ 2f 7d 1f c7 63 5d 15 c3 36 c1 86 7d c7 6f c0 59
+ Linear Layer :
+ State round : 1
+ 2f 7d 1f c7 63 5d 15 c3 36 c1 86 7d c7 6f c0 59
+ State linearized :
+ 4b 4b 29 f1 55 6b 23 c3 36 c1 86 7d c7 6f c0 59
+ Permutation Layer :
+ State round : 1
+ 4b 4b 29 f1 55 6b 23 c3 36 c1 86 7d c7 6f c0 59
+ State permuted :
+ 36 6f 59 c1 86 7d c0 c7 4b 29 23 c3 6b f1 55 4b
+
+One round EGFN round : 2
+ State :
+ Non Linear Layer :
+ State round : 2
+ 36 6f 59 c1 86 7d c0 c7 4b 29 23 c3 6b f1 55 4b
+ Subtweakey :
+ d0 32 9d 5a 25 0e 38 bc
+
+ Variables xored :
+ 9b 1b be 99 4e ff 6d f7
+ Variables sboxed :
+ f7 c2 4d 50 b6 d4 6c fd
+ State non linearized :
+ cb 03 8d 77 d6 30 02 30 4b 29 23 c3 6b f1 55 4b
+ Linear Layer :
+ State round : 2
+ cb 03 8d 77 d6 30 02 30 4b 29 23 c3 6b f1 55 4b
+ State linearized :
+ 86 48 c6 3c 9d 7b 49 30 4b 29 23 c3 6b f1 55 4b
+ Permutation Layer :
+ State round : 2
+ 86 48 c6 3c 9d 7b 49 30 4b 29 23 c3 6b f1 55 4b
+ State permuted :
+ 4b f1 4b 29 23 c3 55 6b 86 c6 49 30 7b 3c 9d 48
+
+One round EGFN round : 3
+ State :
+ Non Linear Layer :
+ State round : 3
+ 4b f1 4b 29 23 c3 55 6b 86 c6 49 30 7b 3c 9d 48
+ Subtweakey :
+ 9f 4a ca 7f 29 1d 71 88
+
+ Variables xored :
+ 19 8c 83 4f 52 21 ec c0
+ Variables sboxed :
+ c5 8d 34 40 b8 01 6e ee
+ State non linearized :
+ a5 9f 4a 91 63 f7 d8 ae 86 c6 49 30 7b 3c 9d 48
+ Linear Layer :
+ State round : 3
+ a5 9f 4a 91 63 f7 d8 ae 86 c6 49 30 7b 3c 9d 48
+ State linearized :
+ 46 19 cc 17 e5 71 5e ae 86 c6 49 30 7b 3c 9d 48
+ Permutation Layer :
+ State round : 3
+ 46 19 cc 17 e5 71 5e ae 86 c6 49 30 7b 3c 9d 48
+ State permuted :
+ 86 3c 48 c6 49 30 9d 7b 46 cc 5e ae 71 17 e5 19
+
+One round EGFN round : 4
+ State :
+ Non Linear Layer :
+ State round : 4
+ 86 3c 48 c6 49 30 9d 7b 46 cc 5e ae 71 17 e5 19
+ Subtweakey :
+ e4 16 c5 ab 79 20 6d 6a
+
+ Variables xored :
+ a2 da 9b 05 08 37 88 73
+ Variables sboxed :
+ a7 d1 f7 35 30 fa a5 6d
+ State non linearized :
+ eb 99 b2 f6 7c c7 4c dc 46 cc 5e ae 71 17 e5 19
+ Linear Layer :
+ State round : 4
+ eb 99 b2 f6 7c c7 4c dc 46 cc 5e ae 71 17 e5 19
+ State linearized :
+ 12 df f4 b0 3a 81 0a dc 46 cc 5e ae 71 17 e5 19
+ Permutation Layer :
+ State round : 4
+ 12 df f4 b0 3a 81 0a dc 46 cc 5e ae 71 17 e5 19
+ State permuted :
+ 46 17 19 cc 5e ae e5 71 12 f4 0a dc 81 b0 3a df
+
+One round EGFN round : 5
+ State :
+ Non Linear Layer :
+ State round : 5
+ 46 17 19 cc 5e ae e5 71 12 f4 0a dc 81 b0 3a df
+ Subtweakey :
+ 8f ab aa e6 3c 18 60 a8
+
+ Variables xored :
+ 9d 5f a0 3a bd a8 5a 77
+ Variables sboxed :
+ 76 d6 95 9d f1 9e 70 9c
+ State non linearized :
+ da 67 87 3d c3 3b 33 07 12 f4 0a dc 81 b0 3a df
+ Linear Layer :
+ State round : 5
+ da 67 87 3d c3 3b 33 07 12 f4 0a dc 81 b0 3a df
+ State linearized :
+ e1 75 95 2f d1 29 21 07 12 f4 0a dc 81 b0 3a df
+ Permutation Layer :
+ State round : 5
+ e1 75 95 2f d1 29 21 07 12 f4 0a dc 81 b0 3a df
+ State permuted :
+ 12 b0 df f4 0a dc 3a 81 e1 95 21 07 29 2f d1 75
+
+One round EGFN round : 6
+ State :
+ Non Linear Layer :
+ State round : 6
+ 12 b0 df f4 0a dc 3a 81 e1 95 21 07 29 2f d1 75
+ Subtweakey :
+ ee 9e 4a 6a 04 f1 70 92
+
+ Variables xored :
+ 0f 0b 6b 6d 2d de a1 e7
+ Variables sboxed :
+ 0e 64 0b 6c d2 ea b5 75
+ State non linearized :
+ 67 05 35 26 66 d7 5e 8f e1 95 21 07 29 2f d1 75
+ Linear Layer :
+ State round : 6
+ 67 05 35 26 66 d7 5e 8f e1 95 21 07 29 2f d1 75
+ State linearized :
+ e2 e4 d4 c7 87 36 bf 8f e1 95 21 07 29 2f d1 75
+ Permutation Layer :
+ State round : 6
+ e2 e4 d4 c7 87 36 bf 8f e1 95 21 07 29 2f d1 75
+ State permuted :
+ e1 2f 75 95 21 07 d1 29 e2 d4 bf 8f 36 c7 87 e4
+
+One round EGFN round : 7
+ State :
+ Non Linear Layer :
+ State round : 7
+ e1 2f 75 95 21 07 d1 29 e2 d4 bf 8f 36 c7 87 e4
+ Subtweakey :
+ fe ad 82 bc ca 4f 2b 7c
+
+ Variables xored :
+ 1c 79 3d 33 fc 88 ac 98
+ Variables sboxed :
+ da 94 74 87 f6 a5 4c cc
+ State non linearized :
+ 2d 63 d0 63 a6 73 45 f3 e2 d4 bf 8f 36 c7 87 e4
+ Linear Layer :
+ State round : 7
+ 2d 63 d0 63 a6 73 45 f3 e2 d4 bf 8f 36 c7 87 e4
+ State linearized :
+ 5d 81 32 81 44 91 a7 f3 e2 d4 bf 8f 36 c7 87 e4
+ Permutation Layer :
+ State round : 7
+ 5d 81 32 81 44 91 a7 f3 e2 d4 bf 8f 36 c7 87 e4
+ State permuted :
+ e2 c7 e4 d4 bf 8f 87 36 5d 32 a7 f3 91 81 44 81
+
+One round EGFN round : 8
+ State :
+ Non Linear Layer :
+ State round : 8
+ e2 c7 e4 d4 bf 8f 87 36 5d 32 a7 f3 91 81 44 81
+ Subtweakey :
+ 77 e2 84 78 04 40 a0 78
+
+ Variables xored :
+ 2a d0 23 8b 95 c1 e4 f9
+ Variables sboxed :
+ 2b db be 08 78 52 8f 11
+ State non linearized :
+ f3 48 b6 ac b7 31 5c 1d 5d 32 a7 f3 91 81 44 81
+ Linear Layer :
+ State round : 8
+ f3 48 b6 ac b7 31 5c 1d 5d 32 a7 f3 91 81 44 81
+ State linearized :
+ 9c 15 eb f1 ea 6c 01 1d 5d 32 a7 f3 91 81 44 81
+ Permutation Layer :
+ State round : 8
+ 9c 15 eb f1 ea 6c 01 1d 5d 32 a7 f3 91 81 44 81
+ State permuted :
+ 5d 81 81 32 a7 f3 44 91 9c eb 01 1d 6c f1 ea 15
+
+One round EGFN round : 9
+ State :
+ Non Linear Layer :
+ State round : 9
+ 5d 81 81 32 a7 f3 44 91 9c eb 01 1d 6c f1 ea 15
+ Subtweakey :
+ 0f 07 85 7d 4f aa 61 f9
+
+ Variables xored :
+ 93 ec 84 60 23 5b 8b ec
+ Variables sboxed :
+ 92 6e 02 3f be 7c 08 6e
+ State non linearized :
+ 33 89 fd 8c 98 f1 2a 03 9c eb 01 1d 6c f1 ea 15
+ Linear Layer :
+ State round : 9
+ 33 89 fd 8c 98 f1 2a 03 9c eb 01 1d 6c f1 ea 15
+ State linearized :
+ 2f 15 61 10 04 6d b6 03 9c eb 01 1d 6c f1 ea 15
+ Permutation Layer :
+ State round : 9
+ 2f 15 61 10 04 6d b6 03 9c eb 01 1d 6c f1 ea 15
+ State permuted :
+ 9c f1 15 eb 01 1d ea 6c 2f 61 b6 03 6d 10 04 15
+
+One round EGFN round : 10
+ State :
+ Non Linear Layer :
+ State round : 10
+ 9c f1 15 eb 01 1d ea 6c 2f 61 b6 03 6d 10 04 15
+ Subtweakey :
+ 5b 9e e2 54 91 a6 b5 da
+
+ Variables xored :
+ 74 ff 54 57 fc b6 b1 cf
+ Variables sboxed :
+ e6 d4 6b fb f6 90 dc ac
+ State non linearized :
+ 30 2d 85 1d fa 76 3e 8a 2f 61 b6 03 6d 10 04 15
+ Linear Layer :
+ State round : 10
+ 30 2d 85 1d fa 76 3e 8a 2f 61 b6 03 6d 10 04 15
+ State linearized :
+ b2 02 aa 32 d5 59 11 8a 2f 61 b6 03 6d 10 04 15
+ Permutation Layer :
+ State round : 10
+ b2 02 aa 32 d5 59 11 8a 2f 61 b6 03 6d 10 04 15
+ State permuted :
+ 2f 10 15 61 b6 03 04 6d b2 aa 11 8a 59 32 d5 02
+
+One round EGFN round : 11
+ State :
+ Non Linear Layer :
+ State round : 11
+ 2f 10 15 61 b6 03 04 6d b2 aa 11 8a 59 32 d5 02
+ Subtweakey :
+ eb c1 fc f9 2e b4 c5 5f
+
+ Variables xored :
+ 59 6b ed 73 77 86 10 5d
+ Variables sboxed :
+ ef 0b 48 6d 9c 32 f8 25
+ State non linearized :
+ 0a e8 27 fd db 4b 0f 82 b2 aa 11 8a 59 32 d5 02
+ Linear Layer :
+ State round : 11
+ 0a e8 27 fd db 4b 0f 82 b2 aa 11 8a 59 32 d5 02
+ State linearized :
+ 37 5a 95 4f 69 f9 bd 82 b2 aa 11 8a 59 32 d5 02
+ Permutation Layer :
+ State round : 11
+ 37 5a 95 4f 69 f9 bd 82 b2 aa 11 8a 59 32 d5 02
+ State permuted :
+ b2 32 02 aa 11 8a d5 59 37 95 bd 82 f9 4f 69 5a
+
+One round EGFN round : 12
+ State :
+ Non Linear Layer :
+ State round : 12
+ b2 32 02 aa 11 8a d5 59 37 95 bd 82 f9 4f 69 5a
+ Subtweakey :
+ 7f 2a d4 ba a8 9b 94 4c
+
+ Variables xored :
+ 48 bf 69 38 51 d4 fd 16
+ Variables sboxed :
+ e2 22 2d 39 98 e7 bb 3e
+ State non linearized :
+ 8c 89 e5 32 28 a7 f7 bb 37 95 bd 82 f9 4f 69 5a
+ Linear Layer :
+ State round : 12
+ 8c 89 e5 32 28 a7 f7 bb 37 95 bd 82 f9 4f 69 5a
+ State linearized :
+ ce be d2 05 1f 90 c0 bb 37 95 bd 82 f9 4f 69 5a
+ Permutation Layer :
+ State round : 12
+ ce be d2 05 1f 90 c0 bb 37 95 bd 82 f9 4f 69 5a
+ State permuted :
+ 37 4f 5a 95 bd 82 69 f9 ce d2 c0 bb 90 05 1f be
+
+One round EGFN round : 13
+ State :
+ Non Linear Layer :
+ State round : 13
+ 37 4f 5a 95 bd 82 69 f9 ce d2 c0 bb 90 05 1f be
+ Subtweakey :
+ ed a5 d4 2c ea b4 6b d0
+
+ Variables xored :
+ 23 77 14 97 7a b1 74 6e
+ Variables sboxed :
+ be 9c 15 10 73 dc e6 29
+ State non linearized :
+ 1e a9 86 e6 ad 97 f5 47 ce d2 c0 bb 90 05 1f be
+ Linear Layer :
+ State round : 13
+ 1e a9 86 e6 ad 97 f5 47 ce d2 c0 bb 90 05 1f be
+ State linearized :
+ f3 67 48 28 63 59 3b 47 ce d2 c0 bb 90 05 1f be
+ Permutation Layer :
+ State round : 13
+ f3 67 48 28 63 59 3b 47 ce d2 c0 bb 90 05 1f be
+ State permuted :
+ ce 05 be d2 c0 bb 1f 90 f3 48 3b 47 59 28 63 67
+
+One round EGFN round : 14
+ State :
+ Non Linear Layer :
+ State round : 14
+ ce 05 be d2 c0 bb 1f 90 f3 48 3b 47 59 28 63 67
+ Subtweakey :
+ 1a b7 be 76 21 63 f7 a3
+
+ Variables xored :
+ e9 ff 85 31 78 4b 94 c4
+ Variables sboxed :
+ 19 d4 81 09 67 4a a1 18
+ State non linearized :
+ d6 a4 f4 b5 c9 3a cb 89 f3 48 3b 47 59 28 63 67
+ Linear Layer :
+ State round : 14
+ d6 a4 f4 b5 c9 3a cb 89 f3 48 3b 47 59 28 63 67
+ State linearized :
+ 03 57 07 46 3a c9 38 89 f3 48 3b 47 59 28 63 67
+ Permutation Layer :
+ State round : 14
+ 03 57 07 46 3a c9 38 89 f3 48 3b 47 59 28 63 67
+ State permuted :
+ f3 28 67 48 3b 47 63 59 03 07 38 89 c9 46 3a 57
+
+One round EGFN round : 15
+ State :
+ Non Linear Layer :
+ State round : 15
+ f3 28 67 48 3b 47 63 59 03 07 38 89 c9 46 3a 57
+ Subtweakey :
+ c3 79 be a2 3b 12 64 34
+
+ Variables xored :
+ c0 7e 86 2b f2 54 5e 63
+ Variables sboxed :
+ ee 7f 32 59 de 6b 2e 38
+ State non linearized :
+ cb 06 0c 96 62 75 1c b7 03 07 38 89 c9 46 3a 57
+ Linear Layer :
+ State round : 15
+ cb 06 0c 96 62 75 1c b7 03 07 38 89 c9 46 3a 57
+ State linearized :
+ cb 05 0f 95 61 76 1f b7 03 07 38 89 c9 46 3a 57
+ Permutation Layer :
+ State round : 15
+ cb 05 0f 95 61 76 1f b7 03 07 38 89 c9 46 3a 57
+ State permuted :
+ 03 46 57 07 38 89 3a c9 cb 0f 1f b7 76 95 61 05
+
+One round EGFN round : 16
+ State :
+ Non Linear Layer :
+ State round : 16
+ 03 46 57 07 38 89 3a c9 cb 0f 1f b7 76 95 61 05
+ Subtweakey :
+ de 17 54 c2 1e a2 5f 29
+
+ Variables xored :
+ 15 18 4b 75 68 37 3e 2c
+ Variables sboxed :
+ bd e8 4a 3c 71 fa 61 68
+ State non linearized :
+ 6b 27 ad 76 04 c3 d2 74 cb 0f 1f b7 76 95 61 05
+ Linear Layer :
+ State round : 16
+ 6b 27 ad 76 04 c3 d2 74 cb 0f 1f b7 76 95 61 05
+ State linearized :
+ 85 ec 66 bd cf 08 19 74 cb 0f 1f b7 76 95 61 05
+ Permutation Layer :
+ State round : 16
+ 85 ec 66 bd cf 08 19 74 cb 0f 1f b7 76 95 61 05
+ State permuted :
+ cb 95 05 0f 1f b7 61 76 85 66 19 74 08 bd cf ec
+
+One round EGFN round : 17
+ State :
+ Non Linear Layer :
+ State round : 17
+ cb 95 05 0f 1f b7 61 76 85 66 19 74 08 bd cf ec
+ Subtweakey :
+ bc fe 08 70 d0 0a ad 1a
+
+ Variables xored :
+ 39 98 11 04 d8 b7 62 f6
+ Variables sboxed :
+ 62 cc 96 33 66 4f cd 9a
+ State non linearized :
+ 51 58 4a 69 2c 21 ad 14 85 66 19 74 08 bd cf ec
+ Linear Layer :
+ State round : 17
+ 51 58 4a 69 2c 21 ad 14 85 66 19 74 08 bd cf ec
+ State linearized :
+ a5 dd cf ec a9 a4 28 14 85 66 19 74 08 bd cf ec
+ Permutation Layer :
+ State round : 17
+ a5 dd cf ec a9 a4 28 14 85 66 19 74 08 bd cf ec
+ State permuted :
+ 85 bd ec 66 19 74 cf 08 a5 cf 28 14 a4 ec a9 dd
+
+One round EGFN round : 18
+ State :
+ Non Linear Layer :
+ State round : 18
+ 85 bd ec 66 19 74 cf 08 a5 cf 28 14 a4 ec a9 dd
+ Subtweakey :
+ bb 54 b4 94 08 95 f8 42
+
+ Variables xored :
+ 1e 9b 9c 80 ac 79 51 9f
+ Variables sboxed :
+ 0c f7 3b 84 4c 94 98 a9
+ State non linearized :
+ 2c 25 78 2a 9d 4f 38 04 a5 cf 28 14 a4 ec a9 dd
+ Linear Layer :
+ State round : 18
+ 2c 25 78 2a 9d 4f 38 04 a5 cf 28 14 a4 ec a9 dd
+ State linearized :
+ 9b 80 dd 8f 38 ea 9d 04 a5 cf 28 14 a4 ec a9 dd
+ Permutation Layer :
+ State round : 18
+ 9b 80 dd 8f 38 ea 9d 04 a5 cf 28 14 a4 ec a9 dd
+ State permuted :
+ a5 ec dd cf 28 14 a9 a4 9b dd 9d 04 ea 8f 38 80
+
+One round EGFN round : 19
+ State :
+ Non Linear Layer :
+ State round : 19
+ a5 ec dd cf 28 14 a9 a4 9b dd 9d 04 ea 8f 38 80
+ Subtweakey :
+ ad 19 83 2d 36 55 04 03
+
+ Variables xored :
+ 36 c4 1e 29 dc da 3c 83
+ Variables sboxed :
+ 31 18 0c c7 45 d1 91 34
+ State non linearized :
+ 91 7d 0c 8a ef 18 b1 95 9b dd 9d 04 ea 8f 38 80
+ Linear Layer :
+ State round : 19
+ 91 7d 0c 8a ef 18 b1 95 9b dd 9d 04 ea 8f 38 80
+ State linearized :
+ 13 e6 97 11 74 83 2a 95 9b dd 9d 04 ea 8f 38 80
+ Permutation Layer :
+ State round : 19
+ 13 e6 97 11 74 83 2a 95 9b dd 9d 04 ea 8f 38 80
+ State permuted :
+ 9b 8f 80 dd 9d 04 38 ea 13 97 2a 95 83 11 74 e6
+
+One round EGFN round : 20
+ State :
+ Non Linear Layer :
+ State round : 20
+ 9b 8f 80 dd 9d 04 38 ea 13 97 2a 95 83 11 74 e6
+ Subtweakey :
+ d3 77 6f 5c b4 cf e5 e9
+
+ Variables xored :
+ c0 e0 45 c9 37 de 91 0f
+ Variables sboxed :
+ ee e3 47 c8 fa ea b7 0e
+ State non linearized :
+ 95 38 6a 27 55 43 db 04 13 97 2a 95 83 11 74 e6
+ Linear Layer :
+ State round : 20
+ 95 38 6a 27 55 43 db 04 13 97 2a 95 83 11 74 e6
+ State linearized :
+ 48 2b 79 34 46 50 c8 04 13 97 2a 95 83 11 74 e6
+ Permutation Layer :
+ State round : 20
+ 48 2b 79 34 46 50 c8 04 13 97 2a 95 83 11 74 e6
+ State permuted :
+ 13 11 e6 97 2a 95 74 83 48 79 c8 04 50 34 46 2b
+
+One round EGFN round : 21
+ State :
+ Non Linear Layer :
+ State round : 21
+ 13 11 e6 97 2a 95 74 83 48 79 c8 04 50 34 46 2b
+ Subtweakey :
+ ed 01 c1 22 0b 7a da c6
+
+ Variables xored :
+ a5 78 09 26 5b 4e 9c ed
+ Variables sboxed :
+ 80 67 8a 27 7c b6 3b 48
+ State non linearized :
+ 5b 2a 50 eb 0d 1f 13 03 48 79 c8 04 50 34 46 2b
+ Linear Layer :
+ State round : 21
+ 5b 2a 50 eb 0d 1f 13 03 48 79 c8 04 50 34 46 2b
+ State linearized :
+ 84 62 18 a3 45 57 5b 03 48 79 c8 04 50 34 46 2b
+ Permutation Layer :
+ State round : 21
+ 84 62 18 a3 45 57 5b 03 48 79 c8 04 50 34 46 2b
+ State permuted :
+ 48 34 2b 79 c8 04 46 50 84 18 5b 03 57 a3 45 62
+
+One round EGFN round : 22
+ State :
+ Non Linear Layer :
+ State round : 22
+ 48 34 2b 79 c8 04 46 50 84 18 5b 03 57 a3 45 62
+ Subtweakey :
+ 17 3e 7b ec 6a 32 49 d4
+
+ Variables xored :
+ 93 26 20 ef 3d 91 0c b6
+ Variables sboxed :
+ 92 27 21 c1 74 b7 b9 90
+ State non linearized :
+ d8 8d 9c 0d 09 25 61 c2 84 18 5b 03 57 a3 45 62
+ Linear Layer :
+ State round : 22
+ d8 8d 9c 0d 09 25 61 c2 84 18 5b 03 57 a3 45 62
+ State linearized :
+ ad 09 18 89 8d a1 e5 c2 84 18 5b 03 57 a3 45 62
+ Permutation Layer :
+ State round : 22
+ ad 09 18 89 8d a1 e5 c2 84 18 5b 03 57 a3 45 62
+ State permuted :
+ 84 a3 62 18 5b 03 45 57 ad 18 e5 c2 a1 89 8d 09
+
+One round EGFN round : 23
+ State :
+ Non Linear Layer :
+ State round : 23
+ 84 a3 62 18 5b 03 45 57 ad 18 e5 c2 a1 89 8d 09
+ Subtweakey :
+ cc 7e b0 f9 b1 4d a0 6c
+
+ Variables xored :
+ 61 66 55 3b 10 c4 2d 65
+ Variables sboxed :
+ 43 79 0f 51 f8 18 d2 0a
+ State non linearized :
+ 8e 71 7a e0 0a 0c 3c 14 ad 18 e5 c2 a1 89 8d 09
+ Linear Layer :
+ State round : 23
+ 8e 71 7a e0 0a 0c 3c 14 ad 18 e5 c2 a1 89 8d 09
+ State linearized :
+ b9 dc d7 4d a7 a1 91 14 ad 18 e5 c2 a1 89 8d 09
+ Permutation Layer :
+ State round : 23
+ b9 dc d7 4d a7 a1 91 14 ad 18 e5 c2 a1 89 8d 09
+ State permuted :
+ ad 89 09 18 e5 c2 8d a1 b9 d7 91 14 a1 4d a7 dc
+
+One round EGFN round : 24
+ State :
+ Non Linear Layer :
+ State round : 24
+ ad 89 09 18 e5 c2 8d a1 b9 d7 91 14 a1 4d a7 dc
+ Subtweakey :
+ 46 86 a6 32 98 64 16 6e
+
+ Variables xored :
+ ff 51 37 26 39 29 b1 b2
+ Variables sboxed :
+ d4 98 fa 27 62 c7 dc b4
+ State non linearized :
+ 19 55 ce 7a c2 38 15 75 b9 d7 91 14 a1 4d a7 dc
+ Linear Layer :
+ State round : 24
+ 19 55 ce 7a c2 38 15 75 b9 d7 91 14 a1 4d a7 dc
+ State linearized :
+ b9 ec 77 c3 7b 81 ac 75 b9 d7 91 14 a1 4d a7 dc
+ Permutation Layer :
+ State round : 24
+ b9 ec 77 c3 7b 81 ac 75 b9 d7 91 14 a1 4d a7 dc
+ State permuted :
+ b9 4d dc d7 91 14 a7 a1 b9 77 ac 75 81 c3 7b ec
+
+One round EGFN round : 25
+ State :
+ Non Linear Layer :
+ State round : 25
+ b9 4d dc d7 91 14 a7 a1 b9 77 ac 75 81 c3 7b ec
+ Subtweakey :
+ ec 8f d5 76 b4 c1 27 3e
+
+ Variables xored :
+ 55 f8 79 03 35 02 5c d2
+ Variables sboxed :
+ 0f eb 94 85 82 b2 d0 c9
+ State non linearized :
+ 70 9d 6e 55 14 80 4c ae b9 77 ac 75 81 c3 7b ec
+ Linear Layer :
+ State round : 25
+ 70 9d 6e 55 14 80 4c ae b9 77 ac 75 81 c3 7b ec
+ State linearized :
+ 5e 24 d7 ec ad 39 f5 ae b9 77 ac 75 81 c3 7b ec
+ Permutation Layer :
+ State round : 25
+ 5e 24 d7 ec ad 39 f5 ae b9 77 ac 75 81 c3 7b ec
+ State permuted :
+ b9 c3 ec 77 ac 75 7b 81 5e d7 f5 ae 39 ec ad 24
+
+One round EGFN round : 26
+ State :
+ Non Linear Layer :
+ State round : 26
+ b9 c3 ec 77 ac 75 7b 81 5e d7 f5 ae 39 ec ad 24
+ Subtweakey :
+ d7 dd 61 b0 50 8b 2a 5e
+
+ Variables xored :
+ 89 0a 94 1e 69 67 87 7a
+ Variables sboxed :
+ c6 6a a1 0c 2d d9 86 73
+ State non linearized :
+ ca 45 35 5a a0 d4 11 47 5e d7 f5 ae 39 ec ad 24
+ Linear Layer :
+ State round : 26
+ ca 45 35 5a a0 d4 11 47 5e d7 f5 ae 39 ec ad 24
+ State linearized :
+ 60 1b 6b 04 fe 8a 4f 47 5e d7 f5 ae 39 ec ad 24
+ Permutation Layer :
+ State round : 26
+ 60 1b 6b 04 fe 8a 4f 47 5e d7 f5 ae 39 ec ad 24
+ State permuted :
+ 5e ec 24 d7 f5 ae ad 39 60 6b 4f 47 8a 04 fe 1b
+
+One round EGFN round : 27
+ State :
+ Non Linear Layer :
+ State round : 27
+ 5e ec 24 d7 f5 ae ad 39 60 6b 4f 47 8a 04 fe 1b
+ Subtweakey :
+ ea 9e 9b 70 cd e2 34 75
+
+ Variables xored :
+ 8a f5 d4 37 47 e6 ca 6e
+ Variables sboxed :
+ ae e9 e7 fa e4 d5 c4 29
+ State non linearized :
+ 77 28 f1 33 0f 49 44 97 60 6b 4f 47 8a 04 fe 1b
+ Linear Layer :
+ State round : 27
+ 77 28 f1 33 0f 49 44 97 60 6b 4f 47 8a 04 fe 1b
+ State linearized :
+ 04 48 91 53 6f 29 24 97 60 6b 4f 47 8a 04 fe 1b
+ Permutation Layer :
+ State round : 27
+ 04 48 91 53 6f 29 24 97 60 6b 4f 47 8a 04 fe 1b
+ State permuted :
+ 60 04 1b 6b 4f 47 fe 8a 04 91 24 97 29 53 6f 48
+
+One round EGFN round : 28
+ State :
+ Non Linear Layer :
+ State round : 28
+ 60 04 1b 6b 4f 47 fe 8a 04 91 24 97 29 53 6f 48
+ Subtweakey :
+ 12 af 2f 3f 49 64 bc 28
+
+ Variables xored :
+ 16 3e 0b a8 60 37 d3 60
+ Variables sboxed :
+ 3e 61 64 9e 3f fa 2c 3f
+ State non linearized :
+ 5f 28 e1 54 d1 23 9f b4 04 91 24 97 29 53 6f 48
+ Linear Layer :
+ State round : 28
+ 5f 28 e1 54 d1 23 9f b4 04 91 24 97 29 53 6f 48
+ State linearized :
+ 6c 2c e5 50 d5 27 9b b4 04 91 24 97 29 53 6f 48
+ Permutation Layer :
+ State round : 28
+ 6c 2c e5 50 d5 27 9b b4 04 91 24 97 29 53 6f 48
+ State permuted :
+ 04 53 48 91 24 97 6f 29 6c e5 9b b4 27 50 d5 2c
+
+One round EGFN round : 29
+ State :
+ Non Linear Layer :
+ State round : 29
+ 04 53 48 91 24 97 6f 29 6c e5 9b b4 27 50 d5 2c
+ Subtweakey :
+ c3 c1 83 48 95 b0 4b b6
+
+ Variables xored :
+ af 24 18 fc b2 e0 9e 9a
+ Variables sboxed :
+ 8b 5c e8 f6 b4 e3 e0 97
+ State non linearized :
+ 93 b3 ab 25 d2 7f 33 a2 6c e5 9b b4 27 50 d5 2c
+ Linear Layer :
+ State round : 29
+ 93 b3 ab 25 d2 7f 33 a2 6c e5 9b b4 27 50 d5 2c
+ State linearized :
+ 97 df c7 49 be 13 5f a2 6c e5 9b b4 27 50 d5 2c
+ Permutation Layer :
+ State round : 29
+ 97 df c7 49 be 13 5f a2 6c e5 9b b4 27 50 d5 2c
+ State permuted :
+ 6c 50 2c e5 9b b4 d5 27 97 c7 5f a2 13 49 be df
+
+One round EGFN round : 30
+ State :
+ Non Linear Layer :
+ State round : 30
+ 6c 50 2c e5 9b b4 d5 27 97 c7 5f a2 13 49 be df
+ Subtweakey :
+ a3 a6 d3 30 a2 c8 38 7f
+
+ Variables xored :
+ 34 61 8c 92 b1 81 86 a0
+ Variables sboxed :
+ 04 43 8d cf dc a4 32 95
+ State non linearized :
+ f9 62 88 39 54 39 96 23 97 c7 5f a2 13 49 be df
+ Linear Layer :
+ State round : 30
+ f9 62 88 39 54 39 96 23 97 c7 5f a2 13 49 be df
+ State linearized :
+ b0 f5 1f ae c3 ae 01 23 97 c7 5f a2 13 49 be df
+ Permutation Layer :
+ State round : 30
+ b0 f5 1f ae c3 ae 01 23 97 c7 5f a2 13 49 be df
+ State permuted :
+ 97 49 df c7 5f a2 be 13 b0 1f 01 23 ae ae c3 f5
+
+Last round EGFN :
+ State :
+ Non Linear Layer :
+ State round : 31
+ 97 49 df c7 5f a2 be 13 b0 1f 01 23 ae ae c3 f5
+ Subtweakey :
+ ac a6 f2 f1 39 5e e3 e6
+
+ Variables xored :
+ 1c b9 f3 d2 97 f0 20 13
+ Variables sboxed :
+ da 53 41 c9 10 bc 21 06
+ State non linearized :
+ 91 68 63 d7 96 e3 ed c9 b0 1f 01 23 ae ae c3 f5
+ Linear Layer :
+ State round : 31
+ 91 68 63 d7 96 e3 ed c9 b0 1f 01 23 ae ae c3 f5
+ State linearized :
+ df d8 d3 67 26 53 5d c9 b0 1f 01 23 ae ae c3 f5
+
+Ciphertext :
+ df d8 d3 67 26 53 5d c9 b0 1f 01 23 ae ae c3 f5