1 00:00:00,000 --> 00:00:06,840 Well, welcome, and we have today for you a very interesting talk about CBC. 2 00:00:07,340 --> 00:00:14,720 You know, I have this small research team at Fontbonne University where we study, 3 00:00:14,860 --> 00:00:18,100 and all of us came from, with the exception of Brandon. 4 00:00:18,140 --> 00:00:22,200 You'll see a list of the names of the people who work on this research team. 5 00:00:22,960 --> 00:00:28,740 And we work in areas that really are related to set theory and cryptography. 6 00:00:28,740 --> 00:00:34,900 So today with me, I'm Al, this is Patrick, and down there we have James, 7 00:00:35,640 --> 00:00:40,720 who will come up and smack me if I make wrong comments and Patrick doesn't catch it. 8 00:00:41,640 --> 00:00:46,740 We are at the Math and Computer Science Department at Fontbonne University, 9 00:00:47,060 --> 00:00:52,900 which is a beautiful little university in Central and one of the nicest neighborhoods in St. Louis, 10 00:00:53,540 --> 00:00:55,380 and about five miles from Ferguson. 11 00:00:56,960 --> 00:00:58,600 So that's where we are. 12 00:00:58,740 --> 00:01:00,740 We are where we come from. 13 00:01:01,160 --> 00:01:07,140 What we're going to talk about today is cipherblock chaining mode and chaining modes in general. 14 00:01:07,480 --> 00:01:13,460 Because what we have is we have crypto systems that are, you know, 15 00:01:13,540 --> 00:01:19,400 the problem with crypto systems is they don't do what they normally advertise what they're going to do. 16 00:01:19,840 --> 00:01:24,000 What they say they're going to do is they're going to take all those patterns out of crypto, 17 00:01:24,100 --> 00:01:26,160 and they're going to make them unrecognizable. 18 00:01:26,940 --> 00:01:28,720 And yet, they don't. 19 00:01:29,920 --> 00:01:31,660 The patterns still remain. 20 00:01:32,040 --> 00:01:33,280 How do we know that? 21 00:01:33,480 --> 00:01:40,580 Well, we cheated a little bit, and we looked at the average number of packets afterwards, 22 00:01:40,860 --> 00:01:44,240 or more correctly, blocks, that we had in a crypto system, 23 00:01:44,480 --> 00:01:48,740 and we wanted to see how many collisions or how many times they were repeated, 24 00:01:49,300 --> 00:01:50,940 because those are patterns, right? 25 00:01:51,780 --> 00:01:58,720 And when you plot, it turns out, the original message for number of collisions, 26 00:01:58,740 --> 00:02:04,960 and then you plot the encrypted message, you get exactly the same curve. 27 00:02:06,820 --> 00:02:07,800 That's terrible. 28 00:02:08,500 --> 00:02:12,080 Well, it turns out that a lot of people knew this all along, 29 00:02:12,260 --> 00:02:14,860 so what they did was they made something called a mode. 30 00:02:15,060 --> 00:02:18,620 The most popular mode nowadays is cipherblock chaining mode. 31 00:02:18,740 --> 00:02:23,720 It's normally used to disguise the patterns of AES. 32 00:02:25,040 --> 00:02:28,560 So what we have down here is we have an example. 33 00:02:28,740 --> 00:02:31,120 We have a couple of some patterns that you see. 34 00:02:31,620 --> 00:02:37,000 But we use a couple of properties, and you'll notice that these will come into play. 35 00:02:37,480 --> 00:02:42,340 In order to be useful on a computer, we have ciphers having to be one-to-one. 36 00:02:42,540 --> 00:02:46,480 That is, if you put in the same input, you better get the same output. 37 00:02:47,340 --> 00:02:53,860 Because if you try and decrypt it, you have a holy horror of a problem if it doesn't. 38 00:02:55,100 --> 00:02:56,540 You can't decrypt, right? 39 00:02:56,800 --> 00:02:58,100 So they've got to be one-to-one, 40 00:02:58,740 --> 00:03:00,160 and they've got to be on to the same set of characters. 41 00:03:00,780 --> 00:03:04,160 Well, this turns out to be real fun. 42 00:03:05,300 --> 00:03:11,000 Now, as Feistel says, all ciphers are ultimately substitution ciphers. 43 00:03:11,040 --> 00:03:11,980 You all knew that, right? 44 00:03:13,420 --> 00:03:17,160 Permutations are even substitution ciphers, if you do it right. 45 00:03:17,800 --> 00:03:22,480 Now, Feistel said this back in 1973, and people forget this. 46 00:03:24,400 --> 00:03:27,440 Their focus on things seems to be completely wrong. 47 00:03:28,740 --> 00:03:32,020 It's not that when you're encrypting, you're trying to hide it, 48 00:03:32,060 --> 00:03:35,160 but when you're decrypting, what is the goal of decryption? 49 00:03:36,640 --> 00:03:39,900 If you ask somebody who decrypts, nine times out of ten, you'll get, 50 00:03:40,400 --> 00:03:43,240 I need to get the key to that cipher, right? 51 00:03:44,040 --> 00:03:44,920 B.S. 52 00:03:45,960 --> 00:03:48,940 What you really want is the original message back. 53 00:03:49,980 --> 00:03:51,500 You don't give... 54 00:03:52,640 --> 00:03:54,320 Well, I can't say bad words. 55 00:03:54,340 --> 00:03:56,640 My wife will make me put money in the swear jar, right? 56 00:03:58,740 --> 00:03:59,180 It's true. 57 00:03:59,520 --> 00:04:01,820 You don't care what that key is. 58 00:04:01,860 --> 00:04:03,060 You want the message back. 59 00:04:03,480 --> 00:04:04,840 You really don't care. 60 00:04:05,140 --> 00:04:09,380 Well, we're going to make use of this substitution cipher property as well. 61 00:04:10,760 --> 00:04:15,080 Now, if we take a look at everything being a substitution cipher, 62 00:04:15,200 --> 00:04:20,260 we know that substitution ciphers do not hide the patterns. 63 00:04:20,620 --> 00:04:22,300 Everybody agrees with that, right? 64 00:04:23,140 --> 00:04:25,480 Numerous research, it doesn't hide the pattern. 65 00:04:25,740 --> 00:04:27,780 So, therefore, if all... 66 00:04:29,360 --> 00:04:34,180 Ciphers are ultimately substitution ciphers, there's patterns, okay? 67 00:04:34,380 --> 00:04:39,140 But what they want to do with these modes is find a way to hide those patterns 68 00:04:39,140 --> 00:04:42,120 and still preserve that one-to-one and on-to. 69 00:04:42,480 --> 00:04:45,520 And so the modes were created to hide those patterns. 70 00:04:45,700 --> 00:04:49,380 So we get something like this instead of the pattern that we saw before. 71 00:04:49,980 --> 00:04:52,040 It's supposed to be terribly random. 72 00:04:52,580 --> 00:04:54,960 Now, we have a problem with random, too, 73 00:04:55,640 --> 00:04:58,720 because people believe when you say that something is random, 74 00:04:58,740 --> 00:05:00,500 it never repeats, right? 75 00:05:01,600 --> 00:05:02,180 Wrong. 76 00:05:03,360 --> 00:05:06,500 If you do a simulation and you just pick random numbers, 77 00:05:06,780 --> 00:05:07,900 they will repeat. 78 00:05:08,260 --> 00:05:12,020 And they will repeat much more often than you expect. 79 00:05:13,360 --> 00:05:15,160 When we began this project, 80 00:05:15,930 --> 00:05:19,400 we had other professors take a look at our math and specialists, 81 00:05:20,210 --> 00:05:23,000 and they said, oh, yeah, this is random. 82 00:05:23,100 --> 00:05:26,700 You'll never get enough material that repeats. 83 00:05:27,100 --> 00:05:28,120 Were they right? 84 00:05:28,120 --> 00:05:31,440 Well, I'm not so sure they were right. 85 00:05:34,000 --> 00:05:37,660 So on this one, what we did, we basically took a mode 86 00:05:37,660 --> 00:05:40,640 which is trying to mask everything by hiding it behind something, 87 00:05:40,800 --> 00:05:42,700 and we basically turned it into an alphabet. 88 00:05:42,920 --> 00:05:43,760 A mode will... 89 00:05:46,280 --> 00:05:48,460 Basically, your mode will try to shift everything 90 00:05:48,460 --> 00:05:51,580 or substitute things in to make it so the message isn't as clear. 91 00:05:52,040 --> 00:05:55,060 But what we found once we actually put that alphabet in 92 00:05:55,060 --> 00:05:57,200 is that it still is just as clear. 93 00:06:00,920 --> 00:06:04,400 And it tries to change the frequency that those patterns may appear. 94 00:06:04,780 --> 00:06:06,140 It tries to hide everything. 95 00:06:06,760 --> 00:06:09,400 And so when we actually put everything in, 96 00:06:09,480 --> 00:06:12,880 the mappings appear that they aren't actually one-to-one, 97 00:06:13,000 --> 00:06:14,900 but when we actually went into everything, 98 00:06:15,060 --> 00:06:16,480 it turned out to be one-to-one. 99 00:06:20,000 --> 00:06:22,940 Now the next question should be, how do all these modes work? 100 00:06:23,640 --> 00:06:24,120 Okay. 101 00:06:24,880 --> 00:06:27,540 And that's a very important thing to know. 102 00:06:28,120 --> 00:06:33,420 Most of the time, modes use some sort of feed-forward or feed-back, 103 00:06:33,600 --> 00:06:37,420 where what you do is you take information from the message 104 00:06:37,420 --> 00:06:43,500 and you feed it in some form to the next block that you're going to encrypt, 105 00:06:43,540 --> 00:06:44,320 or backwards. 106 00:06:44,940 --> 00:06:45,540 Okay? 107 00:06:45,660 --> 00:06:49,140 This seems very logical because, well, 108 00:06:49,400 --> 00:06:51,480 you want to make it dependent on the message, 109 00:06:51,520 --> 00:06:53,580 so it changes for each message. 110 00:06:53,920 --> 00:06:57,540 But it turns out that we can use this 111 00:06:57,540 --> 00:06:58,100 as a way to make it more clear. 112 00:06:58,100 --> 00:07:00,740 As a constraint on what we're doing. 113 00:07:00,940 --> 00:07:05,380 Now we're all about constraints because regularity breeds 114 00:07:05,380 --> 00:07:08,440 a way to break things. 115 00:07:09,440 --> 00:07:13,120 Now, cipher block chaining looks as you see here 116 00:07:13,120 --> 00:07:15,060 on the diagram. 117 00:07:15,380 --> 00:07:18,320 I know it's real big so that you can see it just beautifully. 118 00:07:18,640 --> 00:07:19,760 Sorry about that. 119 00:07:19,820 --> 00:07:20,980 It's as big as it gets. 120 00:07:21,380 --> 00:07:21,980 Okay? 121 00:07:22,060 --> 00:07:24,220 In this case, what happens is, 122 00:07:24,400 --> 00:07:27,980 in the first byte, you get an initialization vector 123 00:07:27,980 --> 00:07:33,760 that's XORed with the plaintext and that provides what you're going to encrypt. 124 00:07:33,880 --> 00:07:38,000 You put it through an encryption and you get some ciphertext out. 125 00:07:38,280 --> 00:07:42,840 That ciphertext is then fed, like it is the initialization vector, 126 00:07:43,100 --> 00:07:44,420 into the next block. 127 00:07:45,880 --> 00:07:50,040 Once again, notice this is regular. 128 00:07:51,020 --> 00:07:55,100 Whenever you have a regularity or structure, you have redundancy. 129 00:07:55,540 --> 00:07:57,460 Whenever you have redundancy, 130 00:07:57,980 --> 00:08:00,920 you have something to attack and attack with. 131 00:08:01,180 --> 00:08:05,560 We focused on cipher block chaining mode because it is the most popular 132 00:08:05,560 --> 00:08:07,820 and is commonly used with AES. 133 00:08:09,040 --> 00:08:09,340 Now. 134 00:08:12,320 --> 00:08:15,840 So we used, Kirchhoff's principle is saying that 135 00:08:15,840 --> 00:08:20,320 you need to have a secret basically at the beginning 136 00:08:20,320 --> 00:08:22,220 that is basically interjected into it. 137 00:08:22,460 --> 00:08:26,380 In this case, it's the IV file, the initialization vector. 138 00:08:26,540 --> 00:08:27,960 You use that to create a secret. 139 00:08:27,960 --> 00:08:29,240 You use that to create your encryption in the first place. 140 00:08:29,400 --> 00:08:30,640 That is the start of it. 141 00:08:30,740 --> 00:08:32,160 It's what you're trying to mask with. 142 00:08:32,880 --> 00:08:37,200 And so, from there, it's often a randomly selected number. 143 00:08:38,040 --> 00:08:41,580 And basically, the percentage through the message and changes 144 00:08:41,580 --> 00:08:44,000 are basically based off of that initialization vector 145 00:08:44,460 --> 00:08:46,880 so that you can kind of form a pattern through there. 146 00:08:47,020 --> 00:08:49,340 And when you're going through, you realize that it doesn't change 147 00:08:49,340 --> 00:08:50,700 as much as they think it does. 148 00:08:52,340 --> 00:08:57,320 And it looks like you can't follow those sequences because you're putting, 149 00:08:57,320 --> 00:08:58,700 you're putting the encryption through a chain. 150 00:08:58,860 --> 00:09:01,500 You're encrypting it and then re-encrypting it and then re-encrypting it. 151 00:09:01,640 --> 00:09:04,400 It would seem that you shouldn't be able to follow that sequence, 152 00:09:05,070 --> 00:09:06,600 but it actually can be followed. 153 00:09:08,100 --> 00:09:12,620 We basically, the two secrets of CBC are going to be the key 154 00:09:12,990 --> 00:09:14,180 and the initialization vector. 155 00:09:14,300 --> 00:09:16,500 Those are the two things you would need to unencrypt the file. 156 00:09:17,700 --> 00:09:21,640 But when we looked at it, the IV basically, 157 00:09:21,820 --> 00:09:23,020 you don't actually need it. 158 00:09:23,200 --> 00:09:25,660 The IV is often not necessary to unencrypt. 159 00:09:25,720 --> 00:09:26,760 You really just need that key. 160 00:09:27,320 --> 00:09:31,020 The key is, of course, the key to get the file opened. 161 00:09:33,060 --> 00:09:36,200 And so it often provides confusion because everyone thinks 162 00:09:36,200 --> 00:09:38,960 you're going to need that key and the initialization vector to open it, 163 00:09:39,420 --> 00:09:40,540 but you really don't. 164 00:09:43,560 --> 00:09:47,120 So let's take a look again at the structure of CBC. 165 00:09:48,200 --> 00:09:52,940 Now, if you notice here where the initialization vector comes in. 166 00:09:54,800 --> 00:09:56,220 Now it's scary. 167 00:09:56,420 --> 00:09:57,300 People think, 168 00:09:57,320 --> 00:10:02,860 that the initialization vector in this mode is so secure that if you send the 169 00:10:02,860 --> 00:10:07,460 initialization vectors got no effect well we don't care whether it does or 170 00:10:07,460 --> 00:10:13,480 not because all we do is we chop off that first bite if necessary and what 171 00:10:13,480 --> 00:10:17,880 we've got is the same structure except we know essentially the initialization 172 00:10:17,880 --> 00:10:23,240 vector going into the next block so there's really the initialization vector 173 00:10:23,240 --> 00:10:30,900 turns out not to be a secret that we're very worried about okay now let's assume 174 00:10:30,900 --> 00:10:37,480 for a moment that what we get is we get those two points the C T 0 and C T 1 175 00:10:37,480 --> 00:10:42,540 that's the ciphertext right assume that they're identical well if they're 176 00:10:42,540 --> 00:10:47,040 identical then we can imply that the point X which we have marked up here 177 00:10:47,040 --> 00:10:52,980 must also have the same value not as the ciphertext but the point X is 178 00:10:52,980 --> 00:11:02,120 have to have the same value each point X make sense because if it didn't the 179 00:11:02,120 --> 00:11:10,820 cipher wouldn't be one to one and onto so it has to be this way the X has to be 180 00:11:10,820 --> 00:11:16,820 identical now that leaves us to have a relatively invariant point that means 181 00:11:16,820 --> 00:11:21,740 that throughout wherever you see a collision you can assume that those 182 00:11:21,740 --> 00:11:22,500 point X's 183 00:11:22,500 --> 00:11:24,320 have exactly the same value. 184 00:11:25,760 --> 00:11:27,880 It doesn't matter what chain. 185 00:11:28,000 --> 00:11:29,580 Whenever you see that, that's what you get. 186 00:11:29,740 --> 00:11:32,660 So we decided to attack that point 187 00:11:32,660 --> 00:11:34,400 rather than other points. 188 00:11:35,420 --> 00:11:37,760 And therein lies the fun with the math. 189 00:11:39,140 --> 00:11:39,660 Okay? 190 00:11:41,420 --> 00:11:44,400 It doesn't matter what that plain text is. 191 00:11:45,980 --> 00:11:47,800 We know the input to the encryption. 192 00:11:49,680 --> 00:11:51,720 So, at any point in the block, 193 00:11:51,720 --> 00:11:53,760 at point X, and you'll see a small diagram 194 00:11:53,760 --> 00:11:55,260 to remind you what it looks like, 195 00:11:55,880 --> 00:11:57,960 that X point is equal to the ciphertext 196 00:11:57,960 --> 00:12:01,700 of the preceding block XORed with the plain text. 197 00:12:02,300 --> 00:12:02,780 Right? 198 00:12:04,120 --> 00:12:04,740 Structure's there. 199 00:12:04,840 --> 00:12:05,540 You can see that. 200 00:12:05,600 --> 00:12:07,020 You can read that right from there. 201 00:12:08,400 --> 00:12:11,140 Well, that means that if CT sub I 202 00:12:11,140 --> 00:12:13,320 is equal to CT sub J, 203 00:12:16,340 --> 00:12:20,380 then CT sub I minus 1 XORed with the plain text of I 204 00:12:20,380 --> 00:12:21,700 is equal to CT sub I minus 1 XORed with the plain text of I 205 00:12:21,720 --> 00:12:27,000 CT of J minus 1 XORed with the plain text of J. 206 00:12:29,340 --> 00:12:29,840 Okay? 207 00:12:30,700 --> 00:12:32,440 This is a very important equation 208 00:12:33,100 --> 00:12:34,860 because now what we have 209 00:12:34,860 --> 00:12:36,880 is we have an equivalence relation 210 00:12:36,880 --> 00:12:38,320 between the two points. 211 00:12:39,480 --> 00:12:39,980 Okay? 212 00:12:41,740 --> 00:12:43,300 Now, with a little bit of math, 213 00:12:43,360 --> 00:12:46,380 when we do straight math work, 214 00:12:46,960 --> 00:12:50,500 we get the plain text of J XORed with the plain text of I 215 00:12:50,500 --> 00:12:51,700 is equal to CT sub I minus 1 XORed with the plain text of J. 216 00:12:51,700 --> 00:12:58,060 to the ciphertext of J minus 1 XORed with the ciphertext of I minus 1. 217 00:12:58,160 --> 00:13:03,180 If you look at that, we now have two knowns on one side of the equation. 218 00:13:04,240 --> 00:13:09,620 And we can form a set of the plaintexts which XORed together 219 00:13:10,360 --> 00:13:16,060 have that same offset as the ciphertexts XORed together. 220 00:13:18,640 --> 00:13:20,140 This is very strong. 221 00:13:21,920 --> 00:13:25,800 Because if we assume that there's randomness for each block, 222 00:13:25,900 --> 00:13:31,940 then this means that each character has a 50% chance of changing, right? 223 00:13:32,980 --> 00:13:34,740 So let's say you have an alphabet. 224 00:13:34,780 --> 00:13:39,560 Let's use an easy example of where we're using a one-byte block cipher, okay? 225 00:13:39,820 --> 00:13:41,220 Simple cipher like that. 226 00:13:41,360 --> 00:13:43,200 That means you've got 26 characters. 227 00:13:43,660 --> 00:13:49,240 That means that the probability is it's going to change pretty often, right? 228 00:13:49,680 --> 00:13:51,320 Redundancy is about 1 in 4. 229 00:13:52,560 --> 00:13:58,240 It turns out that when that happens, we should eliminate between a third and a half 230 00:13:58,240 --> 00:14:04,180 of all the possibilities for plaintext pairs each time we have a collision. 231 00:14:06,440 --> 00:14:11,940 So what we're looking at is we only need a few collisions. 232 00:14:13,720 --> 00:14:19,420 And we're talking about log base 2 of X, okay? 233 00:14:19,480 --> 00:14:21,680 So our alphabet, we're dropping. 234 00:14:21,700 --> 00:14:23,480 We're dropping about half every time. 235 00:14:26,700 --> 00:14:28,340 That's a pretty good set, isn't it? 236 00:14:29,060 --> 00:14:32,760 So we're eliminating all these possibilities for the plaintext. 237 00:14:33,380 --> 00:14:34,060 All right. 238 00:14:35,160 --> 00:14:38,720 So this says that we only need a few collisions, and that's important. 239 00:14:39,140 --> 00:14:44,760 Now, it's preferable that the blocks that we have collide don't have the same plaintext. 240 00:14:45,520 --> 00:14:49,840 If they do, okay, we'll take a little bit longer, okay? 241 00:14:50,280 --> 00:14:51,680 It's preferable, but it works. 242 00:14:53,300 --> 00:14:58,040 Now, the other thing that I need to note before we go further in here is 243 00:14:58,040 --> 00:15:01,600 that once you break a single one of the plaintext characters, 244 00:15:02,570 --> 00:15:07,580 you can then manipulate things with this equation, and you can get the plaintext 245 00:15:07,580 --> 00:15:11,020 for any other block that collides directly. 246 00:15:14,220 --> 00:15:16,400 Yeah, this is pretty cool stuff, isn't it? 247 00:15:16,960 --> 00:15:20,300 Yeah. And what does everybody always say when we do this? 248 00:15:20,860 --> 00:15:21,400 Why? 249 00:15:21,700 --> 00:15:23,720 Hasn't anybody seen this before? 250 00:15:25,780 --> 00:15:27,180 Our answer is, we don't know. 251 00:15:32,420 --> 00:15:34,340 We'll get there, okay? 252 00:15:34,720 --> 00:15:37,520 I appreciate that an AES block is pretty big. 253 00:15:39,900 --> 00:15:44,760 I and J are two different collisions somewhere in the message. 254 00:15:45,060 --> 00:15:47,140 There are different blocks inside the message. 255 00:15:49,320 --> 00:15:51,060 No. Don't even have to be. 256 00:15:51,700 --> 00:15:53,200 They don't even have to like each other. 257 00:15:56,480 --> 00:15:58,220 Sorry. I couldn't resist it. 258 00:15:58,460 --> 00:15:58,900 Yeah. 259 00:16:00,420 --> 00:16:04,560 But, and I do understand that the blocks are large, and we'll address that in a moment, okay? 260 00:16:06,140 --> 00:16:07,000 You betcha. 261 00:16:08,720 --> 00:16:10,620 Thank you. That's a-coming. 262 00:16:12,040 --> 00:16:19,440 But, notice that we know all of those quantities once we have a single block broken, right? 263 00:16:20,240 --> 00:16:21,680 But the interesting thing... 264 00:16:21,700 --> 00:16:26,680 The interesting thing is, and this is very interesting, notice what's missing. 265 00:16:27,890 --> 00:16:30,860 There isn't a single instance of the encryption. 266 00:16:33,130 --> 00:16:41,960 This means that this technique is pulling back the message from the randomization around the cipher. 267 00:16:43,350 --> 00:16:45,900 It does not include the encryption. 268 00:16:47,110 --> 00:16:51,600 Breaking AES is as easy or as hard. 269 00:16:51,700 --> 00:16:55,840 You might want to look at it as breaking a shift cipher of the same type. 270 00:16:56,620 --> 00:16:57,100 True? 271 00:16:59,000 --> 00:17:02,860 Nothing in here is dependent on that encryption. 272 00:17:06,900 --> 00:17:10,740 And so, how often does a collision happen? 273 00:17:10,940 --> 00:17:12,640 Well, with the birthday paradox. 274 00:17:13,260 --> 00:17:14,880 Wow, you didn't have to say that. 275 00:17:15,000 --> 00:17:16,220 You already knew that, didn't you? 276 00:17:17,960 --> 00:17:21,040 The birthday paradox predicts the presence of the collisions. 277 00:17:23,700 --> 00:17:27,620 Basically, the birthday paradox comes from the study of how often birthdays happen. 278 00:17:28,920 --> 00:17:35,080 And, essentially, if you want a 100% chance to have a repeated birthday, you'd have to have 356 people. 279 00:17:35,280 --> 00:17:36,900 And that's a guaranteed 100%. 280 00:17:36,900 --> 00:17:41,820 But when they looked at the math, the reality of it was you could actually go down to 23 people and have a- 281 00:17:42,100 --> 00:17:43,680 See that 23 come up again? 282 00:17:47,540 --> 00:17:51,360 And with 23 people, you have a 50% chance of a repetition of a birthday. 283 00:17:51,360 --> 00:17:56,120 So, the more information you have, the smaller the number. 284 00:17:56,540 --> 00:17:59,140 So, with 23 people, you have a 50% chance. 285 00:17:59,380 --> 00:18:00,940 With letters, you have 26. 286 00:18:02,000 --> 00:18:03,940 So, we have 26 characters in our alphabet. 287 00:18:04,320 --> 00:18:08,360 We only have to go 7 characters in to see a repetition at a 90% ratio. 288 00:18:09,140 --> 00:18:12,500 So, 7 characters gets us a 90% ratio of a repetition. 289 00:18:14,080 --> 00:18:14,860 That's nice. 290 00:18:16,440 --> 00:18:20,500 And so, that's assuming that letters and combinations of letters are purely random. 291 00:18:20,560 --> 00:18:21,260 And they're not. 292 00:18:21,360 --> 00:18:22,380 Languages aren't random. 293 00:18:22,500 --> 00:18:23,300 They follow a pattern. 294 00:18:23,460 --> 00:18:24,660 You have patterns of words. 295 00:18:24,860 --> 00:18:27,680 You have letters that follow a system. 296 00:18:27,880 --> 00:18:30,800 With English, you can't have a Q by itself. 297 00:18:31,020 --> 00:18:32,360 Q is usually followed by a U. 298 00:18:34,380 --> 00:18:38,780 And so, we used Monte Carlo simulations to kind of simulate this. 299 00:18:38,920 --> 00:18:44,080 We generated 2,000 files of randomly selected letters and combinations of letters. 300 00:18:44,480 --> 00:18:49,080 And we generated 12.8 million different character sets. 301 00:18:49,600 --> 00:18:51,340 And so, we did that for 2,000 files. 302 00:18:51,340 --> 00:18:52,660 And we got the files up to 10. 303 00:18:52,980 --> 00:18:54,160 And we got... 304 00:18:54,940 --> 00:18:57,500 We basically counted the number of collisions in these files. 305 00:18:57,740 --> 00:19:00,720 And this gave us an idea of what we should expect. 306 00:19:01,000 --> 00:19:03,020 It gave us our upper bound for the randomness. 307 00:19:03,600 --> 00:19:06,860 And so, that upper bound, I believe... 308 00:19:06,860 --> 00:19:08,580 Well, like I said, language isn't random. 309 00:19:08,700 --> 00:19:10,640 And the upper bound... 310 00:19:11,260 --> 00:19:11,740 It's... 311 00:19:12,200 --> 00:19:12,440 Nope. 312 00:19:12,540 --> 00:19:13,120 It's on the line. 313 00:19:14,280 --> 00:19:14,760 Yeah. 314 00:19:15,040 --> 00:19:15,520 . 315 00:19:19,060 --> 00:19:19,540 . 316 00:19:19,540 --> 00:19:20,440 . 317 00:19:20,440 --> 00:19:21,280 . 318 00:19:21,280 --> 00:19:21,320 . 319 00:19:21,540 --> 00:19:21,640 . 320 00:19:25,400 --> 00:19:25,500 . 321 00:19:33,700 --> 00:19:33,800 . 322 00:19:33,800 --> 00:19:33,820 . 323 00:19:33,820 --> 00:19:33,840 . 324 00:19:33,840 --> 00:19:33,860 . 325 00:19:33,860 --> 00:19:33,880 . 326 00:19:33,880 --> 00:19:33,900 . 327 00:19:33,900 --> 00:19:33,940 . 328 00:19:39,260 --> 00:19:39,360 . 329 00:19:39,360 --> 00:19:39,420 . 330 00:19:40,040 --> 00:19:40,140 . 331 00:19:40,140 --> 00:19:40,160 . 332 00:19:40,160 --> 00:19:40,180 . 333 00:19:40,280 --> 00:19:40,380 . 334 00:19:44,960 --> 00:19:45,060 . 335 00:19:45,060 --> 00:19:49,720 random data and you're going to get non-random data out. And that's what happened. We put 336 00:19:49,720 --> 00:19:55,000 in the data and it would give us a non-random. The language characteristics of frequencies 337 00:19:55,000 --> 00:20:00,640 is letters. So we're looking at a letter by letter basis. And so with that we're seeing 338 00:20:00,640 --> 00:20:04,900 the frequency of how many letters pop up at a given time. And so with letters we have 339 00:20:04,900 --> 00:20:08,980 an increased chance because it's a smaller word set. We have 26 different letters instead 340 00:20:08,980 --> 00:20:13,540 of 3,000 different words. So we're looking at a smaller space and it allows us to get 341 00:20:13,540 --> 00:20:18,400 more collisions. And the more collisions we get, the more likely we're going to break 342 00:20:18,400 --> 00:20:25,960 that cipher. And this is just an example. We used a 5 byte block. The orange line is 343 00:20:25,960 --> 00:20:30,220 what the birthday paradox predicts. The blue line is what we actually got out of our files. 344 00:20:30,560 --> 00:20:35,440 So we actually saw a larger increase than what the birthday paradox said in their own. 345 00:20:36,180 --> 00:20:43,520 So with a 5 byte block we saw a significantly, significant increase in the space. And so 346 00:20:43,520 --> 00:20:49,960 we're going to get a higher chance for us to get collisions. And it's similar to other 347 00:20:49,960 --> 00:20:55,520 block sizes. We could go up to a 10 byte block and we should see the same initialization 348 00:20:55,520 --> 00:20:57,080 of that plonk going up. 349 00:20:57,840 --> 00:20:58,340 Yeah. 350 00:21:00,560 --> 00:21:01,060 . 351 00:21:09,620 --> 00:21:13,240 You have potentially more patterns. But your plain text is reduced. 352 00:21:13,520 --> 00:21:19,380 because when you're inside language, only certain combinations of the language are allowed. 353 00:21:20,820 --> 00:21:24,880 So what you have is you think of it as growing exponentially, 354 00:21:25,940 --> 00:21:28,020 but by the time you hit a block of six, 355 00:21:28,340 --> 00:21:36,120 it turns out that only .003% of all the possible combinations of letters or characters 356 00:21:36,120 --> 00:21:39,200 are valid in English language, for example. 357 00:21:39,620 --> 00:21:43,180 So you think it grows much larger, but it doesn't. 358 00:21:47,480 --> 00:21:54,080 In plain text, in the plain text, the blocks must be valid for the alphabet in which they are used. 359 00:22:00,580 --> 00:22:01,720 It doesn't matter. 360 00:22:01,880 --> 00:22:10,040 In the work of Shannon, Shannon took out basically the spaces 361 00:22:10,040 --> 00:22:12,740 and smashed it all together to make M-grams. 362 00:22:13,520 --> 00:22:20,020 And we study M-grams as opposed to English language combinations for words and other things. 363 00:22:20,080 --> 00:22:21,720 So we're actually studying M-grams. 364 00:22:21,840 --> 00:22:25,680 Therefore, the alignment is not necessarily important for us. 365 00:22:26,180 --> 00:22:26,700 Okay? 366 00:22:27,480 --> 00:22:30,700 So the patterns, it turns out, hold over. 367 00:22:30,760 --> 00:22:33,160 We call these things sort of meta-characters for us. 368 00:22:33,220 --> 00:22:38,140 We treat them as if they are letters or symbols in a new language 369 00:22:38,140 --> 00:22:42,160 that is built on the base language with letters as wide as the block. 370 00:22:43,520 --> 00:22:45,540 And it turns out that that's valid, and it does work. 371 00:22:46,580 --> 00:22:46,980 Okay? 372 00:22:47,740 --> 00:22:50,240 So if you look at the number of collisions, 373 00:22:50,340 --> 00:22:53,020 you'll see the number of collisions jumps precipitously. 374 00:22:53,380 --> 00:22:55,080 And what we need is the collisions. 375 00:22:55,200 --> 00:22:59,760 It was very interesting that when we took this to other mathematicians to look at, 376 00:22:59,820 --> 00:23:04,100 they said, oh, your math is right, but it'll never work. 377 00:23:06,620 --> 00:23:09,320 Yes, they believed in the randomness. 378 00:23:09,360 --> 00:23:09,920 They did indeed. 379 00:23:10,600 --> 00:23:11,000 Okay. 380 00:23:11,360 --> 00:23:13,260 So we're going to classify science. 381 00:23:13,260 --> 00:23:16,100 I have ciphers a little bit differently for the purpose of this talk. 382 00:23:16,540 --> 00:23:17,060 Okay? 383 00:23:17,200 --> 00:23:19,800 We're going to have one of two types. 384 00:23:20,040 --> 00:23:24,180 The linear, for example, XOR, AFINE, permutation cipher. 385 00:23:24,320 --> 00:23:28,940 And I know it's not generally, you don't generally throw permutation in there. 386 00:23:29,100 --> 00:23:34,680 But if you use this meta-character assumption where everything maps into the same meta-character, 387 00:23:35,480 --> 00:23:36,380 it works. 388 00:23:36,900 --> 00:23:37,420 Okay? 389 00:23:37,740 --> 00:23:42,920 We're also going to use nonlinear, like the substitution, the AES, DES, triple DES, 390 00:23:43,260 --> 00:23:43,880 okay? 391 00:23:44,100 --> 00:23:46,280 So those are nonlinear type ciphers. 392 00:23:46,500 --> 00:23:49,680 Now, the difference is for a linear cipher, 393 00:23:49,820 --> 00:23:54,300 for each of the characteristic letters or characters that are in there, 394 00:23:54,420 --> 00:24:01,760 we can actually treat them as if they are encrypted in place one character at a time. 395 00:24:02,140 --> 00:24:02,700 Okay? 396 00:24:02,780 --> 00:24:07,860 So we can basically say that there's a concatenation for the block 397 00:24:07,860 --> 00:24:10,740 if you encrypt each character separately. 398 00:24:10,960 --> 00:24:12,920 Think of an XOR in that direction. 399 00:24:13,000 --> 00:24:13,140 Okay? 400 00:24:13,140 --> 00:24:13,240 Okay. 401 00:24:13,260 --> 00:24:17,120 I see the, I see the, I'm not sure I want to do it that way. 402 00:24:17,360 --> 00:24:21,480 But, yeah, think of it as being aligned along those character boundaries. 403 00:24:22,060 --> 00:24:22,620 Okay? 404 00:24:23,100 --> 00:24:32,240 Now, nonlinear ciphers, they don't necessarily, I mean, you can't say it's going to be a combination 405 00:24:32,240 --> 00:24:34,720 of the concatenation of each of those characters. 406 00:24:35,080 --> 00:24:40,080 They're done one block at a time, like AES and DES, which throw things around. 407 00:24:40,340 --> 00:24:42,400 You can't separate those characters out. 408 00:24:44,800 --> 00:24:48,080 Well, basically, it all shows this property. 409 00:24:48,840 --> 00:24:50,740 So, how do we begin with this? 410 00:24:51,200 --> 00:24:52,540 I think this one's yours. 411 00:24:53,260 --> 00:24:56,360 So, we began with nonlinear ciphers. 412 00:24:56,400 --> 00:24:59,040 So, we began with the permutation XORs. 413 00:25:00,220 --> 00:25:03,080 And, yeah, oh, those are nonlinear. 414 00:25:03,200 --> 00:25:04,200 Nonlinear is the AES. 415 00:25:05,040 --> 00:25:12,140 So, for those, we took Project Gutenberg, which is, they're basically free books that have been on the Internet for a long time. 416 00:25:12,480 --> 00:25:12,920 Okay. 417 00:25:12,920 --> 00:25:13,240 Okay. 418 00:25:13,260 --> 00:25:13,940 So, we cleaned them. 419 00:25:13,980 --> 00:25:15,100 We got rid of all the spaces. 420 00:25:15,600 --> 00:25:17,820 We got rid of all the punctuation and all that. 421 00:25:17,900 --> 00:25:18,860 So, it was just characters. 422 00:25:19,500 --> 00:25:21,900 And we encrypted it using a random key. 423 00:25:22,040 --> 00:25:25,060 And we didn't really care what the random key was. 424 00:25:26,940 --> 00:25:29,020 And then we separated the message into blocks. 425 00:25:29,660 --> 00:25:32,460 So, we know what the block size is, and we looked for our collisions. 426 00:25:32,920 --> 00:25:41,180 We did an analysis, found our collisions, and then evaluated until a single input was basically identifying what our collisions were going to be. 427 00:25:41,760 --> 00:25:43,240 And we then calculated. 428 00:25:43,260 --> 00:25:44,560 And then we calculated the answer for all collisions. 429 00:25:44,700 --> 00:25:50,500 So, if you see a multitude of collisions on a certain character, well, that should be a letter that should more commonly appear in the English language. 430 00:25:50,900 --> 00:25:56,020 So, if it happens 100 times within a 200-character file, it's probably going to be one of our vowels. 431 00:25:57,480 --> 00:26:02,100 And we basically used language statistics to basically determine what each letter is going to be. 432 00:26:02,160 --> 00:26:09,260 The letters that don't happen very often, Z, X, Y, Q, those are going to be the ones that appear a lot less inside of that block. 433 00:26:09,580 --> 00:26:13,060 And so, those statistics allow us to assume what the letters may be. 434 00:26:13,260 --> 00:26:15,800 And then we check by checking the legal M-grams. 435 00:26:15,900 --> 00:26:19,320 And then, basically, we continue until we don't have any more findings. 436 00:26:22,740 --> 00:26:29,320 Now, let's talk about the characteristics a little bit here that are important to us in this attack. 437 00:26:30,190 --> 00:26:41,540 For a nonlinear cipher, they're different from the linear cipher in that each of the letters can't be considered separately. 438 00:26:41,880 --> 00:26:43,240 And that means... 439 00:26:43,260 --> 00:26:47,280 In a linear cipher, we have lots of potential collisions. 440 00:26:47,940 --> 00:26:55,240 And it turns out that when we look at this, we don't have to look at the frequency of the entire block. 441 00:26:55,500 --> 00:26:59,800 We can look at the frequency of the single character inside the block. 442 00:27:02,460 --> 00:27:04,520 It doesn't matter how it's put together. 443 00:27:04,580 --> 00:27:05,740 We can do it that way. 444 00:27:05,880 --> 00:27:12,520 And so, that reduces the space that we need to rip apart to get the solution. 445 00:27:13,260 --> 00:27:16,060 Down to just the size of the initial base alphabet. 446 00:27:16,950 --> 00:27:21,020 And not the alphabet of the metacharacter. 447 00:27:22,280 --> 00:27:29,300 So, what this means is, if you get something that is linear, you get tons more collisions. 448 00:27:30,650 --> 00:27:32,100 And you get to... 449 00:27:32,100 --> 00:27:35,360 The success rate goes up like you wouldn't believe. 450 00:27:35,860 --> 00:27:36,520 Okay? 451 00:27:37,090 --> 00:27:40,980 And that makes linear ciphers easier to break. 452 00:27:41,280 --> 00:27:43,240 Now, the difference is... 453 00:27:43,260 --> 00:27:47,180 For all intents and purposes, that's about the only difference. 454 00:27:47,260 --> 00:27:51,440 We get a lot more collisions, and we can use the same mathematics on each block. 455 00:27:52,160 --> 00:27:52,520 Okay? 456 00:27:52,640 --> 00:27:54,820 So, that framework stays together. 457 00:27:55,220 --> 00:27:55,760 Okay? 458 00:27:56,880 --> 00:28:01,460 So, it turns out that we can go through this. 459 00:28:01,620 --> 00:28:04,580 The collisions that we talked about come much more frequently. 460 00:28:04,800 --> 00:28:07,600 And they're much more easily put together. 461 00:28:07,900 --> 00:28:12,640 But it also means that we can break part of a block at a time. 462 00:28:12,640 --> 00:28:14,560 We don't have to break the entire block. 463 00:28:15,500 --> 00:28:18,840 And if we break that part of the block, we can use probability. 464 00:28:19,400 --> 00:28:24,400 Even though we may not get the entire mathematics of the break for the entire block, 465 00:28:24,620 --> 00:28:30,200 we can use probability and those m-grams that we know are forbidden to fill in the rest. 466 00:28:32,680 --> 00:28:39,280 And every time we take out a part of that set, the sample space becomes smaller and smaller. 467 00:28:41,180 --> 00:28:42,400 And what have we got? 468 00:28:43,020 --> 00:28:46,040 We've got more and more information to be able to use on that. 469 00:28:46,320 --> 00:28:49,120 And then language statistics can be brought into play. 470 00:28:49,440 --> 00:28:56,900 It turns out that if you break as little as 1.6% of the entire message, 471 00:28:58,240 --> 00:29:02,480 you can recover almost 100% of the original message. 472 00:29:04,220 --> 00:29:05,220 How do we know? 473 00:29:05,320 --> 00:29:06,140 We did it. 474 00:29:07,520 --> 00:29:09,640 I'm not talking just theory here. 475 00:29:09,940 --> 00:29:10,940 We did it. 476 00:29:12,940 --> 00:29:15,520 We showed it to our administration, and they said, 477 00:29:15,680 --> 00:29:17,320 huh, that's interesting. 478 00:29:17,580 --> 00:29:18,940 Is this good for something? 479 00:29:22,360 --> 00:29:24,320 Yeah, we thought it was good for something. 480 00:29:24,760 --> 00:29:26,360 Okay, so it gets in there. 481 00:29:26,460 --> 00:29:33,700 So this means that with a linear cipher, you can break each byte in the block separately. 482 00:29:35,180 --> 00:29:38,160 And it turns out to be a pretty darn effective break. 483 00:29:38,980 --> 00:29:42,240 So as long as there are blocks, I'm telling you, 484 00:29:42,240 --> 00:29:45,480 you've got collisions, and block size doesn't matter. 485 00:29:45,820 --> 00:29:52,800 All you need to do is have enough information to be able to generate these collisions. 486 00:29:53,620 --> 00:29:56,120 And the birthday paradox tells you how much you need. 487 00:29:56,880 --> 00:29:58,280 How big have we broken? 488 00:29:58,520 --> 00:30:05,240 Well, we tried to break a 128-bit key. 489 00:30:06,540 --> 00:30:09,640 It took us, what was it, 14 seconds? 490 00:30:10,280 --> 00:30:11,240 For a linear. 491 00:30:11,240 --> 00:30:12,460 Yeah, for a linear. 492 00:30:12,500 --> 00:30:13,820 It took us 14 seconds. 493 00:30:15,500 --> 00:30:17,180 We recovered the message. 494 00:30:20,200 --> 00:30:21,460 We don't care about the key. 495 00:30:22,180 --> 00:30:23,220 What does the key do? 496 00:30:24,840 --> 00:30:27,920 Yeah, yeah, well, we could go back and recover the key. 497 00:30:28,040 --> 00:30:28,340 We could. 498 00:30:28,880 --> 00:30:31,240 That would just be one more step beyond what we did. 499 00:30:31,680 --> 00:30:32,040 Okay? 500 00:30:32,500 --> 00:30:37,100 But the answer is we stopped at the message because we thought it was good enough to read the message. 501 00:30:38,580 --> 00:30:38,940 Yeah. 502 00:30:39,120 --> 00:30:41,220 Well, it's just, like I said, it's just one more step. 503 00:30:41,220 --> 00:30:44,780 Because if we know what the message is, we can generate the key as we go. 504 00:30:45,100 --> 00:30:45,520 Right? 505 00:30:50,060 --> 00:30:50,500 Yeah. 506 00:30:51,800 --> 00:30:52,880 Yeah, isn't that strange? 507 00:30:53,180 --> 00:30:56,840 Usually it's the key that you extrapolate to get the message back. 508 00:30:56,920 --> 00:30:57,780 We're doing it backwards. 509 00:30:59,080 --> 00:31:02,100 Yeah, well, everything we're doing here is kind of backwards, isn't it? 510 00:31:02,480 --> 00:31:03,580 But it works. 511 00:31:04,280 --> 00:31:10,620 And I'm talking about the piece of junk laptop that I have. 512 00:31:11,480 --> 00:31:12,680 I won't say from whom. 513 00:31:13,880 --> 00:31:14,880 That'll get me in trouble. 514 00:31:16,320 --> 00:31:19,700 But this laptop is several generations old. 515 00:31:19,820 --> 00:31:22,200 And we put it on there and we just watched it go. 516 00:31:22,360 --> 00:31:25,340 Now, you want to see the thing work? 517 00:31:26,020 --> 00:31:27,340 Yeah, I thought you might. 518 00:31:28,860 --> 00:31:30,220 So, strangely enough... 519 00:31:31,400 --> 00:31:32,380 We did the demo. 520 00:31:32,600 --> 00:31:34,000 We have a recording here. 521 00:31:35,280 --> 00:31:36,960 This is our non-linear demo. 522 00:31:37,700 --> 00:31:40,800 We input a file and we give it the block size. 523 00:31:41,220 --> 00:31:44,440 And then we give it... 524 00:31:44,440 --> 00:31:46,020 I know you can see it so well. 525 00:31:47,020 --> 00:31:51,460 So, what it is here, we have the encrypted file on top. 526 00:31:51,560 --> 00:31:53,620 And then right below it is our decrypted file. 527 00:31:53,980 --> 00:31:57,720 So, we ran it and then we recorded that running. 528 00:31:57,840 --> 00:32:03,100 And I display the encrypted file on top and the decrypted file so you can see what our output is. 529 00:32:03,820 --> 00:32:04,340 Okay. 530 00:32:05,980 --> 00:32:09,540 Now, the important thing to remember here is... 531 00:32:10,140 --> 00:32:11,000 All crypto... 532 00:32:11,000 --> 00:32:12,600 Crypto demos are very exciting. 533 00:32:14,040 --> 00:32:14,520 Right? 534 00:32:17,260 --> 00:32:17,940 Woo-hoo. 535 00:32:21,700 --> 00:32:23,040 Yeah, let it go. 536 00:32:25,560 --> 00:32:27,980 This is one of the problems we had. 537 00:32:28,040 --> 00:32:31,320 We showed this to our department and they all looked at it and said, 538 00:32:31,480 --> 00:32:33,560 it prints stuff across the screen. 539 00:32:34,980 --> 00:32:36,660 And we said, no, that's not the point. 540 00:32:37,740 --> 00:32:40,980 And they said, yeah, you print stuff across the screen. 541 00:32:40,980 --> 00:32:43,960 Never show crypto stuff to a mathematician. 542 00:32:45,060 --> 00:32:45,160 Right? 543 00:32:45,380 --> 00:32:45,980 Okay. 544 00:32:46,260 --> 00:32:48,660 So, it's actually running here. 545 00:32:48,800 --> 00:32:55,740 And the first thing it does is it goes through the file and it evaluates the collisions. 546 00:32:56,040 --> 00:32:58,280 And it puts them into a list of collisions. 547 00:32:58,580 --> 00:33:00,560 And it sorts those collisions out. 548 00:33:01,040 --> 00:33:09,920 And while it's sorting, it then starts applying the rules that we have for the XOR, the XORing. 549 00:33:10,020 --> 00:33:10,540 Okay. 550 00:33:10,540 --> 00:33:10,700 Okay. 551 00:33:10,800 --> 00:33:10,960 Okay. 552 00:33:12,020 --> 00:33:15,860 So, we have a group of letters that can be originally. 553 00:33:16,120 --> 00:33:18,960 And then for each collision, we have a new group of letters. 554 00:33:19,040 --> 00:33:19,920 We take the intersection. 555 00:33:20,820 --> 00:33:24,160 Because the answer must be in each of those. 556 00:33:24,260 --> 00:33:24,420 Right? 557 00:33:25,340 --> 00:33:28,920 And anything else that we can eliminate gets rid of. 558 00:33:29,720 --> 00:33:30,660 Simple set theory. 559 00:33:32,280 --> 00:33:34,520 Because I'm a simple set theorist. 560 00:33:34,900 --> 00:33:35,380 Okay. 561 00:33:35,840 --> 00:33:36,320 Okay. 562 00:33:36,460 --> 00:33:39,960 So, now it's actually pretty much done. 563 00:33:40,200 --> 00:33:40,960 It gives you... 564 00:33:40,980 --> 00:33:42,300 Because we didn't put a timer inside. 565 00:33:42,420 --> 00:33:43,820 So, it does tell you how long it took. 566 00:33:44,060 --> 00:33:45,280 So, on that one... 567 00:33:45,280 --> 00:33:47,100 So, this is actually the... 568 00:33:47,900 --> 00:33:48,940 This isn't our linear. 569 00:33:49,020 --> 00:33:49,760 This is our nonlinear. 570 00:33:49,900 --> 00:33:50,980 So, this one took the longest. 571 00:33:51,300 --> 00:33:57,660 The total time for this break was 21 minutes and 51 seconds on a laptop that is not built for breaking encryptions. 572 00:33:58,060 --> 00:34:00,860 It is your school laptop, basically. 573 00:34:01,180 --> 00:34:01,540 Yeah. 574 00:34:02,920 --> 00:34:04,700 It was easiest to make this. 575 00:34:04,740 --> 00:34:05,900 This was a small block size. 576 00:34:06,040 --> 00:34:07,860 It was only a block size of three characters. 577 00:34:08,520 --> 00:34:10,240 But the fact of the matter is... 578 00:34:10,240 --> 00:34:12,340 If you can break a three-character block... 579 00:34:12,340 --> 00:34:17,240 And just to let you know, this encryption was wrapped in CBC. 580 00:34:18,600 --> 00:34:23,420 So, this is actually AES wrapped in CBC. 581 00:34:25,100 --> 00:34:29,480 If you can break a three, you can break a five, you can break a 20. 582 00:34:30,180 --> 00:34:30,740 Okay. 583 00:34:31,200 --> 00:34:37,320 But we didn't want you sitting here for the entire 21 minutes looking at it, printing dots. 584 00:34:38,320 --> 00:34:38,880 Okay. 585 00:34:38,920 --> 00:34:39,380 Okay. 586 00:34:39,380 --> 00:34:39,940 So... 587 00:34:40,240 --> 00:34:41,140 That's nonlinear. 588 00:34:41,340 --> 00:34:47,180 Now, in this case here, we have the XOR, which runs a little bit faster. 589 00:34:47,360 --> 00:34:49,080 This one's running in real time. 590 00:34:50,400 --> 00:34:53,920 It's evaluating the collisions. 591 00:34:54,780 --> 00:34:56,780 It's sorting through the collisions now. 592 00:34:58,540 --> 00:35:03,040 And you can come up later and we'll show it bigger so that you can see the actual letters. 593 00:35:03,400 --> 00:35:04,640 I mean, you know, sorry. 594 00:35:04,880 --> 00:35:08,560 Limited size screen. 595 00:35:08,720 --> 00:35:09,840 It's all we can do. 596 00:35:10,240 --> 00:35:11,140 But there it is. 597 00:35:11,180 --> 00:35:11,580 It's broken. 598 00:35:13,500 --> 00:35:15,040 Now, how big was that XOR? 599 00:35:15,240 --> 00:35:17,780 That XOR was 128 bits. 600 00:35:20,160 --> 00:35:20,640 Okay. 601 00:35:20,900 --> 00:35:23,220 I believe that one was 22 seconds. 602 00:35:24,080 --> 00:35:25,840 So, how long it took us to break that one? 603 00:35:26,640 --> 00:35:27,120 Okay. 604 00:35:28,360 --> 00:35:28,840 So... 605 00:35:29,380 --> 00:35:32,560 And then, the last one here is... 606 00:35:32,560 --> 00:35:40,120 We used a permutation cipher in which we permuted across 16 bytes. 607 00:35:41,480 --> 00:35:45,400 So, we are not keeping the information in the same byte necessarily. 608 00:35:46,220 --> 00:35:48,420 So, it's being spread all over that block. 609 00:35:49,160 --> 00:35:49,700 Okay. 610 00:35:50,460 --> 00:35:51,800 So, here it goes. 611 00:35:51,940 --> 00:35:52,960 It's exciting again. 612 00:35:53,280 --> 00:35:55,800 It's evaluated the collisions. 613 00:35:56,500 --> 00:35:58,900 It's generated the sets that it needs. 614 00:35:59,120 --> 00:36:02,300 It's sorting, sorting, sorting. 615 00:36:02,580 --> 00:36:05,580 Turns out sorting is the longest thing we do. 616 00:36:06,360 --> 00:36:07,380 Sorting takes a while. 617 00:36:07,700 --> 00:36:08,240 Yeah. 618 00:36:08,440 --> 00:36:09,780 It takes a lot of information to go through. 619 00:36:09,940 --> 00:36:10,220 Sorting takes a lot of time. 620 00:36:10,220 --> 00:36:21,240 okay and sorting sorting sorting is so fun this is why we write programs to do 621 00:36:21,240 --> 00:36:32,840 it the input file we kept the input file less than 100 K all right now it's done 622 00:36:34,760 --> 00:36:41,800 it's all done it's all pretty and yes we are willing to provide source code and other stuff 623 00:36:41,800 --> 00:36:51,620 so that you can look at it okay not afraid of having to see what's inside here it's a 624 00:36:51,620 --> 00:36:58,680 good piece of code okay come on no I don't want to restart you all right so our conclusions to 625 00:36:58,680 --> 00:37:02,620 this is CBC is definitely vulnerable to attack now 626 00:37:02,840 --> 00:37:05,160 It turns out that if you have a large block, 627 00:37:05,240 --> 00:37:09,620 you still need a fairly nice message length, right? 628 00:37:11,100 --> 00:37:19,120 Or what you need is multiple messages using the same encryption. 629 00:37:19,960 --> 00:37:25,960 It doesn't really matter what the initialization vector is. 630 00:37:26,020 --> 00:37:29,360 You just drop off the part that you don't need and throw it in. 631 00:37:30,220 --> 00:37:34,620 Okay? So you can generate big files to be able to do this. 632 00:37:35,080 --> 00:37:39,800 We've gone up to block sizes of 10, and then, I'm sorry, 633 00:37:40,700 --> 00:37:44,000 big data and little laptops take over. 634 00:37:44,980 --> 00:37:46,660 Our memory kind of went... 635 00:37:47,500 --> 00:37:51,540 So with more memory, we could do just about any size. 636 00:37:52,020 --> 00:37:55,720 So this addresses your large block size, right? 637 00:37:55,920 --> 00:37:58,740 We confess there are certain things that are good. 638 00:37:58,740 --> 00:38:02,520 If you keep the message small, CBC is still effective, 639 00:38:03,620 --> 00:38:07,320 but you've got to keep it below where the birthday paradox is going to take over. 640 00:38:08,000 --> 00:38:13,660 Remember, all you need is about 2%, 641 00:38:14,720 --> 00:38:16,500 and you can rip the rest of it apart. 642 00:38:16,820 --> 00:38:17,940 So it's definitely vulnerable. 643 00:38:18,700 --> 00:38:22,700 Never, ever, ever, ever, ever, not in this lifetime or the next, 644 00:38:22,800 --> 00:38:26,140 or in the infernal regions to which we will surely be assigned, 645 00:38:26,940 --> 00:38:28,720 ever use a linear cycle. 646 00:38:28,740 --> 00:38:29,180 We're concerned about our security. 647 00:38:29,180 --> 00:38:29,440 The blockchain can work with any kind of security within CBC. 648 00:38:30,040 --> 00:38:30,600 So, CBC is potentially a variety of security, 649 00:38:30,600 --> 00:38:33,340 because it breaks down the security. 650 00:38:33,560 --> 00:38:36,660 And instead of getting the security of a larger block size, 651 00:38:36,940 --> 00:38:39,420 you're reducing it to the security 652 00:38:39,420 --> 00:38:41,460 of a single character inside the block. 653 00:38:43,120 --> 00:38:52,440 and that is not good okay with stronger ciphers it can be effective but that's just exactly what 654 00:38:52,440 --> 00:39:02,000 I said even if we just have a couple of collisions it greatly reduces the key space that was part of 655 00:39:02,000 --> 00:39:05,860 what we did with the nonlinear is we had enough collisions that we could eliminate a portion of 656 00:39:05,860 --> 00:39:11,800 the key space when you eliminate a portion of the key space it severely it drastically reduces the 657 00:39:11,800 --> 00:39:17,100 time it takes to brute-force into it so when you have a smaller key space say originally you had a 658 00:39:17,740 --> 00:39:23,940 18-bit key and we reduce the key space by eight we only have to cut through half the data to get 659 00:39:23,940 --> 00:39:29,040 to the key and that's what we did we actually on that one we limited I believe it half the key 660 00:39:29,040 --> 00:39:34,540 space and then we brute-forced into it because we only had to get eight eight bits in it didn't 661 00:39:34,540 --> 00:39:35,160 take us very long 662 00:39:37,540 --> 00:39:43,160 and even a single block can give us a lot of data even if we only have one block we can get a lot of 663 00:39:43,160 --> 00:39:48,300 information from it because of those collisions and then once we get that information we can then 664 00:39:48,300 --> 00:39:54,400 go to the next block with that information and get more information from it bleeds over nicely 665 00:39:55,640 --> 00:40:00,340 and it's effective on all modes that feed forward and feedback so as long as we can 666 00:40:00,340 --> 00:40:03,720 get some kind of information back from it we can get into it 667 00:40:06,460 --> 00:40:12,020 it's amazing there are five modes that use feed forward and feedback and all of them use variations 668 00:40:12,020 --> 00:40:20,940 of the CBC structure that allow you to be able to adjust your subscripts and use the same technique 669 00:40:21,800 --> 00:40:31,640 now the eight modes that we have now three of them yes I'm definitely CS right okay three of them do 670 00:40:31,640 --> 00:40:35,320 not use feed forward or feed backwards we're not effective with those we know that 671 00:40:35,880 --> 00:40:38,060 But there are other methodologies that are. 672 00:40:38,240 --> 00:40:42,680 But the other five, we can break the other five the same way at the same time. 673 00:40:43,200 --> 00:40:49,480 Okay, so the big takeaway for this is the randomness generator that is CBC 674 00:40:49,480 --> 00:40:52,640 has too much information leaking through to it. 675 00:40:52,700 --> 00:40:55,540 And that information can be used to break the encryption. 676 00:40:56,280 --> 00:40:58,300 This is very easy to implement. 677 00:40:58,380 --> 00:41:02,580 The fact that we do it on a laptop should scare the holy snot out of you. 678 00:41:06,380 --> 00:41:13,480 I mean, we're talking this wonderful laptop given to me by the university. 679 00:41:15,900 --> 00:41:18,400 I won't tell you how many generations old it is. 680 00:41:19,100 --> 00:41:22,960 But it's breaking up to 10 pipe blocks. 681 00:41:23,760 --> 00:41:26,480 My gosh, it's a laptop. 682 00:41:27,880 --> 00:41:29,600 You want a real good computer? 683 00:41:29,880 --> 00:41:31,420 Imagine what you can do. 684 00:41:32,240 --> 00:41:35,100 And it's small enough to run very effectively. 685 00:41:35,260 --> 00:41:35,840 Okay? 686 00:41:35,860 --> 00:41:41,400 It turns out that the attack runs faster as the block size increases. 687 00:41:42,020 --> 00:41:42,540 Why? 688 00:41:43,640 --> 00:41:46,420 Believe it or not, because you have fewer things to sort. 689 00:41:46,640 --> 00:41:51,680 And the sorting algorithm seems to be the limiting item that we have here. 690 00:41:51,920 --> 00:41:54,820 And that either says that we need to get better sorting algorithms 691 00:41:54,820 --> 00:41:57,560 or smarter programmers with sorts. 692 00:41:58,720 --> 00:42:02,920 But the way that we're running now, this is indeed what we found. 693 00:42:04,460 --> 00:42:05,800 And so what... 694 00:42:05,800 --> 00:42:08,660 I mean, even if you use as big of a key as you want, 695 00:42:09,540 --> 00:42:12,380 if there's enough information there for us to get something out of it, 696 00:42:12,480 --> 00:42:13,360 we're going to get in. 697 00:42:13,600 --> 00:42:15,400 So as long as the block sizes are big enough, 698 00:42:15,500 --> 00:42:17,600 we're going to get information out and we'll be able to break in. 699 00:42:17,620 --> 00:42:19,000 It doesn't matter how long your key was. 700 00:42:22,020 --> 00:42:24,480 And we can then combine that attack... 701 00:42:24,480 --> 00:42:27,800 We can combine our attack with other attacks that attack different areas. 702 00:42:28,200 --> 00:42:29,900 And we can get even further into the message. 703 00:42:29,920 --> 00:42:32,080 Even if our attack didn't return as much information, 704 00:42:32,140 --> 00:42:35,640 we can use what we got out of it to eliminate portions for other attacks. 705 00:42:35,800 --> 00:42:38,260 So it has a smaller attack, basically, area. 706 00:42:41,480 --> 00:42:43,940 And polymorphic key progression, of course, is immune 707 00:42:43,940 --> 00:42:46,020 because it does change as you encrypt. 708 00:42:46,100 --> 00:42:47,700 So there's not much you can do there. 709 00:42:51,440 --> 00:42:54,800 Basically, what that means is that the collisions aren't valid 710 00:42:54,800 --> 00:42:57,080 because they come from a different key. 711 00:42:57,820 --> 00:43:01,580 So the way around this, of course, is to use polymorphism, 712 00:43:01,620 --> 00:43:05,240 which really upsets people who make block ciphers. 713 00:43:05,800 --> 00:43:08,200 Because they want you to use their block ciphers all the way through. 714 00:43:10,180 --> 00:43:12,660 But this attack has been very effective. 715 00:43:12,940 --> 00:43:15,420 Like I said, we have examples of it up here. 716 00:43:15,560 --> 00:43:19,420 We're willing to send source code to you if you're interested 717 00:43:19,420 --> 00:43:21,080 and you're not some sort of terrorist. 718 00:43:22,740 --> 00:43:26,180 But the fact of the matter is, this thing works. 719 00:43:26,720 --> 00:43:29,400 Now, this is our contact information. 720 00:43:29,880 --> 00:43:33,580 And we're willing, right now, to answer questions 721 00:43:34,380 --> 00:43:35,680 that are related. 722 00:43:35,800 --> 00:43:37,880 My anus is bleeding! 723 00:43:38,240 --> 00:43:39,860 My anus is bleeding! 724 00:43:43,200 --> 00:43:47,980 Well, I was going to say, it's probably true. 725 00:43:51,420 --> 00:43:52,680 Yeah, sorry. 726 00:43:53,100 --> 00:43:57,220 Have you been able to break any web traffic 727 00:43:57,220 --> 00:43:58,680 that's using 3DS CDC? 728 00:44:00,020 --> 00:44:02,920 We haven't specifically gone after that, 729 00:44:02,980 --> 00:44:05,700 but that's mostly a function of having, 730 00:44:05,700 --> 00:44:07,920 having small resources and a small team. 731 00:44:08,880 --> 00:44:09,020 Okay? 732 00:44:09,360 --> 00:44:14,520 But, you know, have we worked on DES and triple DES? 733 00:44:14,680 --> 00:44:16,680 We have broken DES and triple DES, 734 00:44:16,880 --> 00:44:18,680 but we haven't done it on the web. 735 00:44:20,520 --> 00:44:22,740 So how's that for a halfway? 736 00:44:22,960 --> 00:44:24,100 Yes, it should work. 737 00:44:25,000 --> 00:44:25,480 Yeah? 738 00:44:29,400 --> 00:44:31,460 Yeah, we had that problem, too. 739 00:44:31,540 --> 00:44:32,540 Let me tell you. 740 00:44:32,680 --> 00:44:32,960 Yeah. 741 00:44:32,960 --> 00:44:35,060 The VPN traffic would be more vulnerable. 742 00:44:41,260 --> 00:44:44,840 Yeah, it doesn't change, and that allows you to, 743 00:44:44,860 --> 00:44:48,260 to be able to make an effective message that's very long. 744 00:44:48,700 --> 00:44:50,720 So it should be very, very vulnerable. 745 00:44:51,560 --> 00:44:52,440 Okay, hang on. 746 00:44:52,520 --> 00:44:54,200 I'm coming towards the back of the room. 747 00:44:54,300 --> 00:44:54,980 I see you. 748 00:44:55,180 --> 00:44:55,760 All right. 749 00:45:02,880 --> 00:45:04,160 Yeah, we're planning to. 750 00:45:04,940 --> 00:45:07,220 We'd like the university to give us more resources 751 00:45:07,220 --> 00:45:08,220 so we can do it quicker. 752 00:45:09,460 --> 00:45:12,660 We really would, and we're actually increasing our team size 753 00:45:12,660 --> 00:45:14,980 and we're training them how to do this work. 754 00:45:15,160 --> 00:45:17,120 So we'll be getting a lot further along. 755 00:45:19,160 --> 00:45:23,240 We actually already have commitments for two 756 00:45:23,240 --> 00:45:24,900 to three journal papers based on this. 757 00:45:26,800 --> 00:45:28,520 So we're actually happy about that. 758 00:45:29,320 --> 00:45:33,940 I may have missed it, but the predictability of your using 759 00:45:33,940 --> 00:45:39,820 the English language, so is it going to matter quite a bit? 760 00:45:40,040 --> 00:45:42,020 Then did you have to use that predictability? 761 00:45:42,420 --> 00:45:43,820 So if you were going all numbers? 762 00:45:44,940 --> 00:45:49,920 Yeah, if you had all numbers, if you had all numbers, 763 00:45:50,000 --> 00:45:51,840 all you're doing is changing the alphabet. 764 00:45:53,520 --> 00:45:54,000 Right. 765 00:45:54,300 --> 00:45:54,500 Right? 766 00:45:54,620 --> 00:45:57,740 But you don't have the, like you said, 767 00:45:57,760 --> 00:45:59,600 you had the frequency of left, right? 768 00:45:59,620 --> 00:46:00,000 Right. 769 00:46:01,020 --> 00:46:02,740 Yeah, we cannot use. 770 00:46:03,440 --> 00:46:03,920 Right. 771 00:46:03,940 --> 00:46:05,640 We don't have frequency statistics on that, 772 00:46:06,240 --> 00:46:07,880 obviously because it doesn't work. 773 00:46:08,160 --> 00:46:11,320 But we would be able to, depending on the size 774 00:46:11,320 --> 00:46:15,760 of the message, we could bring back quite a bit of that message. 775 00:46:16,900 --> 00:46:18,600 Yeah, it's just a matter of getting enough 776 00:46:18,600 --> 00:46:19,840 to be able to have the collisions. 777 00:46:21,300 --> 00:46:25,380 Yeah. Yeah, this is alphabet agnostic. 778 00:46:26,280 --> 00:46:28,660 You just have to put the right alphabet in there. 779 00:46:29,140 --> 00:46:33,620 And the more information that you have, like statistics on the frequency 780 00:46:33,620 --> 00:46:35,640 of letters, the better off you are. 781 00:46:35,720 --> 00:46:36,880 They're an additional constraint. 782 00:46:37,960 --> 00:46:41,720 But it's not, it's not at all dependent on that frequency. 783 00:46:43,500 --> 00:46:45,920 Yeah, this is a pretty wicked break, isn't it? 784 00:46:46,060 --> 00:46:47,040 I'm shaking my head. 785 00:46:48,440 --> 00:46:51,420 I mean, it shocked the heck out of us when we saw it. 786 00:46:52,900 --> 00:46:55,300 So you mentioned the frequency that you lost 787 00:46:55,300 --> 00:46:56,320 with the other set of codes? 788 00:46:56,600 --> 00:46:57,040 Yes. 789 00:46:57,500 --> 00:46:59,340 Which one did you have that didn't work? 790 00:47:00,000 --> 00:47:00,440 Okay. 791 00:47:01,900 --> 00:47:03,600 Based on the fact that we prepared for that, we did. 792 00:47:03,600 --> 00:47:03,620 We had three modes. 793 00:47:03,620 --> 00:47:04,300 One was built for cyber, just for CBC. 794 00:47:04,840 --> 00:47:07,500 I can't name them all for you, but if you look at the cyber, 795 00:47:07,520 --> 00:47:12,800 at the cyber modes, pick up Schneier's book and take a look 796 00:47:12,800 --> 00:47:15,080 in there, anything that has a feed forward 797 00:47:15,080 --> 00:47:16,500 or feed backwards we can break. 798 00:47:18,180 --> 00:47:19,760 There's five modes that. 799 00:47:20,000 --> 00:47:20,480 . 800 00:47:22,660 --> 00:47:23,620 Yeah. Yeah. 801 00:47:23,960 --> 00:47:24,900 They're not . 802 00:47:25,640 --> 00:47:26,320 Excuse me? 803 00:47:26,540 --> 00:47:27,320 They're not . 804 00:47:27,840 --> 00:47:28,280 Yeah, no. 805 00:47:28,420 --> 00:47:29,440 It isn't built for that. 806 00:47:31,440 --> 00:47:32,200 Is it? 807 00:47:32,340 --> 00:47:32,780 . 808 00:47:32,780 --> 00:47:33,580 Oh, so. 809 00:47:33,580 --> 00:47:40,540 sorry. I'm so good with modes. I've been focusing on this for so long. I tell you, I know CBC 810 00:47:40,540 --> 00:47:48,720 inside out and backwards. My wife hates CBC because I whisper it to her in my sleep. I 811 00:47:48,720 --> 00:47:58,220 get in big trouble for that. You don't know my wife. She's scary. Yeah. Yeah, we would 812 00:47:58,220 --> 00:48:05,500 like to. Oh, yeah, we would very much like to. Once again, it's all dependent on the 813 00:48:05,500 --> 00:48:13,040 resources that our 3,000-person university can provide for us. It's a small university. 814 00:48:13,300 --> 00:48:14,920 Small university. Yes. 815 00:48:24,880 --> 00:48:26,440 Yes, that's all it does. 816 00:48:26,960 --> 00:48:27,520 Yes. 817 00:48:27,560 --> 00:48:28,200 If you have... 818 00:48:28,200 --> 00:48:34,620 If you had a one-to-many, in that case, what it would do is that encryption would still 819 00:48:34,620 --> 00:48:39,340 provide collisions, but it would be in and out. You could get around this by making an 820 00:48:39,340 --> 00:48:45,880 infinitely large key space, but then I'd really hate to try and decrypt that sucker, even 821 00:48:45,880 --> 00:48:54,720 with the key. But it's practically not effective to do that. It will theoretically work, but 822 00:48:54,720 --> 00:48:55,980 it's practically not so good. 823 00:48:59,020 --> 00:49:01,620 Wow. Go ahead. More questions. I love questions. 824 00:49:11,400 --> 00:49:16,660 We're thinking about that, and unfortunately, we... Everyone working on the research, we 825 00:49:16,660 --> 00:49:20,780 are American. We only know the English language. So, unfortunately, we weren't able to expand 826 00:49:20,780 --> 00:49:22,880 this to other languages. We did... 827 00:49:22,880 --> 00:49:23,900 I'll answer that in a second. 828 00:49:24,440 --> 00:49:28,180 We did look at some of the statistics of other languages, and we do... We do know that there's 829 00:49:29,600 --> 00:49:33,960 commonalities. There are characters that do appear more frequently than others. So 830 00:49:33,960 --> 00:49:37,840 there is that language statistic that we can use. We just haven't expanded to it. We are 831 00:49:37,840 --> 00:49:38,440 trying to. 832 00:49:39,060 --> 00:49:43,060 And I believe the more complete answer is we haven't had enough time to characterize 833 00:49:43,060 --> 00:49:48,460 the mathematics of how it runs, because of our limited, once again, resources. 834 00:49:50,120 --> 00:49:50,640 Yes. 835 00:49:51,020 --> 00:49:53,600 Can you look into the effects of ? 836 00:49:54,840 --> 00:49:56,660 We're starting to look into the... 837 00:49:56,660 --> 00:49:57,340 Okay. 838 00:49:57,340 --> 00:50:04,420 The basis of how that works in compression. It's... Let me say, it's a very interesting 839 00:50:04,420 --> 00:50:11,800 problem that we don't have enough resources to chase yet. This happens when you have a 840 00:50:11,800 --> 00:50:12,620 small team. Yeah. 841 00:50:12,880 --> 00:50:18,980 I think about it in the back . You talk a lot about non-limit. It's actually 842 00:50:18,980 --> 00:50:26,760 the maximum of the . So what do we get? 843 00:50:27,360 --> 00:50:30,780 The minimum of the . 844 00:50:41,080 --> 00:50:41,640 Larger. 845 00:50:42,280 --> 00:50:42,840 Yeah. 846 00:50:45,380 --> 00:50:45,940 . 847 00:50:49,320 --> 00:50:56,020 Yeah. And see, once again, it all comes back to the alphabet size, and the constraints 848 00:50:56,020 --> 00:50:57,320 on the alphabet, as I said. 849 00:51:02,600 --> 00:51:06,120 And then, what else do you get? 850 00:51:07,760 --> 00:51:08,800 The minimum of the . 851 00:51:08,800 --> 00:51:08,840 Yeah. 852 00:51:10,040 --> 00:51:10,400 The minimum of the . 853 00:51:10,400 --> 00:51:10,660 What else? 854 00:51:10,900 --> 00:51:13,920 The minimum of the . 855 00:51:15,900 --> 00:51:16,940 Oh, yeah. 856 00:51:17,220 --> 00:51:17,240 . 857 00:51:17,240 --> 00:51:17,260 . 858 00:51:17,880 --> 00:51:18,400 . 859 00:51:18,400 --> 00:51:18,600 . 860 00:51:18,600 --> 00:51:18,940 . 861 00:51:18,940 --> 00:51:19,000 . 862 00:51:19,000 --> 00:51:19,020 . 863 00:51:19,020 --> 00:51:19,060 . 864 00:51:19,060 --> 00:51:19,140 . 865 00:51:19,140 --> 00:51:24,040 can get if you can get enough material to analyze it'll automatically go but 866 00:51:24,040 --> 00:51:28,980 the material once again the amount of material that you need is based on the 867 00:51:28,980 --> 00:51:32,840 birthday paradox as opposed to other 868 00:51:35,040 --> 00:51:40,240 methods which require much more this really compresses how much data you need 869 00:51:40,240 --> 00:51:40,600 to see 870 00:51:54,720 --> 00:52:00,220 yeah the answer is indeed it is and one of the things that we're extending on in 871 00:52:00,220 --> 00:52:04,820 our next project is we believe that we can take this data and we can tell you 872 00:52:04,820 --> 00:52:08,860 what the size of the block is and what language it was originally encrypted in 873 00:52:08,860 --> 00:52:10,440 which is roughly the same thing 874 00:52:10,440 --> 00:52:10,580 yeah the answer is indeed it is and one of the things that we're extending on in 875 00:52:10,580 --> 00:52:15,080 which is roughly the same thing that we're extending on in 876 00:52:15,080 --> 00:52:20,920 Wow how about that either we did good or we did really 877 00:52:20,920 --> 00:52:21,400 terrible 878 00:52:21,400 --> 00:52:21,740 terrible 879 00:52:21,740 --> 00:52:21,880 you 880 00:52:21,880 --> 00:52:23,140 you 881 00:52:23,140 --> 00:52:24,520 you 882 00:52:24,520 --> 00:52:26,180 you 883 00:52:26,180 --> 00:52:26,720 you 884 00:52:26,720 --> 00:52:28,140 you 885 00:52:28,140 --> 00:52:30,620 you