Created
November 15, 2012 07:55
-
-
Save titouanc/4077291 to your computer and use it in GitHub Desktop.
Evolution de la matrice S lors de aes_encode - ULB: INFO-F-101::3 (2012-2013)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Etat de la matrice S | |
#Avant encodage | |
N0 = [[76, 79, 82, 69, 77, 35, 73, 80, 83, 85, 77, 35, 68, 79, 76, 79, 82, 35, 83, 73], [84, 35, 65, 77, 69, 84, 44, 35, 67, 79, 78, 83, 69, 67, 84, 69, 84, 65, 85, 82], [35, 65, 68, 73, 80, 73, 83, 73, 67, 73, 78, 71, 35, 69, 76, 73, 84, 44, 35, 83], [69, 68, 35, 68, 79, 35, 69, 73, 85, 83, 77, 79, 68, 35, 84, 69, 77, 80, 79, 82], [35, 73, 78, 67, 73, 68, 73, 68, 85, 78, 84, 35, 85, 84, 35, 76, 65, 66, 79, 82], [69, 35, 69, 84, 35, 68, 79, 76, 79, 82, 69, 35, 77, 65, 71, 78, 65, 35, 65, 76], [73, 81, 85, 65, 46, 35, 85, 84, 35, 69, 78, 73, 77, 35, 65, 68, 35, 77, 73, 78], [73, 77, 35, 86, 69, 78, 73, 65, 77, 44, 35, 81, 85, 73, 83, 35, 78, 79, 83, 84], [82, 85, 68, 35, 69, 88, 69, 82, 67, 73, 84, 65, 84, 73, 79, 78, 35, 85, 76, 76], [65, 77, 67, 79, 35, 76, 65, 66, 79, 82, 73, 83, 35, 78, 73, 83, 73, 35, 85, 84], [35, 65, 76, 73, 81, 85, 73, 80, 35, 69, 88, 35, 69, 65, 35, 67, 79, 77, 77, 79], [68, 79, 35, 67, 79, 78, 83, 69, 81, 85, 65, 84, 46, 35, 68, 85, 73, 83, 35, 65], [85, 84, 69, 35, 73, 82, 85, 82, 69, 35, 68, 79, 76, 79, 82, 35, 73, 78, 35, 82], [69, 80, 82, 69, 72, 69, 78, 68, 69, 82, 73, 84, 35, 73, 78, 35, 86, 79, 76, 85], [80, 84, 65, 84, 69, 35, 86, 69, 76, 73, 84, 35, 69, 83, 83, 69, 35, 67, 73, 76], [76, 85, 77, 35, 68, 79, 76, 79, 82, 69, 35, 69, 85, 35, 70, 85, 71, 73, 65, 84], [35, 78, 85, 76, 76, 65, 35, 80, 65, 82, 73, 65, 84, 85, 82, 46, 35, 69, 88, 67], [69, 80, 84, 69, 85, 82, 35, 83, 73, 78, 84, 35, 79, 67, 67, 65, 69, 67, 65, 84], [35, 67, 85, 80, 73, 68, 65, 84, 65, 84, 35, 78, 79, 78, 35, 80, 82, 79, 73, 68], [69, 78, 84, 44, 35, 83, 85, 78, 84, 35, 73, 78, 35, 67, 85, 76, 80, 65, 65, 65]] | |
#Après une passe | |
N1 = [[26, 1, 92, 42, 84, 81, 76, 22, 41, 63, 95, 73, 12, 99, 19, 9, 83, 73, 23, 58], [66, 43, 72, 35, 26, 84, 70, 60, 12, 17, 30, 53, 50, 31, 58, 22, 36, 64, 82, 29], [28, 67, 11, 58, 21, 64, 75, 69, 34, 99, 65, 37, 25, 67, 44, 0, 71, 41, 64, 42], [35, 10, 76, 43, 68, 81, 41, 71, 98, 18, 66, 22, 43, 88, 13, 96, 89, 41, 20, 64], [57, 25, 64, 19, 79, 15, 36, 76, 68, 26, 85, 14, 40, 41, 11, 96, 78, 59, 27, 65], [22, 95, 10, 8, 84, 52, 81, 85, 44, 3, 30, 50, 63, 47, 24, 58, 73, 56, 32, 65], [79, 35, 76, 55, 30, 67, 88, 78, 51, 31, 63, 81, 60, 25, 76, 82, 63, 45, 26, 61], [38, 82, 96, 77, 71, 82, 67, 26, 78, 20, 5, 35, 28, 51, 77, 80, 47, 42, 17, 59], [57, 67, 26, 39, 32, 76, 93, 21, 80, 78, 7, 11, 2, 69, 32, 85, 53, 43, 41, 93], [97, 62, 30, 75, 31, 51, 23, 75, 78, 83, 40, 51, 91, 71, 1, 74, 11, 52, 48, 15], [48, 63, 43, 50, 68, 68, 4, 90, 84, 99, 79, 38, 25, 53, 88, 70, 60, 99, 62, 42], [41, 34, 84, 24, 72, 68, 41, 75, 57, 27, 7, 85, 69, 7, 36, 30, 34, 69, 70, 54], [24, 16, 94, 65, 69, 24, 78, 87, 73, 25, 50, 63, 54, 92, 67, 85, 50, 75, 18, 12], [64, 14, 69, 53, 99, 16, 76, 40, 17, 83, 35, 16, 55, 16, 24, 53, 97, 55, 40, 68], [38, 40, 67, 66, 53, 9, 3, 46, 59, 43, 35, 83, 58, 54, 22, 73, 28, 83, 37, 33], [86, 89, 52, 42, 23, 18, 65, 93, 69, 28, 95, 8, 93, 1, 36, 84, 42, 83, 65, 61], [65, 35, 40, 75, 71, 25, 78, 23, 16, 45, 85, 18, 46, 99, 59, 36, 24, 65, 95, 19], [51, 48, 30, 53, 19, 38, 58, 63, 96, 80, 43, 76, 22, 42, 81, 9, 53, 56, 52, 41], [72, 10, 67, 71, 63, 20, 59, 13, 49, 40, 45, 38, 75, 34, 13, 26, 82, 7, 86, 94], [53, 34, 34, 22, 99, 80, 27, 69, 32, 41, 83, 67, 20, 82, 55, 81, 19, 2, 45, 49]] | |
#etc... | |
N2 = [[55, 48, 58, 96, 34, 88, 28, 81, 71, 65, 31, 63, 6, 28, 25, 84, 23, 63, 95, 33], [89, 12, 62, 33, 26, 48, 94, 14, 36, 72, 55, 73, 2, 36, 82, 71, 8, 80, 84, 31], [65, 42, 41, 15, 62, 47, 8, 38, 56, 66, 5, 53, 3, 83, 12, 67, 18, 11, 34, 56], [9, 29, 83, 57, 6, 30, 2, 23, 65, 92, 38, 40, 64, 99, 62, 97, 19, 68, 6, 6], [97, 39, 83, 12, 27, 33, 77, 78, 80, 53, 71, 66, 18, 37, 18, 54, 69, 9, 21, 24], [77, 72, 69, 98, 43, 87, 74, 78, 83, 42, 42, 65, 88, 24, 57, 82, 19, 18, 6, 25], [50, 28, 21, 23, 80, 84, 2, 18, 18, 99, 66, 83, 41, 52, 16, 75, 4, 69, 79, 50], [34, 25, 7, 43, 64, 51, 22, 79, 16, 81, 2, 32, 26, 72, 84, 74, 78, 97, 81, 58], [6, 30, 5, 50, 53, 59, 15, 69, 62, 0, 52, 43, 76, 57, 54, 1, 32, 13, 42, 44], [37, 85, 18, 60, 6, 38, 62, 71, 82, 38, 43, 68, 96, 90, 69, 15, 14, 6, 84, 38], [6, 74, 10, 57, 40, 63, 98, 39, 89, 96, 35, 66, 6, 56, 30, 18, 58, 25, 22, 28], [82, 52, 23, 84, 79, 0, 57, 59, 15, 65, 99, 45, 47, 21, 32, 60, 59, 53, 6, 18], [15, 69, 66, 66, 72, 69, 96, 13, 39, 16, 3, 38, 37, 42, 19, 0, 67, 15, 62, 85], [25, 28, 51, 66, 68, 87, 24, 14, 81, 39, 44, 31, 33, 5, 88, 34, 37, 65, 31, 67], [78, 57, 37, 34, 58, 28, 76, 99, 73, 45, 44, 88, 55, 36, 38, 6, 68, 40, 29, 9], [45, 88, 19, 42, 43, 55, 85, 87, 96, 8, 83, 41, 37, 57, 33, 30, 3, 56, 42, 86], [32, 37, 14, 34, 46, 72, 90, 79, 2, 10, 38, 9, 22, 94, 70, 79, 19, 23, 36, 73], [87, 77, 57, 25, 37, 86, 67, 10, 90, 45, 89, 80, 7, 5, 23, 76, 91, 74, 82, 50], [61, 87, 11, 17, 51, 10, 72, 95, 32, 58, 6, 91, 87, 92, 81, 95, 60, 40, 86, 3], [14, 43, 3, 84, 76, 39, 8, 5, 52, 33, 70, 34, 56, 13, 83, 79, 84, 12, 51, 86]] | |
N3 = [[83, 27, 40, 63, 96, 53, 56, 91, 12, 37, 26, 76, 32, 39, 17, 39, 95, 76, 12, 29], [9, 83, 23, 33, 22, 90, 72, 80, 26, 63, 63, 61, 70, 88, 13, 96, 99, 23, 6, 90], [66, 40, 88, 82, 98, 85, 11, 41, 47, 53, 41, 21, 26, 66, 2, 66, 93, 9, 39, 94], [77, 49, 84, 51, 7, 55, 67, 72, 81, 16, 25, 77, 62, 26, 24, 35, 41, 73, 90, 21], [4, 37, 84, 23, 16, 44, 4, 38, 85, 61, 3, 5, 38, 84, 49, 46, 70, 85, 31, 19], [5, 61, 21, 35, 94, 6, 56, 47, 36, 66, 94, 23, 81, 41, 22, 95, 17, 56, 22, 88], [59, 93, 94, 41, 39, 34, 65, 82, 27, 80, 51, 44, 0, 65, 79, 45, 30, 99, 9, 21], [93, 23, 83, 58, 16, 52, 21, 29, 74, 20, 67, 85, 33, 83, 7, 19, 91, 16, 9, 66], [83, 83, 70, 87, 14, 77, 96, 45, 32, 55, 92, 89, 54, 76, 49, 78, 62, 29, 31, 49], [91, 95, 22, 69, 42, 34, 29, 87, 47, 42, 91, 71, 82, 0, 95, 43, 80, 92, 14, 2], [76, 25, 39, 0, 76, 97, 39, 20, 71, 39, 48, 59, 18, 54, 94, 72, 20, 77, 83, 63], [93, 93, 52, 27, 95, 36, 66, 44, 0, 95, 81, 14, 40, 7, 89, 64, 19, 25, 44, 38], [77, 13, 25, 71, 68, 34, 93, 71, 35, 38, 39, 25, 8, 48, 60, 46, 93, 26, 45, 93], [40, 33, 91, 69, 44, 15, 64, 7, 49, 11, 24, 21, 14, 30, 77, 87, 96, 85, 21, 29], [92, 36, 16, 90, 82, 72, 18, 77, 79, 5, 27, 53, 21, 40, 70, 95, 88, 55, 63, 85], [93, 37, 87, 94, 42, 88, 36, 31, 96, 2, 64, 67, 95, 78, 97, 41, 56, 77, 56, 38], [13, 91, 77, 76, 23, 67, 79, 3, 29, 14, 49, 10, 52, 17, 80, 66, 61, 90, 62, 94], [58, 90, 63, 12, 91, 69, 25, 57, 58, 69, 21, 50, 81, 3, 19, 18, 30, 96, 19, 53], [61, 37, 47, 14, 48, 36, 14, 99, 18, 26, 22, 43, 44, 66, 15, 56, 89, 15, 93, 77], [57, 63, 4, 38, 39, 22, 86, 2, 45, 85, 44, 61, 89, 7, 44, 37, 7, 24, 13, 19]] | |
Nr = [[41, 8, 88, 72, 68, 63, 11, 69, 27, 57, 56, 15, 15, 85, 31, 95, 12, 15, 9, 87], [23, 97, 23, 59, 30, 8, 8, 42, 85, 67, 53, 64, 33, 49, 79, 21, 90, 32, 29, 74], [51, 94, 23, 69, 50, 61, 0, 61, 68, 39, 36, 26, 64, 39, 58, 85, 87, 10, 26, 80], [31, 19, 75, 59, 22, 87, 35, 1, 78, 84, 37, 29, 70, 65, 65, 30, 40, 78, 7, 24], [18, 96, 62, 81, 79, 42, 52, 42, 78, 26, 21, 27, 49, 80, 22, 27, 66, 64, 34, 5], [42, 90, 82, 87, 29, 5, 10, 82, 56, 72, 23, 29, 88, 69, 54, 51, 53, 51, 72, 91], [53, 92, 13, 20, 22, 97, 84, 53, 6, 94, 71, 30, 75, 40, 44, 49, 88, 57, 87, 83], [82, 68, 7, 66, 65, 42, 34, 8, 26, 52, 26, 83, 30, 35, 96, 37, 33, 20, 68, 37], [20, 76, 49, 85, 5, 28, 99, 21, 95, 96, 6, 5, 42, 25, 67, 17, 82, 81, 62, 88], [7, 57, 1, 92, 84, 7, 89, 23, 61, 84, 61, 61, 27, 79, 44, 1, 91, 96, 18, 99], [32, 21, 88, 8, 94, 23, 5, 90, 31, 72, 21, 3, 99, 69, 23, 61, 86, 92, 90, 85], [83, 92, 23, 96, 18, 26, 24, 95, 93, 52, 51, 89, 17, 23, 92, 35, 81, 68, 15, 86], [16, 42, 1, 20, 53, 42, 90, 44, 82, 43, 17, 91, 13, 97, 40, 96, 77, 86, 85, 22], [82, 71, 1, 68, 70, 42, 94, 80, 40, 51, 35, 92, 45, 10, 14, 16, 66, 32, 48, 70], [65, 13, 39, 76, 66, 68, 48, 95, 35, 47, 79, 27, 97, 91, 10, 49, 5, 65, 32, 89], [72, 86, 72, 92, 74, 50, 59, 15, 95, 6, 37, 75, 4, 78, 44, 31, 58, 28, 18, 69], [45, 26, 83, 12, 49, 57, 87, 23, 3, 59, 15, 56, 90, 84, 5, 96, 68, 18, 16, 26], [56, 21, 52, 45, 45, 81, 28, 47, 52, 20, 77, 51, 42, 50, 74, 86, 40, 15, 95, 76], [56, 71, 47, 77, 76, 84, 25, 73, 76, 39, 88, 49, 72, 4, 3, 35, 45, 94, 90, 27], [26, 52, 84, 50, 90, 96, 67, 47, 60, 93, 84, 97, 47, 3, 5, 0, 72, 3, 37, 52]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment