News for hackers. Stuff that matters.
Re:The Moral Character of Cryptographic Work (2015) by klabb3 on Thursday July 27, 2023 @11:24PM (#36902835)
Agree with the general point. It’s one of few subfields which is about reducing “interop”, or what is allowed to be done within a system. Auth(n,z) are also in that domain, yet perhaps not academic fields in their own right.

Interestingly, this is also true for DRM, which is also political but does not protect individuals, generally. So restricting what “can be done” as a political expression depends on the “for who?”, even if the tech itself is inanimate and neutral.

Re:The Moral Character of Cryptographic Work (2015) by PerryCox on Thursday July 27, 2023 @11:57PM (#36902989)
This is a very realistic take on the subject. From an academic perspective it is a tool to be used as any other and gaining knowledge on how to better protect data is worthwhile and provides value to humanity as a whole.

DRM is one use that does not favor consumers, on the other hand we have encryption being used in apps like Signal to provide the same high quality software to every day consumers.

I'm very interested in quantum computers, specifically ones powerful enough to break AES and other types of modern encryption. What will that mean for humanity and individuals?

Re:The Moral Character of Cryptographic Work (2015) by thiagoharry on Friday July 28, 2023 @12:22AM (#36903086)
As far as I know, there are no known quantum attacks that break the security of AES. It is unknown if they are able to turn AES insecure, like they do to RSA and discrete logarithm problems. And there are several post-quantum candidate alternatives to replace RSA and crypto algorithms that would break under quantum attacks.

Quantum computers break several security assumptions. But not all of them and we usually can replace the broken assumptions. Discovering that P=NP, or that one-way functions do not exist, on the other hand, would imply that several secure cryptographic constructions that we want to use are in fact impossible and would be a much scarier discovery.

Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @02:10AM (#36903539)
Practical P=NP is a very real possibility (I am just testing a new algorithm) and (IMHO) not that scary. I am of the opinion that the advantages of P=NP far outweigh the disadvantages. People tend to focus on the latter, because that's the world we currently live in.

Even if we focus on crypto only, from the perspective of people being oppressed around the world, it would be far better for them to be able to see what is being done by the powerful publicly rather than not. This is essential for transparency, which is essential for democracy.

I don't reject the ideals of e.g. https://en.wikipedia.org/wiki/A_Declaration_of_the_Independe..., but I believe that the technological solution through cryptography is not tenable, and if we got rid of cryptography, it would actually level the playing field.

Re:The Moral Character of Cryptographic Work (2015) by GTP on Friday July 28, 2023 @03:05AM (#36903827)
I'm not sure whether I agree or not, as without cryptography the only way to have a private discussion with someone, which I think is equally important to transparency, as people usually are "transparent" about personal stuff with close friends/family members only under the condition that other people don't have access to the information, would be to have such conversation in person behind closed doors. Which it isn't always easy, think people living far apart. Consider also that having no cryptography isn't by itself enough to have a transparent government: they can still lock important documents in a physically secure place and have a long jail sentence as a deterrent for people thinking about leaking them.
Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @03:45AM (#36904060)
> Consider also that having no cryptography isn't by itself enough to have a transparent government: they can still lock important documents in a physically secure place and have a long jail sentence as a deterrent for people thinking about leaking them.

But here you say that: Security can depend on social contract and not technology. But the same argument can be applied to your original objection. We can mandate (in the social contract) that people have the right to privacy. (And there are some analogs where we do that, for example, we could have Gattaca-like dystopia where people's access to health care is based on genetics, yet all developed countries have a ban on such discrimination.)

I think it's far more dangerous that the government or adversary is technologically capable of being non-transparent than if ordinary people don't have capability to be non-transparent. It's because I believe power ultimately thrives on information asymetry, and the encryption only amplifies this asymetry.

Re:The Moral Character of Cryptographic Work (2015) by red1reaper on Friday July 28, 2023 @06:43AM (#36905069)
I am going to be pedantic as i am perfectly aware that you do not mean it this way but here we go:

> Security can depend on social contract and not technology.

Social contracts are technology, laws are technology, law as a concept is technology, Society is technology.

Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @02:23PM (#36911054)
If you really want to be pedantic, you should recognize there is a difference between technology as implemented (the social contract as it's implemented now) and choice of technology (all the different ways how the social contract could be different, reflecting history and geography).
Re:The Moral Character of Cryptographic Work (2015) by kientuong114 on Friday July 28, 2023 @08:14AM (#36905735)
> It's because I believe power ultimately thrives on information asymetry, and the encryption only amplifies this asymetry.

Quite the opposite, I find. In fact, the government has the infrastructure and political power necessary for surveillance of people. The reverse is definitely not true. Regardless, assume you are in an authoritarian state with a powerful state police: how would you even attempt fighting it if you do not have a way of coordinating with the other people being oppressed? How can you trust communications if the government can interfere?

Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @02:14PM (#36910921)
I simply don't believe that in an actual authoritarian state, private (Internet) communications are a neccessity for fighting back. I was born in Czechoslovakia, and if I look at what actual dissidents did, it seems that once your goal is to fight back, you just have to get used to that you're gonna be surveilled no matter what. Because if you want to convince many others that the system is oppressive, you will have to make yourself known. Vaclav Havel discusses some of the strategies in the Power of the Powerless, and it also goes to Gramsci, who observed that it's mostly ideology that keeps the systems of power.

I think privacy is important in democracy, but if you're taking on an authoritarian state, that some police knows what you had yesterday for dinner, that's the least of your problems.

Re:The Moral Character of Cryptographic Work (2015) by eru on Friday July 28, 2023 @03:14AM (#36903889)
Sorry, this sounds like serious crackpot territory.

Btw, if your polynomial algorithm for NP is any good, you should be able to break any encryption at all. The problem of breaking cryptographic systems is typically inside of both NP and co-NP. That intersection is suspected to be substantial smaller than NP by itself. (Of course, if it all collapses to P, that wouldn't make a difference.)

Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @03:31AM (#36903971)
If everybody considers P=NP a crackpot territory, then it will never happen, by definition. On the contrary, I think to believe that the sets described by NP-complete instances are somehow inherently "undescribable" (as is implied by naturalization) is crackpottery also.

But regardless, it's important to realize that modern cryptography relies on a hypothesis. It might be effectively true for now, but it might not in the future.

> Btw, if your polynomial algorithm for NP is any good, you should be able to break any encryption at all.

In theory, yes, in practice, there is a pretty big difference between "I think I just discovered how to do Gaussian elimination to solve linear equations" and "I can routinely solve sparse linear systems with millions of variables". Historically, it wasn't done by a single individual in a span of couple years.

Re:The Moral Character of Cryptographic Work (2015) by eru on Friday July 28, 2023 @04:07AM (#36904188)
> If everybody considers P=NP a crackpot territory, then it will never happen, by definition.

Oh, sorry, that's not what I meant to say. To be less vague, 'Practical P=NP is a very real possibility' is fine. 'Practical P=NP is a very real possibility (I am just testing a new algorithm)' is crackpot territory.

> But regardless, it's important to realize that modern cryptography relies on a hypothesis. It might be effectively true for now, but it might not in the future.

Different parts of modern cryptography rely on different sets of hypotheses. Eg the discrete logarithm problem being hard for some specific groups is one popular hypothesis.

> In theory, yes, in practice, there is a pretty big difference [...]

That's a valid point, but to make that point the approach you defend has to be more mathematically rigorous.

Basically, if you say '(I am just testing a new algorithm)', then that algorithm better be fast in order to convince anyone. Otherwise, you say something like 'I'm working on a proof for my new approach.' or 'I'm working proving sub-exponential runtime for a new algorithm'.

Ideally, if you don't want to be a crackpot, it helps to be well versed with the literature, and what has been done before and why it does or doesn't work.

(The former is especially important, if you want to claim you have a new proof for P != NP, because researchers have already formally ruled out lots of different approaches; so you better be able to explain why your approach does not fall under any of the ones that have already been proven not to work.)

Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @04:19AM (#36904245)
> Oh, that's not what I meant to say at all.

I see. I didn't really wanted to claim anything (or much) in this respect. I am working on a "candidate algorithm", that I believe could be in P with low degree (o(n^8)). (And if it's not in P, I think it will be very useful to understand WHY it is not; that's one of several reasons why I am testing it.) The reasons why I believe it's in P are complicated (I would have to describe the method), and I didn't wanted to go into that. Still, that's why people should take P=NP as a real possibility.

AFAICT my approach is novel, but if some expert genuinely wants to help me understand where it is not novel, I will gladly explain how it works.

Re:The Moral Character of Cryptographic Work (2015) by eru on Friday July 28, 2023 @04:39AM (#36904335)
OK, that sounds a lot more reasonable.

I'm assuming you are working on solving some NP-hard problem?

> And if it's not in P, I think it will be very useful to understand WHY it is not; [...]

Yes, that's a good approach!

Btw, I spent quite a few years on and off trying to resolve the following question https://cstheory.stackexchange.com/questions/41251/simulate-... "Can you 'simulate' a heap in linear time?"

I would have been equally happy to find an algorithm that works in linear time, or to prove that it's not possible.

Last year I finally found the linear time algorithm.

> AFAICT my approach is novel, but if some expert genuinely wants to help me understand where it is not novel, I will gladly explain how it works.

I'd be happy to take a look.

Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @03:27PM (#36912003)
> I'm assuming you are working on solving some NP-hard problem?

Yes, my choice of the problem is 2XSAT, which is a SAT class whose instances have clauses from 2-SAT and XORSAT. I proved (and I think that's where it becomes novel) that this class is NP-complete. This leads me to believe there is a clever generalization of polynomial algorithms for 2-SAT and XORSAT, and that's the subject of my interest.

The trouble is, algorithms for 2-SAT and XORSAT are wildly different. My first attempt to unify them, half a year ago, has failed. Since then I have made a lot of progress on the theory; now I have another candidate algorithm which generalizes them, and I am about to test it.

> Yes, that's a good approach!

I know, but it gets even better. I roughly follow what Krom did with 2-SAT in 1967. And it turns out, even if your attempt at polynomial algorithm turns out to be incorrect, the character of the exponential blow-up gives you at least some hint of what you need to fix.

> I'd be happy to take a look.

I wish I had written more on it, but the research got priority. For two months now, I am sitting on blogpost draft that outlines 2/3 of my strategy, as well as half of a proper paper; I was waiting if I can somehow conclude with a candidate algorithm, but I don't really have yet that written down in a formal way (it's new so some understanding needs to happen). I'll probably publish the blogpost as it is, and the actual algorithm (if the test implementation works out reasonably well) later as another blogpost. If you're still interested, I will send you an email when I publish the first part, probably this weekend, and you can tell me what you think.

Re:The Moral Character of Cryptographic Work (2015) by eru on Friday July 28, 2023 @09:25PM (#36915776)
Yes, I'm interested. There's an email address in my profile here.

My academic background is more on linear optimisation (and integer and combinatorial optimisation), but looking more into the various flavours of SAT would also be interesting.

Re:The Moral Character of Cryptographic Work (2015) by noitpmeder on Friday July 28, 2023 @03:24AM (#36903940)
This is an insane take. If encryption is broken I _guarantee_ that the public will still be as in-the-dark as they are now. The government (and telcos) are the only ones who control the infrastructure needed to inspect this kind of traffic.
Re:The Moral Character of Cryptographic Work (2015) by js8 on Friday July 28, 2023 @03:58AM (#36904138)
I am not suggesting that, in an encryption-free world, the advantage for the public is in being able to inspect all government traffic. Rather, it makes it easier for whistleblowers to bypass the government protections and get relevant documents that cover some atrocities.

I really like Assange's essay on the topic, where he describes that every big operation requires a sort of paper or document trail (which is used to coordinate many people), and this fact makes whistleblowing always an option.

However, I believe, encryption (and related things like trusted computing) helps to minimize the exposure of this trail even to internal actors, and in doing so, it makes whistleblowing more difficult.

Re:The Moral Character of Cryptographic Work (2015) by tialaramex on Friday July 28, 2023 @05:02AM (#36904481)
Grover's Algorithm gets you effectively a square root difficulty improvement. So, AES 256 is "only" as strong as a 128-bit symmetric encryption if you have equivalently cheap quantum computers.

Even ignoring that we don't currently have any usable quantum computers and there's no reason to believe they would be affordable, let alone cheap, this mean AES-256 is fine.

Re:The Moral Character of Cryptographic Work (2015) by less_less on Friday July 28, 2023 @07:19AM (#36905312)
Grover's algorithm is not quite as powerful as popularly described. In particular, it (roughly) divides the number of times you need to run AES by the number of times you run it sequentially. So it effectively square-roots the time requirement rather than the difficulty, and those are very different if the attack is parallel.

Eg if you were planning on breaking AES-128 by running 2^30 cores for 2^98 AES calls, it now only takes about 2^49 calls per core (2^79 total effort) plus the overhead of Grover's algorithm itself. There are also huge overheads from running everything on a quantum computer, some of which are theoretically avoidable (100x cost for error correction; gates take one clock cycle) and some of which are probably not (you must rewrite AES so that all computations are reversible). So breaking AES-128 might eventually be feasible, but AES-192 probably would not be.

There is a theoretical barrier against efficiently parallelizing Grover: all generic quantum brute-force algorithms (the kind that would work against a random function in a black box) require Omega(searchspace / depth) queries, at least for some model that may not quite match reality. (Edit: Omega and not O, since it's a lower bound)

Of course, AES isn't a random function in a black box, so there may be better attacks against it, but I'm not aware of any.

Re:The Moral Character of Cryptographic Work (2015) by matheusmoreira on Friday July 28, 2023 @03:26AM (#36903950)
Remote attestation is another example of cryptography favoring corporations at our expense. It provides cryptographic proof to corporations that their user hostile software has not been defeated or otherwise tampered with.
Re:The Moral Character of Cryptographic Work (2015) by klabb3 on Friday July 28, 2023 @06:36AM (#36905028)
Yes I should maybe have included it. But to me, that just seems like newspeak for DRM that poses as security.
Re:The Moral Character of Cryptographic Work (2015) by matheusmoreira on Saturday July 29, 2023 @12:24AM (#36916896)
Attestation can be considered a good security feature if we own the keys to the machine. Some PCs let us use our own keys in secure boot. For the people who use it, this absolutely enhances security without sacrificing any freedom. What's unacceptable is corporations using the same technology to protect themselves from the users of the computers.
Re:The Moral Character of Cryptographic Work (2015) by ntrebius on Friday July 28, 2023 @01:24PM (#36910205)
Don't forget that you can also remotely attest a server... in which case you can get guarantees on how a corporation is manipulating your data. For instance, you could make sure that your data is reasonably secured and not shared with third parties. So I don't believe remote attestation in itself favors corporation, it really depends on how and where you make use of it.

Sadly the adoption of "trusted computing" on the server side has been slower than expected. Maybe because of lack of user pressure? Also my guess is that most companies prefer not to be too transparent regarding how they process our data...

Re:The Moral Character of Cryptographic Work (2015) by matheusmoreira on Saturday July 29, 2023 @12:20AM (#36916868)
> So I don't believe remote attestation in itself favors corporation, it really depends on how and where you make use of it.

This is true but also ultimately irrelevant. The truth is these corporations have all the leverage and they use it to force us to accept those terms. If you can get a business to give up its limitless power over their servers via remote attestation, you're probably a business with leverage yourself. We mere mortals don't enjoy such privileges. To them, we're cattle to be herded and monetized.

These days apps will not even start up if they detect anything out of the ordinary. I can't exactly choose not to use my bank's app and it refuses to run even if I so much as enable developer mode on my phone. I used to be able to hack these things and use them on my own terms if I cared enough. Now the remote service will refuse to interoperate unless they get cryptographic proof their hostile software is running unmodified.

It's all about who owns the keys to the system. If we do, it's good. If they do, it's bad. The paper explains it really well: "Cryptography rearranges power: it configures who can do what, from what." These corporations are using it to systematically reduce our power and increase their own. The reverse should happen: they should be completely powerless and we should be omnipotent.

Re:The Moral Character of Cryptographic Work (2015) by dirkc on Friday July 28, 2023 @03:28AM (#36903958)
> even if the tech itself is inanimate and neutral

I've come to believe that no tech is neutral. Some tech allows more variety in the politics surrounding it, while other tech has a very narrow range or politics - like DRM.

Re:The Moral Character of Cryptographic Work (2015) by hiatus on Friday July 28, 2023 @07:37AM (#36905434)
Interesting, could you expand on your view about the range of politics afforded by technologies? Specifically, your mention of DRM was intriguing. While I personally dislike DRM applied to consumer devices and content, I think there are applications of digital rights that are less objectionable, like ensuring the integrity of medical device firmware deployed in a hospital.
Re:The Moral Character of Cryptographic Work (2015) by dirkc on Saturday July 29, 2023 @09:17AM (#36920011)
It depends on the technology in question, but most development has some agenda that drives it or that is enabled by it. Simply engaging in the development of tech is already pushing an agenda - the notion that we should pursue technological advancement.

For me the important realization is that I'm not being neutral when creating something - at best/worst I'm being ignorant. I'd like to reflect more on my motivations for building things and be more explicit on my motivations for doing so.

Re:The Moral Character of Cryptographic Work (2015) by BSEdlMMldESB on Friday July 28, 2023 @08:16AM (#36905756)
but is DRM a 'technology' or is it something more specific?

if computers are a technology, then DRM is an specific application of it???

ugh, I just destroyed my own understanding

Re:The Moral Character of Cryptographic Work (2015) by Nasrudith on Friday July 28, 2023 @12:32PM (#36909396)
I've come to a view that is an antonym personally whose difference is oddly semantic. The tech is neutral in itself but people can make absolutely anything political. There are no real constraints on sanity. They can make needing to eat and drink to survive political because admitting the obvious contradicts 'great leader'.
Re:The Moral Character of Cryptographic Work (2015) by klabb3 on Friday July 28, 2023 @02:33PM (#36911192)
Yes you could put it that way. A sorting algorithm has very little impact on politics whereas say fingerprinting or encryption can be leveraged for political purposes.

DRM (and it’s hipster cousin “remote attestation”) stands out as being exceptionally political because it relies on the hardware to be controlled by a different actor than its owner and operator. Similar to “tamper-proof” physical objects, from the old days.