5 ms·
Asymmetric encryption. The private key does not have to be stored in the balloon at all (only the public key that can encrypt but NOT decrypt), it can stay safe
by nnx 4y ago
Asymmetric encryption. The private key does not have to be stored in the balloon at all (only the public key that can encrypt but NOT decrypt), it can stay safely in a PLA datacenter in China.
- tomp 4y agoDoes anyone actually use asymmetric encryption to encrypt data? I thought asymmetric encryption was just used to encrypt the symmetric key used to encrypt the data…
- tsimionescu 4y agoIt's typically too slow for significant amounts of data, but there's of course a trade-off to be made.
- jhugo 4y agoThis is basically an optimisation — asymmetric encryption is more resource-intensive. But for relatively short, fire-and-forget type messages (e.g. GPG-encrypted email), encrypting directly with the public key is fairly common.
- funnymony 4y agoRsa encrypted content size limit depends on the key size, which does not scale well. Is GPG not a subject to this limitation?
- jhugo 4y agoI was wrong regarding GPG — see my sibling comment to yours! Direct use of asymmetric encryption is still feasible for short messages where performance is not as much of a concern, though.
- jhugo 4y agoThe mention of GPG-encrypted email in my above comment is actually wrong: even GPG generates a symmetric key, encrypts that with the public key of each recipient, and encrypts the actual message content with the symmetric key. As well as improving performance, it makes it possible for each recipient that a message was encrypted to, to be sure that the other recipients received the same message. https://security.stackexchange.com/questions/74412/why-is-gpg-encrypted-message-size-not-proportional-to-number-of-recipients-fil https://security.stackexchange.com/questions/74412/why-is-gp... has a demonstration: echo 'foo' | gpg --recipient a4ff2279 --recipient d745722b --encrypt | LANG=C pgpdump Old: Public-Key Encrypted Session Key Packet(tag 1)(524 bytes) New version(3) Key ID - 0xCC73B287A4388025 Pub alg - RSA Encrypt or Sign(pub 1) RSA m^e mod n(4093 bits) - ... -> m = sym alg(1 byte) + checksum(2 bytes) + PKCS-1 block type 02 Old: Public-Key Encrypted Session Key Packet(tag 1)(268 bytes) New version(3) Key ID - 0xDAA855623A5E68F7 Pub alg - RSA Encrypt or Sign(pub 1) RSA m^e mod n(2046 bits) - ... -> m = sym alg(1 byte) + checksum(2 bytes) + PKCS-1 block type 02 New: Symmetrically Encrypted and MDC Packet(tag 18)(63 bytes) Ver 1 Encrypted data [sym alg is specified in pub-key encrypted session key] (plain text + MDC SHA1(20 bytes))
- sgt101 4y agoI'm not a crypto geek, but that isn't my understanding. I think that the challenge is key distribution. The balloon will have been loaded with a database of keys. Perhaps they will have relatively few keys and will just rotate them, or even just use one key per mission. Better would be one key to be used for each message, or one to be used for each hour of the mission - but each key that is used will be discarded/deleted properly in the hardware of the balloon so that even if the USA gets the hardware they won't be able to find the keys for old messages. Using the keys to encrypt/decrypt is easy - no more computationally intensive than using RSA keys for sure. If you don't have the key and the scheme is vaguely sensible.... and the keys are generated in a secure way then I really really doubt that they are at all crackable. The encrypt/decrypt scheme is more or less arbitrary (just a sequence of transforms using the message and the key known to each side), the keys are vast random strings. In civi life the challenge is distribution. Keys are literally carried from place to place in briefcases to enable high speed super secure exchanges of information, but the bag carriers can be paid off and threatened, the folks at each end of the exchange can be paid off and threatened. If the GRU, CIA, Mossad want to have these keys you will really have to spend big to stop them. If you are the Chinese military you have guns and the death penalty to prevent the CIA from getting your keys. There is a lot of interest in Quantum Key Distribution where it's possible to tell if the "bag" (a sequence of photons) has been "opened" (read) due to quantum effects (you can tell if it's been measured I think - but my physics is shaky here). This has the advantage of being very very fast and cheap per message - but a special infrastructure is required to do the transmission, which is not cheap. I am out of touch with this now but I think that you need a dedicated loop of fiber and special repeaters at 50km intervals. Most problematic is that the compromise vulnerabilities are still there. If the GRU/MI6/Mossad can interfere with with the folks putting the keys onto the system, or reading them off the system then they still have your keys.
- jhugo 4y ago> I'm not a crypto geek, but that isn't my understanding. I think that the challenge is key distribution. The balloon will have been loaded with a database of keys. Perhaps they will have relatively few keys and will just rotate them, or even just use one key per mission. Better would be one key to be used for each message, or one to be used for each hour of the mission - but each key that is used will be discarded/deleted properly in the hardware of the balloon so that even if the USA gets the hardware they won't be able to find the keys for old messages. If asymmetric encryption is used, it doesn't matter much in this context if the USA gets the keys; they can only use them to encrypt new messages, not to decrypt old messages. This applies whether the keys are used directly to encrypt messages, or if the keys are used to encrypt ephemeral symmetric keys that are themselves used to encrypt messages and then discarded.
- danenania 4y agoRight, the question is how safe are those datacenters.