Welcome our next speaker, Bob Wall and Colt Fedrickson, on implementing a library for pairing-based transform cryptography. Thanks everyone. Thanks for sticking around until the bitter end, almost the bitter end. I imagine some of you might have been out partying last night. I'll try not to assault anyone's hangover, but special warning, there is some math in here, so consider yourself warned. Colt and I both work together at a company called Ironcore Labs. We'll talk about this transform cryptography library that we've implemented and some of the background about it. Obviously, we've known the answer to this question for quite a while before Facebook got facepalmed. But you can maybe tell by my gray hair that I'm not a fan of this. I've actually got to watch the World Wide Web get started, and it took off, and then the cloud stuff started, and it seemed like, hey, this might be really pretty cool. Especially people that were doing IT and setting up data centers. Like, wow, this might be great. And then we started getting some breach notifications. We heard about Yahoo. We heard about Anthem. We heard about the Office of Personnel Management, or the OMB. We heard about Facebook. I imagine at least a few of you out there have gotten a breach notification. From some company. So, started to get a little bit iffier about the cloud. And even if you disregard the breaches and think about the weird things that happen when somebody sends you an email, or you send somebody an email, and then you go to some social media site or Google and look at the ads that get presented to you, it's a little creepy. I find it a little creepy anyway. So, maybe the cloud has some downsides after all. So, what can we do? What can we do about that? What are some things that we can do to start fighting back against that? And one of the obvious answers is end-to-end encryption. So, if I've got a device, a browser, a phone, a tablet, and I want to generate some data, and I want to make it available to someone else, well, if I can use public key cryptography, I get their public key encrypted on the device, send it off, and it stays encrypted until it gets to their device, and they can decrypt it. So, hopefully. So, their private key that unlocks it stays on their device, and in between, it doesn't matter. We don't have to trust anyone. We don't have to believe that somebody's going to be upstanding in the middle. So, including cloud vendors, if we send that stuff through, we store it on Dropbox or Box, say, it doesn't matter if they want to look at it or not. They're not going to be able to. And so, we've seen kind of a takeoff of end-to-end encryption apps. And there are a few of them that are more popular, maybe. And you'll notice that most of these end-to-end encrypted applications now have something in common, and that is that they're primarily designed for messaging, and they're mostly designed for person-to-person channels. So they're not really designed for something where you might want to send something to a group of people. And they're especially not designed for something where that group of people might be big and or very dynamic, the membership of the group changing a lot. And there's a reason for that, because it's just not that easy. If you think about, say, you're a masochist and you want to encrypt some data to a group of people and you want to use GPG to do it, you get all of those people's public keys. You stuff those all into the GPG command line and say, hey, encrypt this document. It does it. And every one of those people can use their private key to decrypt it. OK. That's pretty good. And just kind of a side note here, and this will be kind of important as we talk through this. What we're talking about, what GPG does and what everything that does public key crypto pretty much does is envelope encryption. So they don't actually use public key crypto to encrypt that whole document, because it's slow and painful. They generate a random key, probably an AES key. They encrypt a document with that, and then they take that random key and they encrypt it with each of those public keys and stuff that on. The start of the document or at the end of the document or somewhere in that file. So I've got this file now. I've encrypted it to, say, three or four people. Everything's good. But now suppose I want to add another person. Well, that means that one of the people that can unlock the document needs to decrypt it, get those list of public keys that were already used, get the list of the extra public key that they want to add, and re-encrypt the document and save it back out there. So that's not tremendously convenient, and it's really not convenient if the group is changing fast. You wouldn't want to have to do that 20 times a day, for sure. Removing the access is pretty much the same thing. You have to go get the document, you have to decrypt it, re-encrypt it with a list of keys that excludes the people you want to remove access from. So obviously that is not scalable. So we want to build a system that has... We call it orthogonal access control, and that just means that we would like users to decide which groups of people should be able to access their data without knowing who belongs to the group, and then independently from that, the administrators of those groups should be able to add or remove members without me knowing about it. So this is obviously not a new idea. I mean, Unix groups are essentially this, but we want something that relies on cryptographic access control. We want something that relies on cryptographic access control instead of policy, so it's harder to break it, harder to mess it up. If somebody makes a programming error, it will matter a lot less, because unless you have the keys, you can't unlock it. And we want a system where each change in group membership or an access grant or revocation is basically a very fast, a constant time operation that's independent of the number of users that we're managing, or the number of documents, the number of files, or the number of groups that we have. So what's a way to do that? There's a field of study in cryptography called proxy re-encryption. It's been around for around 20 years. It hasn't really gotten too widespread of an adoption, but it provides a lot of these properties that we need to do this orthogonal access control. So most of the proxy re-encryption algorithms are based on public key cryptography, and almost all of them are actually based on pairings. Which was a good point. We'll talk about it in a little more detail, and that's where the math might start to sneak in. Proxy re-encryption was originally designed to allow someone who receives encrypted messages to delegate the ability to decrypt those messages to someone else, without having to give them her private key. So you can imagine, say we've got a mail server that's running with proxy re-encryption, and we've got a group of people that are using it. So Alice has a public private key. She's set up on the mail server, and she's getting encrypted mails, and she decrypts them. And then she's going to go on vacation. She wants Bob to take over for her while she's gone, but she would really rather not give Bob her public key, because he's kind of a doofus, and he will probably lose it. So with proxy re-encryption, she says, okay, I'm going to delegate to Bob. She calculates this re-encryption token, and sends it to the proxy server, the email server. And then when the email server sees emails coming in, she says, okay, I'm going to delegate to Bob. And then when the email server sees emails coming in encrypted to Alice, it can apply that transform key and do a transformation that makes that data encrypted to Bob without decrypting it. The mail server never saw the plain text. It only had this token that allowed it to transform from encrypted to Alice to encrypted to Bob. So that's what proxy re-encryption was designed to do. Proxy re-encryption algorithms usually have five primitives, key generation, and again, almost everyone I've seen is just straight up. So we have step, elliptic curve key generation, transform key generation, which is a little more involved, encryption, and transformation or re-encryption. We've taken to calling this transform encryption and calling this step transformation instead of re-encryption, because typically when I think of re-encryption, I think of what I talked about with GPG. It's like, oh, I have to go take the file, decrypt it, get a new key, and encrypt it with a new key. And this is not that. So we call it transformation instead. And then the decryption operation. Okay. So transform key generation with proxy re-encryption takes the private key of the person that wants to delegate the access, the public key of the person that they want to delegate the access to, and run some math, and it comes out with this transform key. So this transform key, again, doesn't allow anyone to decrypt any data. It can only be used to take data that's encrypted to the delegator and re-encrypt it or transform it so it's encrypted to the delegatee. Okay. And then, you know, once you get that done, you can send it to a proxy that's going to keep track of it, and it's going to apply it as necessary. And the fortunate thing is because it can't decrypt anything, you don't really have to trust the proxy when you send that key to it. You can't use it to do anything except what you basically told it it could do, which is transform messages that are encrypted to you so they're encrypted to someone else. And the nice thing is that you are the only one who can do that because it takes your private key to do that. So as long as you're not Bob, who, like, leaves his private key on the desk, you should be good. So if you want to delegate access, it's as simple as taking a file that's encrypted to the delegator, applying the key, and running the transformation algorithm, and sending the transformed file or data to the new recipient, they take their private key and they decrypt it pretty much the same way they would have decrypted something that was encrypted directly to them. So how can we use this to build this orthogonal access control system? We just use groups. We create a group, and we encrypt documents to the group. And then independently of that operation, the person who's kind of an administrator or owner of the group can create transform keys from the group to each of the users that's going to be a member. Once they add a member to the group, immediately that member can decrypt anything that's been encrypted to the group in the past. And that's pretty simple. Anything that will be encrypted to the group in the future, and at some point maybe you are removed from the group, that also immediately revokes access. And the nice thing is that both of those operations don't require you to go and find all of the documents that were encrypted to the group and mess with them. You don't ever have to touch any of the documents. You just do these transform keys. So creating a group is simple. It's just you create a public-private key pair for the group. What we do usually is take the group's private key and we encrypt it to the user that created it. And that makes that person essentially an administrator for the group. So an administrator is just someone who can access the private key of the group, which means they can add new people to the group when they want to. And again, adding a member to the group is as simple as computing that transform key. And that's why the administrator needs access to the private key. Granting access, if you've got a file and you want to let a group access that file, you just encrypt it to that group's public key. Very simple. If a group member wants access, they request the file that's been encrypted to the group. They give that to this proxy server that's got the transform key. It applies the transform to make the file so that it's encrypted to them. Sends that transformed file back. And then I've got a private key on my device that unlocks the data and records. Removing a member from a group is as simple as just forgetting the transform key. You just throw it away. As soon as it's gone, that user can no longer decrypt anything that's encrypted to the group. So now we've got all of the pieces and parts that we need to put together an orthogonal access control system and using a proxy re-encryption algorithm, we notice that, really, users don't use one key. I don't always use the same browser on my laptop to access things. I don't always use my cell phone to access things. So we can make this better if instead of, if we wanted to do that, we would basically have to do the thing that you do a lot of times now. It's like, okay, I've got my private key and I want to use three or four different devices. I have to figure out a way to get my private key onto all of those devices, which is, you know, you can do that, but that's not the greatest experience. So if we basically add another key. If we add another level here of delegation, we can treat a user as a group of devices and just do another transform from a user to a device. That means every device gets their own private key. You don't have to share them. You don't have to copy them around. If somebody drops their phone in the toilet, they can just basically revoke access to that phone and they don't have to worry about if somebody had somehow hacked their phone and gotten the private key for the phone. As soon as that transform key is gone, that phone can't access their data. You know, maybe you left it on the conveyor in the air. Maybe you left it at the airport. So the private keys for the devices are always on the device and it gives you this nice revocation property. But in order to do this, the proxy re-encryption algorithm needs to have a special property that's typically referred to as multi-use or multi-hop. So, you know, we already talked about if you had a data that's encrypted to a user and there's a transform key to another user, you can transform the document and then the other user can unlock it. But with multi-hop proxy re-encryption, you don't have to worry about that. You can take that transformed document and you can apply a second transform to it, maybe to another user, Carol, and produce this doubly transformed document, send that to Carol and she takes her private key and the decrypt algorithm and gets the plain text back. So this multi-hop proxy re-encryption allows you to build this hierarchical system. And in fact, you could build a hierarchy deeper if you wanted. You could have groups of groups. So adding a device to a user is the same as adding a user to a device. You just create a transform key. So if I'm logged into one of my devices and I want to access a document, I say, hey, I've got this document and I want to unlock it. And the proxy figures out the best way to get the transformation from something that document's encrypted to, to the device that I'm using to request it. So that might be because the document was actually shared with me, my user directly, and then there's one transform between me and the user. And that will work. Maybe it was shared with a group that I belong to. So if there's a path from a group to me to my device, the proxy can take those two transforms and apply them in a chain, transform it twice and return it to me so I can decrypt it. So we now have scalable end-to-end encryption. It can handle arbitrarily large groups of users and it can handle dynamic groups of users. We can grant and revoke access to a group, to documents. And to groups in constant time. It doesn't matter how many documents, doesn't matter how many groups, doesn't matter how many users. And we got rid of the need, like, to copy private keys around if we're trying to manage multiple devices. So just one place that this could be useful is say you want to be able to protect someone's PII, personally identifiable information. And I imagine there are more than a few of you out here who have been thinking about this a little bit in the last six months or so. So in the GDPR framework, right? So if you could take a user's private data and just encrypt it to that user and then say that user is going to decide, hey, I'm going to provide consent for this company to use my private data. It's as simple as creating a transform. If the company's got a public key, maybe the company is considered to be one of these groups. I create a transform key between me and that group that will allow that group to read my data. And then maybe a couple months down the road or a year down the road, I decide I don't want that company to continue to have access to my data. I want to invoke my right to be forgotten. So I just tell the proxy service that's holding these transform keys, hey, throw that one away. And that means that that company or people that belong to that company no longer can access that if they haven't already accessed it. So that's an example of what we can do with this. So we have implemented the primitives in Scala library. We use Scala.js to generate a client-side JavaScript library. It's open source. We actually built a JavaScript SDK around it. That talks to a service that is the public key repository and the transform proxy. We've got it out there. That part is an open source, but we let people do free signups if you wanted to play around with it. The library is open source, but it doesn't have some of the things around it to do with it to make it easy to manage the keys and stuff. So now I wanted to talk a little bit about like under the hood, some of the math stuff that makes this work. I said is pairing-based cryptography and pairings are built on top of elliptic curves. So it's, you know, elliptic curves, crypto is pretty standard, but pairings are less standard. Although I did, I think I heard two or three different talks in here this weekend that we're talking about pairings a little bit. So the basic operation that pairing-based crypto is based on is that it's built on a is called a bilinear pairing or sometimes called the bilinear mapping. And that mapping, that pairing is simply a function that takes an element from some group and an element from some other group and combines them together and produces an element in yet another group. So you know, the first group, spoiler alert, might be the set of points on an elliptic curve over a prime field. So. . . a bilinear pairing, it needs to satisfy some constraints. It needs to provide some properties. I won't read these to you, but that last one in particular is important because it allows you to basically swap scalar multiples of points. And we'll see why that's useful in a second. So how we use pairings, that first group that we talk about is exactly the set of points on an elliptic curve over a prime field. The second group is related to that. It's the same elliptic curve changed a little bit. It's called the twisted curve. And it's defined over a set of points in the second degree extension of that field. And so the math for that gets a little deeper, and I won't go into that. But when you do the pairing, you produce values that are in another group, this G sub T group. And that group is not a set of points. It's actually a set of values that are the set of points. And that's the set of points that are the set of points. That's the rth roots of unity. And those values are all contained in the degree 12 extension of that prime field. So these things are basically numbers that consist of 12 different values that are between 0 and prime minus 1. So it's a big number that the pairing produces. All of these groups have the same number of elements in the group. They all have the same order. So the reason pairings work for crypto, and there might be other ways to use them, but the way that we use them is to use them in the same order. So the reason pairings work for crypto, and there might be other ways to use them is to use them in the same order. So the reason we use them, and the way most of the proxy or encryption stuff does, is it allows you, like I said, it allows you to swap scalar multiples. So if you think of a public key, it's just some generator point in your group, your elliptic curve group, times some randomly chosen private key or secret key, right? So that's just a scalar multiple of some point that you know. So if Alice and Bob have key pairs that are computed that way, they both pick the same number of points, they both pick a random secret key, they compute a public key, they send that out there to a key server. Alice can encrypt a message to Bob by using a pairing, where she takes Bob's public key and pairs it with her secret key times this generator point that's predefined in that second group of elements for the pairing. And then she takes that pairing value and multiplies it by the message, and that gets an encrypted message. So Bob can recover that by basically taking Alice's public key, pairing it with the negation of his secret key times that second point G2. I won't go into this, but basically you can prove that this works by just doing simple arithmetic rewrites. It's like, well, okay, if I rewrite the public key as the secret key times the generator point, and then I remember that because of bilinearity, I can swap these two things. And then if I get down to the bottom, I know the fact that if I pair something times zero, it basically returns one. That shows you that I do, in fact, get out my original message when I decrypt it. So this is how pairings are used to make encryption work. So I'm going to make one more side note, and then I'll turn it over to Colt to talk about the library and some cooler, a little bit less theoretical ways to use it. But a note on the security of this stuff. The security of pairing based cryptography relies on two different hard problems. The first one is that the security of pairing is not a problem. The first is the standard elliptic curve Diffie-Hellman problem that protects all elliptic curve crypto. And that problem is what keeps you from being able to recover a secret key, even though you know the public key and you know the generator point. So that's a hard problem that protects the elliptic curve part of this. The other hard problem is the straight discrete log problem. And that's what protects the pairing part of that. Because remember, the pairing produces a value that's not in an elliptic group. It's just in a field, a big field. So it's the just straight discrete log problem that protects that part of the work. Recent advances in the use of number field sieves have improved the ability to solve the discrete log problem. It's still hard, but it's not as hard as we thought it was a while ago. So in the past, we thought the kind of conventional wisdom was that if you used a 200-digit number field sieve, you could solve a discrete log problem. And if you used a 200-digit number field sieve, you could solve a discrete log problem. And if you used a 256-bit private key, the elliptic curve discrete log problem would provide you with roughly 128 bits of security. And if you're doing this discrete log problem in the 12th degree extension of that field, that would also provide you roughly 128 bits of security against the straight discrete log problem. They've been working on this number field sieve, and that improves the ability to solve the discrete log problem. And some researchers, have been grinding away on this and concluded that in like the start of this year and the end of last year, that if you have a degree 12 extension of a 256-bit prime, that really only provides you with right around 100 bits of security instead of 128. So if you want to go and tell everybody, hey, my crypto is 128 bits secure, you know, some people kind of expect that. Um, you actually need more bits in your, in your, um, your prime number in your field. And so getting back up to 128 bit equivalent security, you actually need a prime that's, um, 400. These are all estimates in the, in the computations are really complicated and involved, and you kind of have to do it for each different case. But the estimates are that you would have to have at least 461 bits in your prime in order to get back to 128 bit security for the discrete log problem. So, um, we've been playing around with this a little bit and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, and, you know, it's probably something that we, that everyone should be aware of in the future, that you're probably going to have to start bumping up the size of the prime pretty soon because of these advances. So now I want to turn it over to Colton. He'll kind of talk about the library. Sure. So, um, first, like, uh, all this code, uh, I'm just going to show basically code snippets from the transcript library. find it out. Recrypt, I mean the library itself doesn't do all the storing of transform keys and all that stuff, so everything on the slide is like, well I'm just doing this in sequence in code, but some of it would be done by servers, some of it would be done by devices, so I'll just kind of talk to that as I go, so obviously there should be private keys everywhere, and just pretend that they're on different devices for now. So who here has used GPG to try to keep secrets encrypted to different people? Almost everybody. This is a very common thing we do, IT organizations use complicated, expensive key management systems to have groups and try to make this slightly less painful, but it's really a pain in the ass. So we have Bob, he's in charge, and I'm not just saying that because he's sitting behind me, and he can't hear me. But Bob's in charge, and he's the IT manager, so his job is to keep all these secrets encrypted to his IT organization. Some keys he wants encrypted to the whole organization, some keys he wants subgroups, whatever he wants. So these are one of his groups that he's working with, and sadly for him the turnover in IT organization is high, and every day he's re-encrypting things or removing people. He's doing all this work to try to just keep the same secrets encrypted to his organization. It's taking up a severe amount of his time. So he's using GPG to do that right now, and so every time he adds somebody like Charlie here, he has to go through and do what Bob talked about where you decrypt it, you re-encrypt it to everybody, and you send it back out there. Okay? I'll go back. So Alice, brings Alice on board, same thing. I'm going to go back. So hiring is painful. Unfortunately, Alice is also a quitter, so she quit, and now he has a problem again. He has to go through and do it again. So both hiring and people quitting, it's a major ordeal. So we can solve that. So let's talk about, I'm just going to show some of the code from re-crypt here. This is Scala code. So if you've never seen it, I'll show you. If you've never seen Scala before, or you haven't read it, types are on the right side of colons, and values are on the left side. So we've got a class API that takes the random byte vector and a thing that does signing. So it's a little weird. We had to do this because we wanted to cross-compile the JavaScript. Has anybody tried to do cryptography in JavaScript? It's not great. So yeah, the problem with cryptography is JavaScript doesn't work. Crypt is, how do you get random numbers, cryptographically secure random numbers? Well, that depends on the platform you're on. Are you in the browser? Are you on Node? So we wanted to allow this to be more flexible. So this thing they pass in, this IO, you can just think of it as a function that every time you invoke it, it basically could return you a different value. So basically, anywhere you see IO, you can just replace it with a function in your brain. We won't get into IOs today, because that's not the kind of talk we're going to be talking So every time you call that, you're going to get a different set of cryptographically secure random values. And the signing is just a pair of functions, sign and verify. And we did that with ED25519, because it's fast, it's known to be secure, and we didn't want to use the same set of keys for both encryption and signing, because that's generally considered not the best practice. So we take these things because of platform nonsense. Okay. So generate key pair, it's a pretty simple thing. We basically just take the random bytes and we map them over, multiply it times generator point to create a public key. So that's pretty simple, and that parentheses syntax is just a two-tuple. Generate plaintext. So when you are doing pairings like Bob was talking about, you have to have these elements that are in different groups, and they have to be members of the groups, and they have to be roots of unity and all kinds of other math jargon, otherwise it doesn't work. So we, instead of having to push that jargon onto the user of the library, we just said, we'll just write a function that generates you a plaintext. It returns this type that says it's a plaintext, so it is, and just trust me, that way you don't have to worry about how to generate it. So it's using that random byte vector under the hood as well. So generateTransformKey, basically this is the thing that delegates, so this is the function that delegates from one private key to a public key. Transform, that's the thing that actually, it takes a transform key and does that transformation for you. So this is the thing that like a server would do, or somebody, whoever is the proxy, and in all of Bob's terminology, the person that has access to these transform keys and the public keys and all that stuff, that would be where this runs. Encrypt, pretty straightforward, encrypting a plaintext to a public key, and decrypt. So it either returns an error message or the plaintext. So let's go through like a little sample here. So we're basically going to go through the sample that we were talking about earlier. We were talking about Charlie and Bob and Alice and this IT type organization. So this is basically just generating two different key pairs over here. So Bob's key pair and the IT group's key pair, the reason I wrote it out at all, because key pair generation is boring, is because it's really important in the scheme to remember that groups. Groups and users are really the same. So users can be treated as groups, groups can be treated as subgroups. So public private keys, and especially with our system, you can use these things for many purposes and you can delegate to people, you can delegate to groups, you can, there's all kinds of fancy stuff you can do. So don't get stuck in your brain about like, oh, well, this is a user key, because you can treat it as a group. Okay. So encrypting a value to... Okay. So we have a group, an IT group. I mean, our goal with this library is to make the public API as simple as possible. Anybody who's used OpenSSL or any other cryptographic library is god awful to try to figure out what's going on. You're passing in mutable values that they're gonna fill out and pass back. It's just bad. We want it to read exactly like the pseudo code algorithm should read. So here we just generate a plain text. We encrypt that plain text and yield the encrypted value. Okay. So it reads like pseudo code and we're encrypting to the group public key. And so a little note about signing keys, I kind of pointed out earlier, but because we did the signing keys separate from our keys, we use ED25519, that means we pass in these signing keys to detect if somebody's screwed with the encrypted values. So it makes the API a little messier. But I think it's still pretty straightforward. So another thing to note here is that this encrypted value never has to change ever. You can put it on the blockchain, you can put it in a database, you can put it in Kafka, immutable key value stores, whatever you want to do, you can do that and you never, ever, ever have to change this encrypted value. So no matter who you want to share it with or add to the group later with, you never have to change that. Okay. So we hire Charlie. So we generate Charlie's key pair. So that would happen on her device. So that piece would happen on her device. And then Bob takes her public key and he just generates a transform key from the IT group private key to Charlie's public key. And that's it. So he generates that transform key and he sends it off to the public key repository that's holding onto all this information. So now we have... Basically, this is how Charlie gets added. To the group. She's now in the group. So hiring again, just to show that it's the same, no matter what, Alice, the same thing. She generates key pairs, you generate a transform key and you send it off. So this is what you would call adding her to the group. It also doesn't matter how many documents are shared with the group. This operation is constant time, just the one thing, doesn't matter how many millions of AWS secrets you have. Okay. So it's encrypted. It's encrypted. But what if Alice quits? Sorry. What if Alice wants to decrypt this? Sorry. So Alice comes in and basically needs the transformed value. So this transform function that's happening at the top, that would happen on the proxy server. So we'll just pretend that that has happened there and then the transformed data would be sent back to Alice and her request. Okay. So the important thing here is that the transformed data and the original encrypted data have the same shape. That's what Bob was talking about when he was talking about multi-hop. So if you wanted to transform that data again, you could take that transformed data and transform it again to give it access to a device or give access to a subgroup or whatever. So it's important when you look at the... Like, I put all the types on the left side there, but that encrypted value is the same thing we got out of the encrypt function. So it could be encrypted or it could be already one step transformed and you could do it over and over again. So if Alice quits, we don't need to do anything special. All we need to do is just forget her transform key and we just walk away. Now, that's what a lot of people are starting to call this, like... Crypto shredding or cryptography erasing things. All these terminology that just means, well, they can't decrypt it anymore. So I don't know why this is, like, a new thing that we're doing as an industry, but I guess we are. So as you can see, like, this API is, like, super approachable. There's nothing crazy here. So if you're at all interested in this, we have a ton of property-based tests in our core API tests on the GitHub repo, and it goes through, like, two and three and four level re-encryption steps with different, like, devices and subgroups and all kinds of augmentations of keys, and there's some really neat stuff that you can do there. If you have any questions at all, like, feel free to open an issue, say, like, it's not clear what's happening in this test case or what about this other thing that I'd like to do. I'm wide open to, like, answering any questions on that, but I think the property-based tests give a pretty good overview of that. So what else? Like, Bob mentioned quite a few of these things, but just to bring it back around again, multi-hop proxy re-encryption is super, super, super cool because you can treat users as groups and groups as subgroups, and there's just really no limit to the things you could do with that kind of stuff. Every hop makes things slower. So that is one thing that happens when you do all these transformations, obviously you have to unroll them, like, math isn't free. So that's a struggle there, but it's really some pretty, there's some pretty cool stuff you could do. And he mentioned the GDPR, which is a big deal. So the right to forget and being able to just say, like, oh, well, we quote unquote crypto shredded this data and we can't unlock it anymore. So we forgot who you are. Like being able to do that in a constant time, instead of, you know, sending your IT guy off to just like search through databases for three days, like that's, that's a, that's a game changer in my opinion. Key rotation could also be encoded with an extra hop. So if you wanted to say like, oh, I want to like get a new key, you could make your old key just delegate to your new key and you could not have to re-encrypt all your old data. There's some caveats there, but we'll deal with that later. We'll just, we'll leave it at that. So it is all out there on GitHub. So we just open sourced it pretty recently. It's only on the JVM and in JavaScript. So it's pretty limiting as far as platforms are concerned, but we have some other stuff coming that's pretty exciting, but we're not quite ready to talk about it yet. It's also not that fast yet. We have a benchmark thing in your, in the repo, so feel free to clone it and like see the benchmarks. But it certainly could use some work there while working on it and are open to any suggestions or anything like that. And really managing the groups, managing the public keys, managing the transform keys and identities, like that's where the struggle comes in here. I showed the code and the code is super simple, but like all the, all the identity management is really the, the harder part of this in terms of, of, of getting it right. So. With that, questions. I actually have two questions. The first one is about the transform key storage. As far as I can tell, mathematically speaking, possession of the transform key and the destination private key is equivalent to holding the original private key. Because once you have them both, you can just transform and decrypt. So I was wondering if you could talk about that a little bit. So you clearly need to store these transform keys in some way that's secure. You know, you don't want somebody who, you know, has a transform key issued, breaks into the proxy server, takes the transform key, and then you can never revoke them. So, I mean, is there any plan to implement this on secure hardware, secure elements, things like that, so that a proxy can securely store these transform keys? So, yeah, if you have the private key of the person that has been transformed to, and you have the transform key, you're right. Like that's, you know, it's, it's, it's a very, very complicated thing to do. That's equivalent to having, like, access to all the data. The transform key is only, is only stored in the proxy, but you're right. You could break in there. We don't have plans to do anything special there, at least not in the very near future. It is basically the compromising of multiple systems, including, you know, their device. And that could actually be revoked. We can use some key augmentation tricks to make sure that, that values that are encrypted to a certain user can't be unlocked by their private key and can only be unlocked by devices. And that's something I didn't get into here. But I think, I guess the short answer to your question is no. And, yeah, that's, that's a problem, but not as big a problem as... The other question I had was, so the issuance of the, you know, the, you know, the, you know, the issuance of transform keys requires the private key. Is it possible to use the same trick to delegate that authority so I could use my private key to generate a transform key that I then transform into another transform key? I'm sorry if your head explodes. No, I'd have to think about that a little more. Let's, yeah, let's talk about... I'm just thinking of a group of people that are the admins, you know. So that might be possible. But I think a lot easier approach than that. And one that we haven't implemented, but we're going to, is basically doing a key splitting idea. So if I've got a group of admins that have a, you know, that have access to the private key for a group, and it's an important group like the IT group for my organization, I take that private key and I basically split it M ways. I've got M employees and then I require that, you know, some subgroup of them that's more than one have to work together to put the key back together before they can use it. I think that's a... accomplishes maybe not exactly the same things, but close to the same things. And it's a significantly easier thing to think about in your head, so. Thanks. Thank you for the amazing tool and talk. Thank you. Thank you. I have some questions about the performance of this proxy server as it is applying these transform keys, because it can't give out the transform key. So when doing this transform, that would basically... That's a computationally expensive operation, correct? Yeah. Would there potentially be any downsides to taking a play out of GNU PG, this book, and doing the initial encryption with a symmetric key that is very fast, and then only doing a transform on the encryption of that subgroup? That's what we're doing. Yeah. I mean, this is envelope encryption. So, like, the only thing we're encrypting is the AES key. Oh, cool. Okay. So... That makes it moot. But you're right. The transform is expensive. So, I mean, the performance of the library is not where we want it to be. But, you know, we're focused on making it faster and working on that. And there's another thing that the proxy server can actually cache those transform values. If it wants to. Because, I mean, every time it asks for one, I mean, it's gonna get... Well, not quite the same answer, but almost the same answer every time. So you could actually cache those if you were worried about performance. You could cache the transform value for some period of time if somebody was just asking over and over and over again for that same value. That was my next question. Thank you. Any other questions? All right. Thank you.