[00:00.000 --> 00:05.140] All right. Welcome back, everybody. Next up, please welcome Steve, who will be speaking [00:05.140 --> 00:06.900] about EasyPake Oven. [00:10.020 --> 00:14.460] I'm Steve. You may know me as Scoobs. Thank you for coming to my talk. [00:15.840 --> 00:25.500] So, a quick overview of my talk. It's going to be, you know, [00:25.500 --> 00:34.640] what, why, which, password, KDFs, APIs, and HSMs, secret salt, and recovery. [00:35.740 --> 00:40.140] So, what is a Pake? A Pake is a password key... [00:43.940 --> 00:48.220] This always happens in, like, the first five minutes. I always get super nervous. [00:48.220 --> 00:51.560] I know. Anyways. Woo! [00:55.540 --> 01:02.560] Anyway. So, a password authenticated key exchange is just that. It's a key exchange [01:02.560 --> 01:11.460] that has a password involved such that anyone trying to do any, like, malicious attacks or [01:11.460 --> 01:18.820] anything like that gains nothing from it. It's a zero knowledge proof, and the only thing that [01:18.820 --> 01:28.980] leaks is yes or no for whether your password was correct or wrong. It also has... there's [01:28.980 --> 01:34.620] two different types of Pakes. Balanced and unbalanced. Sometimes it's called symmetric [01:34.620 --> 01:44.220] and asymmetric or augmented. So, a balanced Pake is where it's peer-to-peer. [01:45.820 --> 01:59.500] So, sorry. So, a balanced Pake is where you're peer-to-peer. So, this is, like, [01:59.500 --> 02:09.360] two people that have a shared low entropy key, such as, like, a short password or something that [02:09.360 --> 02:18.080] you prearranged or whatever. You can do a key exchange, and it can be secure. [02:18.520 --> 02:26.320] The other way, the augmented asymmetric unbalanced way, is server client. So, [02:26.320 --> 02:33.940] the server has a password, and the client has a password, and the server has a verifier [02:36.140 --> 02:42.500] that... so, the verifier, it can't be used as a way to authenticate to the server. So, [02:42.500 --> 02:48.900] if the database ever leaks, that verifier data can't be used to authenticate to the server. But [02:49.540 --> 02:54.170] basically, it's a password hash equivalent, but not a password equivalent. [02:55.550 --> 03:05.010] So, why should you use Pake? Well, it may seem overly complex or scary or something, [03:05.010 --> 03:11.010] but there are some use cases where it helps with security. [03:14.510 --> 03:23.110] So, one of these cases is recently, over the last... over a span of about a year, [03:23.110 --> 03:30.530] these tech companies accidentally were logging passwords. And if the password is never sent to [03:30.530 --> 03:40.090] the server, then you can't log the password. You might think, oh, I could hash the password [03:40.090 --> 03:46.990] first and send it over, but... so, you secure the database really well, but you still log, like, [03:47.290 --> 03:53.090] a simple hash of the password, and that's in the log. Those can be cracked easily. But even if [03:53.090 --> 03:59.430] you logged all the Pake data that's being going... that's going back and forth, you would gain [03:59.430 --> 04:07.230] nothing from that as an attacker. There... since this isn't, like, implemented in the browser, [04:07.230 --> 04:14.590] you'd have to be... you'd have to implement it in JavaScript. And sometimes people have JavaScript [04:14.590 --> 04:24.130] disabled, so you'd have to still have a fallback. But that's, you know, like, 1%. So, some other [04:24.130 --> 04:32.470] uses, as I was saying, peer-to-peer. What you can do is secure peer-to-peer file transfer with [04:32.470 --> 04:42.530] magic wormhole. You can also... so, that's the GitHub page for it. You can also... it's in package [04:42.530 --> 04:54.790] managers for Linux. I actually don't know which ones, but... so, anyway, so, basically what it [04:54.790 --> 05:04.090] does is you have this small shared secret that you send... that you tell someone, they type it in, [05:04.090 --> 05:10.230] and then you can get a secure connection between the two of you, assuming that someone didn't man [05:10.230 --> 05:19.970] the middle and guess what it was with one try. Another good thing Pakes are for are for encrypted [05:19.970 --> 05:26.470] cloud services, like password managers and encrypted backups. Because they have to do [05:26.470 --> 05:33.130] authentication and encryption with your password. And there's a lot of things that you can do [05:33.130 --> 05:44.450] incorrectly with passwords. Such as... so, there's downgrade attacks that Pakes prevent. So, a bug [05:44.450 --> 05:52.510] that last pass had was you would log in, it would say error... well, if the server was compromised, [05:52.510 --> 05:58.410] the server could reply with error iterations one. You would be like, oh, oops, I had the iterations [05:58.410 --> 06:04.670] wrong. So, then you would do one iteration, which would be a really fast hash, and then send that. [06:04.670 --> 06:10.530] And then it would say error iterations, the correct amount of iterations for your account. [06:10.530 --> 06:16.880] And all the user would see is that it took twice as long to log in. And they'd just be like... [06:19.330 --> 06:25.760] Then there was keeper. This was on full disclosure. [06:31.140 --> 06:44.870] And so, the bug here was... so, the way authentication and encryption worked on this [06:44.870 --> 06:52.490] is there was a salt and iteration count for the authentication key. And then there was a salt and [06:52.490 --> 06:57.870] iteration count for the encryption key. And both of those were run through PBKDF2. And then you [06:57.870 --> 07:04.210] would get the authentication key or encryption key. But if you sent the... if an evil server sent [07:04.210 --> 07:12.870] the encryption salt and iteration count for the authentication stage, the client would just [07:12.870 --> 07:22.830] send the encryption key. So, that would be really bad. I forgot which way I decided on doing this. [07:24.150 --> 07:38.070] So, the fix... well... so, they don't like people not praising them. So, I'm not gonna say this one. [07:39.470 --> 07:47.030] But it was very obvious from the previous slide what they're doing wrong. Because they're doing [07:47.030 --> 07:54.750] exactly the same thing except for the authentication key is now hashed. So, you can probably figure [07:54.750 --> 08:03.810] out what's wrong. But if any... well, I guess I'm still... if they were using pigs for authentication, [08:03.810 --> 08:13.310] then none of these attacks would work. So, there's a bunch of pigs. And which one do you use? [08:13.730 --> 08:22.050] So, you may have heard recently about dragon fly and the pony award for dragon blood. [08:24.350 --> 08:32.310] So, basically, it was a timing attack on their hash to point algorithm. Because it was like an [08:32.310 --> 08:39.970] iterated loop which would then leak information. This is actually known to be bad a while ago. I [08:39.970 --> 08:45.430] don't know why anyone uses dragon fly. I guess their marketing team is good or something. But [08:50.390 --> 08:59.430] no one's actually done a real life test on such as with dragon blood, which is the cool part. [09:00.630 --> 09:11.290] Anyway, so, there's SRP 6A. So, the client's on the left. Server's on the right. And those are [09:11.290 --> 09:18.170] just... the arrows are just packets going back and forth. When you see a key, that means at that [09:18.170 --> 09:30.530] stage, the... that side can encrypt or send... well, and send the authentication key. Or, yeah. [09:30.530 --> 09:42.810] Verifier thing. So, only need to authenticate the user. Such as, like, logging into an account. [09:42.810 --> 09:54.890] Then you wouldn't need to do the last step. There's... so, on the server side, the key is [09:54.890 --> 10:02.870] actually available after the first packet. But if you send encrypted data or you... or send the [10:02.870 --> 10:08.990] authentication token from the server to the client, the client actually has all the information [10:09.550 --> 10:16.070] necessary to do offline brute force. So, if you were to do that, your implementation would be [10:16.070 --> 10:23.670] really, really bad. So, when I was doing my slides, I remembered seeing something weird on Wikipedia [10:23.670 --> 10:34.570] like a year ago. And being like, wait a minute. This is wrong. So, I haven't actually had time [10:34.570 --> 10:44.490] to fix this. But according to this, you can skip M1, which is the authentication method... [10:45.570 --> 10:51.570] verification from the client to the server. And M2 is verification from the server to the client. [10:51.570 --> 10:59.930] If you skip M1 or... well, if you skip M1 and M2 and then you encrypt data to the client [11:00.420 --> 11:07.630] before verifying the encrypted data from the client, then the client has everything it needs [11:07.630 --> 11:19.990] to do a offline password cracking. So, opaque, that's the new hotness. [11:22.650 --> 11:39.620] So, this pig was presented at real world crypto a few years ago. So, what they introduced was [11:41.840 --> 11:49.400] blind salt. It has this interesting property. So, with other pigs, the salt is given to the client [11:49.400 --> 11:58.340] or, you know, assumed or whatever. And, you know, like, when I say assumed, I mean, like, [11:58.340 --> 12:07.420] the user name combined with the domain name. That's the salt. So, what happens with these [12:07.420 --> 12:15.160] other pigs is you can run the password KDF, which is expensive, on a bunch of password guesses. [12:16.040 --> 12:24.440] So, you store all those keys. And then when you want to, what you do is, well, once you're done [12:24.440 --> 12:31.240] with enough, you go and break into the server, grab the verification data, and run through all [12:31.240 --> 12:39.700] those passwords extremely fast. So, if you are in a limited time scale from when you get in to when [12:39.700 --> 12:47.160] they're going to change passwords or something, you would want to do this. It's like a theoretical [12:47.160 --> 12:59.160] attack. But with opaque, with the blind salt, there's basically it prevents that by, well, [12:59.160 --> 13:07.160] actually, so, you don't really have to read this. It's just sort of there. So, this is how blind [13:07.160 --> 13:18.260] salt works. Basically, after it runs through, if you had the wrong password at the beginning, so, [13:18.260 --> 13:24.180] H, that's a fast hash. That's not like a password KDF or anything. There's no information linkage [13:24.180 --> 13:30.240] on this. There's no way to, you know, from the client's message to know, oh, hey, the password [13:30.240 --> 13:39.340] could have been like that or something. But, so, if the password is wrong at the beginning, [13:39.340 --> 13:45.420] then when you get back your blind salt, it will be the wrong salt. And then when you're doing the [13:45.420 --> 13:54.720] password KDF, it will be also wrong. So, basically, you have to do this all. There's one small thing [13:54.720 --> 14:06.940] with, so, the S column. Okay. You can't really see that. So, server, the part where that's doing [14:06.940 --> 14:13.220] its work, if you're doing that with elliptic curves, basically, what's happening is the [14:13.220 --> 14:19.260] server is receiving a point and then applying a private value to that. The same private value [14:19.260 --> 14:29.440] every single time. And what you can do with that is if there's a implementation error, such as [14:30.180 --> 14:39.860] this one implementation had a rare carry bug. And Sean and Filippo, [14:43.700 --> 14:51.780] they did a black hat talk about breaking that. They were able to, so, every now and then, [14:51.780 --> 14:57.180] given a point, it would cause an error. And when the value was incorrect, they could then [14:57.180 --> 15:03.720] determine some information about the private key. They were able to recover the entire private key. [15:03.720 --> 15:14.440] So, if the secret, the server is ever leaked in a case like that, then it would completely break [15:14.440 --> 15:24.170] opaque because that would give you all the data as an attacker to do line password cracking. [15:25.130 --> 15:47.160] So, SPake 2 plus EE with blind salt. That's a mouthful. So, basically, what I did was I added [15:47.160 --> 15:59.360] blind salt to SPake 2 plus EE. And I ended up making the name smaller to BSpake or BSpake. [15:59.380 --> 16:08.740] So, basically, it's similar to the round trips. Well, it is the same as the round trips for [16:10.820 --> 16:21.520] SRP. Except for this has an extra property that not many Pakes have. Well, it also has the [16:21.520 --> 16:28.000] property that opaque has where it prevents precomputations. [16:29.800 --> 16:39.080] So, this also has a property that is fairly interesting. So, it's sort of quantum resistant. [16:39.080 --> 16:43.740] I call it quantum annoying. It's not really a quantum easy problem. It's not a quantum hard [16:43.740 --> 16:55.220] problem. Basically, most Pakes, you have to solve one DLP and then you can do offline classical [16:55.220 --> 17:08.720] computer password guessing. But with BSpake, you have to solve one DLP for every password guess. [17:08.720 --> 17:19.620] So, it's fairly expensive because even if we did have quantum computers, I forgot to look this up. [17:19.620 --> 17:28.680] There's this paper that tells you, like, how many quantum operations you have to do to solve a DLP [17:28.680 --> 17:38.840] for a 256-bit elliptic curve, which is on the order of a few billion. So, even if you could do, [17:38.840 --> 17:45.180] if your theoretical quantum computer could do a billion quantum operations per second, [17:45.180 --> 17:51.580] you're looking at, you know, .1 passwords per second with a very expensive computer. [17:51.580 --> 17:59.020] There is a PQPake. I haven't actually looked into it that much. But, [18:01.080 --> 18:08.140] basically, with post-quantum algorithms, we don't really trust them that well yet. So, [18:08.140 --> 18:17.040] we usually run them in parallel with classical cryptography, like elliptic curves and whatnot. [18:17.040 --> 18:27.500] And so, with a Pake, you can't really run a PQPake next to a [18:27.500 --> 18:38.700] BSPake. Because you wouldn't get the combination. It would be whichever is the weakest one. [18:38.700 --> 18:44.100] So, basically, I think the best Pake to use is BSPake. [18:44.100 --> 18:53.660] So, this brings us to password KDFs. So, there's many different ones. One that you probably [18:53.660 --> 19:00.720] have heard of, or most common, probably, is just computationally hard. It's called [19:00.720 --> 19:11.320] PBKDF2. There's just one small problem with it. It has a foot gun. So, it runs in iterations times [19:11.320 --> 19:22.280] output length. So, if you ask for so, if you're doing PBKDF2 HMAC SHA-256, each block of output [19:22.280 --> 19:32.580] of SHA-256 is 256 bits. So, if you ask for 256 bits of key, then you only do iterations amount [19:32.580 --> 19:41.840] of work. But if you ask for 257 bits, then it has to do two blocks, and thus, it needs to do [19:41.840 --> 19:58.580] twice as much work. So, one password, they generated an IV and a key from PBKDF2, and an [19:58.580 --> 20:07.620] attacker only needed to generate one of those blocks and decrypt some stuff. And it was Adam [20:07.620 --> 20:13.680] from Hashcat that found that. And then, technically, Google Sync isn't on this list, but I like [20:13.680 --> 20:22.660] bringing them up because they did fairly bad. Basically, for Google Sync, they use Nigori, [20:22.660 --> 20:32.640] which the first thing that they do is they use PBKDF2 on constant data to generate assault. Then [20:32.640 --> 20:40.260] they do three more runs of PBKDF2 to generate three different keys. Technically, they could [20:40.260 --> 20:46.980] have done PBKDF2 with just like a long output, which is kind of like what the foot gun would [20:46.980 --> 21:01.020] have done. And then Microsoft, they were using was SHA1 base, so 160 bits, and they were asking [21:01.020 --> 21:10.140] for, or they were storing 256 bits. So, their servers had to do twice as much calculations as [21:10.140 --> 21:19.260] an attacker would have to. But, good thing, each block of output is independently generated. So, [21:19.260 --> 21:26.720] is the foot gun to actually make PBKDF2 better? Because what they're doing, each block is [21:26.720 --> 21:34.540] independently generated. So, you can use SIMD, which is single instruction multiple data. [21:34.540 --> 21:45.980] So, with x86, you have SC2, AVX, AVX2, AVX512. AVX512, that can run 16 [21:47.700 --> 21:57.140] iterations of PBKDF2 SHA256 at the same time. So, it would be 16 times more work being done [21:57.140 --> 22:02.600] in the same amount of time, and then you have multiple cores. So, you can make PBKDF a little [22:02.600 --> 22:10.860] bit better, but still, other algorithms are better. You really shouldn't be using a script [22:10.860 --> 22:19.220] at this point, because of the time memory tradeoff. Basically, an attacker is the only one [22:19.220 --> 22:25.190] that actually uses this, to their advantage, because they use less memory, and they do a [22:25.190 --> 22:34.150] little bit more work. And it ends up being faster overall. So, instead, you should be using [22:34.150 --> 22:43.470] Argon2, but the problem with Argon2 is for short runs, for like authentication, you can't use [22:43.470 --> 22:56.330] enough memory. It's just too slow. So, technically, a better algorithm would be a cache [22:56.330 --> 23:07.670] hard algorithm. Bcrypt isn't actually a KDF, but there are some weird ones like PBKDF, Bcrypt, [23:07.670 --> 23:17.710] or whatever. And then there's also Pufferfish. There are issues, but whatever. Really, I would [23:17.710 --> 23:34.330] say, currently, Argon2 would probably be the ideal way to go. So, with, so, the problem with [23:34.330 --> 23:45.850] pick APIs is, so, this is what you usually see when you see an implementation of SRP. So, [23:45.850 --> 23:53.290] calculate B, calculate M2, what's V? And, you know, so, basically, the developer has to figure [23:53.290 --> 24:03.250] out what all these are. And then they're like, okay, and some implementations leave it up to [24:03.250 --> 24:09.910] the developer to figure out whether, how they're supposed to check M1, M2, which one they send [24:09.910 --> 24:23.050] first, and whatnot. And as I said before, with SRP, this can lead to very bad bugs. So, a good [24:23.610 --> 24:34.150] API would be one that is easy to use and hard to misuse. So, basically, you start, you say who [24:34.150 --> 24:40.170] you are, who the other person is, and your secret. If you're a client, or, you know, it's a symmetric [24:40.170 --> 24:45.990] pick, this would be a password. If you're the server, then this would be your server secret [24:45.990 --> 24:55.370] data. Then you say, you let the API know what type of user you are and what type of mode you're [24:55.370 --> 25:05.270] using. And it will return a message status. You check the status for whatever. And the message, [25:05.270 --> 25:12.770] you may or may not get a message back. If you do, you send it to the other side. [25:17.450 --> 25:24.390] So, when you receive a message, you pass it into receive message. And then you get another [25:24.390 --> 25:29.770] message and a status. And every time you get a message, you send it to the other side. And you [25:29.770 --> 25:37.490] check to see if you're finished by the status. And then there's certain other things that you [25:37.490 --> 25:50.170] can do. Like, get server secret. Get user key. So, user key is a little bit different. It's [25:50.170 --> 25:58.410] kind of unrelated to pigs. But so, you're supposed to only run the password KDF once. [25:59.390 --> 26:06.270] And derive two keys from it. An authentication key and an encryption key. And since we're using [26:06.990 --> 26:13.050] blind salt and we can't generate two keys beforehand and give it to the API, [26:13.990 --> 26:24.770] we have the API run the password KDF. If you need a user key, which is user specific based on the [26:24.770 --> 26:31.330] password to encrypt data that only the user can read. So, you know, like a password vault or [26:31.790 --> 26:41.730] a, you know, encrypted backup or something. So, you know, what's client server. So, [26:41.730 --> 26:49.950] those are for augmented. And then Alice, Bob. So, there are some pigs where you have to say, [26:49.950 --> 26:58.070] I'm Alice, they're Bob. And vice versa. Or you can say, I'm either Alice or Bob. And the pig [26:58.070 --> 27:05.650] figures it out. And then mode uses, you know, you're using the pig. And then [27:08.010 --> 27:15.290] register. That just generates the server and gets sent to the server. Then the other two are [27:15.290 --> 27:19.170] special for a special case that we'll talk about later. [27:21.350 --> 27:26.470] You know, so, these are just the flags. Session key available. That means you can encrypt. [27:26.470 --> 27:33.590] So, that's there. Then you can get the session key and then start encrypting data to the other [27:33.590 --> 27:43.210] side. Server secret available. Fairly self explanatory. Verified other. You have already [27:43.210 --> 27:52.270] authenticated the other party. So, in the event that, like, you only want to verify the user, [27:52.270 --> 28:00.710] you could stop right then. Because if you're the server, because that's the whole entire goal is [28:00.710 --> 28:13.810] just verify that the user's password is correct. So, fairly straightforward. So, this is just, [28:13.810 --> 28:22.530] so, Carol, client, Steve, server. Hey, that's me. Those are actually the common names that are [28:22.530 --> 28:38.330] used for describing client and user. Just like, you know, Alice, Bob. So, fairly easy. So, the [28:39.330 --> 28:46.790] server doesn't have a server secret yet because it's on register. So, no. And, you know, for [28:46.790 --> 28:56.830] using, fairly straightforward. The common, this is for using or it's all pseudocode. But for [28:56.830 --> 29:03.730] using or registering. Because all you're doing is waiting until it's finished or errored out. And [29:03.730 --> 29:13.830] then you're just passing messages back and forth. There we go. So, [29:16.130 --> 29:32.310] HSM. So, basically, what you can do as a server is you can have an HSM that store, that has, [29:33.110 --> 29:42.370] that you give it encrypted data. And what it does is it does the whole PAKE algorithm on its own. [29:42.370 --> 29:51.950] So, that if your database ever gets leaked, then the an attacker wouldn't have the decryption key [29:51.950 --> 30:03.410] necessary to decrypt the verifying data. And they wouldn't be able to crack any passwords. [30:03.970 --> 30:11.250] So, the way it would work is, so, the is on the far left. Out of the picture. [30:11.250 --> 30:18.410] One goes that way. That's basically. So, finds the user. Gets the encrypted data. Sends it to the [30:21.050 --> 30:28.290] HSM. Decrypts it. And then it has the server secret data. Then it runs the PAKE and gets [30:28.290 --> 30:36.550] the session key. Then this is actually a slide from another talk that I gave a few years ago [30:37.810 --> 30:46.530] at B sides. So, this was for when you have, like, an encrypted service. So, you would have [30:46.530 --> 30:51.950] an encrypted master key. So, that when you change your password, you didn't have to reencrypt [30:51.950 --> 31:00.430] everything. So, what some does is, it encrypts the master key with the session key. Sends that [31:00.430 --> 31:08.810] over to the client. No one in between the HSM and the client can read these packets because of [31:08.810 --> 31:18.130] the PAKE session. And then a little bonus feature is, you can drive a second key from the session [31:18.130 --> 31:25.970] key or another session key from the session key and give that to the server so that they can [31:27.290 --> 31:33.330] talk to the client in a way such that no one in between the server and the client [31:33.330 --> 31:41.850] can man in the middle of that without knowing the password. So, secret salt. [31:45.350 --> 31:54.150] So, this is used by, well, they call it something else. They changed the name a few times. This is [31:54.150 --> 32:03.330] used by one password. So, what this allows you to do is, it's basically a key that's on your [32:03.330 --> 32:10.830] device. And you never send it to the server or anything like that. And you basically transfer [32:10.830 --> 32:23.250] it to all your devices some way. And then what it does is, it makes it so that an attacker would [32:23.250 --> 32:31.070] have to get your device, get the secret salt, and then they can then do online password guessing [32:32.050 --> 32:40.510] to the server. Which means that if it was in, like, a password manager, it would be actually [32:40.510 --> 32:55.230] more secure than an offline password manager. So, there is one small thing about one password. [32:57.610 --> 33:07.090] So, they require you to use a, their web client, which means if their servers are ever [33:09.650 --> 33:19.710] attacked or, you know, infiltrated, then when you do use the web client, then they can [33:19.710 --> 33:27.870] extract, send malicious JavaScript, which then can extract your key, which would be bad. But [33:28.450 --> 33:35.630] that's only during administration because that's not actually implemented in any of the [33:37.530 --> 33:52.450] other apps that they have. So, recovering a lost secret salt. I wrote a blog post about it. [33:52.450 --> 34:03.510] You can actually just go to tab2.com slash blog. I was lazy and it's just, like, you can, [34:03.510 --> 34:15.250] it's just directories. So, so, to the basic idea behind recovering a secret salt. [34:16.030 --> 34:24.990] So, if you ever lose the secret salt, then you're screwed. Even though you know your password, [34:24.990 --> 34:33.390] you just can't log in. And this would be really bad for users, which is why you need to make [34:33.390 --> 34:44.210] paper copies, which they won't make and what. But so, taking a recovery option for secret salt [34:44.990 --> 34:54.930] would invalidate the entire idea of having a secret salt, except there's this little trick. [34:54.990 --> 35:02.710] So, when you're doing, so, the recovery method is you do the password KDF with [35:02.710 --> 35:13.290] the, with another blind salt and your password and this guessing salt. It's, like, 16 bits. [35:13.290 --> 35:20.670] And what you do is after you run the password KDF, you throw away those 16 bits. And what you [35:20.670 --> 35:29.550] have to do from then is you have to, when you're recovering, you have to brute force those 16 bits [35:29.550 --> 35:39.010] that you don't know. So, if you ran a password KDF that was Argon 2 with 256 meg, one thread, [35:39.010 --> 35:47.150] three iterations, it would run for about one second on your computer. So, it would be, like, [35:47.150 --> 35:54.990] 18 hours. You probably have a few less bits than that so that it would run in a more reasonable [35:54.990 --> 36:03.430] amount of time, like, a couple hours. The thing is, you never actually, you're rarely ever doing [36:03.430 --> 36:14.390] this. So, from the user standpoint, it's, I never get my account back or I have to do two hours of [36:14.390 --> 36:27.070] hard computations on my computer. And since it takes, you know, two hours for one password guess, [36:27.070 --> 36:40.150] if a password cracker got this, that is a ridiculously slow speed. So, the recovery [36:40.150 --> 36:49.450] method also uses a pake and whatnot. But that's what those two extra ones were, the blind salt. [36:49.450 --> 37:01.670] So, you would actually need to do... there we go. So, these two, blind salt, only blind salt, [37:01.670 --> 37:08.130] you would do that with your password and then you would get back your blind salt. Then you would go [37:08.130 --> 37:17.890] and do your, basically, brute force the guessing salt. And then after that, you would have a bunch [37:17.890 --> 37:25.530] of candidates, which you would then use after blind salt. You're also given a very short, [37:25.690 --> 37:35.150] a smaller hash than the guessing salt. So, you'll have a few, like, 10 or whatever that you would [37:35.150 --> 37:46.230] have to do. Pake operations with the server. Then you would have a session key and then you [37:46.230 --> 37:57.890] would decrypt the secret salt that you lost. And then you would have it back. Questions? Yeah. [37:57.890 --> 38:10.510] All right. Thank you very much. Any questions? I'm slowly making my way up to the front. Can we [38:10.510 --> 38:13.170] have this with the mic, please? I'll be right there. [38:15.250 --> 38:22.530] Thanks. Sorry, I walked in late. I missed what a blind salt is. I missed what a blind salt is. [38:22.530 --> 38:32.190] Oh! I walked in. Sorry. There we go. So, basically, blind salt prevents pre-computational [38:32.190 --> 38:54.740] attacks. It was first added into a pake with opaque. So, basically, with this, so, basically, [38:54.740 --> 39:02.160] after you run through this, if you had the wrong password, you have the wrong salt for when you [39:02.160 --> 39:13.900] run your password KDF. And there's no information leakage in the algorithm. So, you can't, like, [39:13.900 --> 39:21.320] guess or whatnot what the password was from the server side. And this makes it so that you have [39:21.320 --> 39:31.660] to do online password guessing. Well, thanks for doing this talk, Steve. I think pakes are [39:31.660 --> 39:37.040] definitely underutilized and the landscape is definitely kind of confusing. So, have you [39:37.040 --> 39:41.520] thought about contributing an implementation of your API to something like Libsodium just to make [39:41.520 --> 39:48.780] it easier for developers? So, the nice thing is, you can actually, you don't really have to write [39:48.780 --> 39:56.370] much. You just have to write the, basically, like a wrapper for current implementation. [39:57.560 --> 40:00.280] What project did you say? [40:01.080 --> 40:05.020] Libsodium or any other general crypto library? [40:06.620 --> 40:24.240] Yeah. I did talk to, I forgot his name. Libsodium guy. Yeah. He didn't like it. [40:24.580 --> 40:29.860] What? No, he didn't like it. [40:30.280 --> 40:32.320] But, yeah. [40:32.320 --> 40:40.180] Thanks for your talk. Could you repeat, again, how Opaque and BSpake compare? Are they different? [40:40.880 --> 40:52.080] So, Opaque, basically, so, with Opaque, it's fragile for implementations because of [40:52.080 --> 41:00.160] the blind salt. Basically, if you solve that DLP or figure out, you know, like, [41:00.160 --> 41:10.960] what the salt is through some coding error, like the carry propagation, then the, an attacker [41:10.960 --> 41:25.660] would be able to get offline pass or guessing. And with BSpake, it does add some, another [41:27.000 --> 41:36.220] pass back and forth. Or, well, one more trip. But it has an extra property that is [41:37.760 --> 41:44.620] quantum annoying. It's just a name I came up with. I'm not really attached to it. But, [41:44.620 --> 41:56.700] um, basically, uh, due to the hash to point blinding on, uh, the, well, the, uh, the base [41:56.700 --> 42:07.320] function, uh, uh, uh, SPake 2 plus EE that it's based off of, uh, that blinding, uh, prevents, [42:07.320 --> 42:13.660] you, well, it requires you to, uh, solve one DLP for every password guess. [42:14.100 --> 42:23.380] So, um, so with hash to point, um, what that does is it creates a point on the curve that you [42:23.380 --> 42:36.960] don't know what the, um, the, uh, the, uh, discrete log is. So, uh, when you are trying to [42:36.960 --> 42:43.160] attack this, you would have to guess a password, then hash it, it would go hash to point, then [42:43.160 --> 42:47.880] you subtract it from the message that you saw that went by. And then you would have to solve [42:47.880 --> 42:55.560] the, uh, the DLP for what's left. And you would have to do that every single time. First, [42:55.560 --> 43:00.380] other picks where you just have to solve one and then you have everything that you need. [43:01.020 --> 43:08.180] Oh, there was one other thing with Opaque. Uh, you don't need to observe a successful [43:08.180 --> 43:17.660] key exchange, but with, uh, uh, Bspake, um, you have to observe a successful key exchange to be [43:17.660 --> 43:26.040] able to then, uh, use a quantum computer if it were to exist. Uh, and you'd have to do one for [43:26.040 --> 43:37.370] every guess. Any further questions? All right. One last round of applause for our speaker. [43:37.370 --> 43:38.190] Thank you.