5,982 karma · joined Apr 20, 2018 (8y ago) · 1,603 submissions
I no longer have access to this account. If you want to reach me for past comments, you can do so at throwawaymathhn@gmail.com.
comment 7y ago · link · parent
First, under "The Full Security Picture" heading in this article, it's claimed that forward secrecy is supported via time-based exploding messages. Pages 19 and 20 of the NCC report explain that, "The default chat protocol does not allow for forward secrecy since the same keys can retain indefinitely on a users device." So forward secrecy is not assured by default under this chat protocol, is that correct?
The NCC report goes on to say that, "Exploding messages introduce mechanisms for message deletion and forward secrecy; however, it is not clear to the user that keys and messages could remain on their device beyond the period specified during message creation." I interpret this to mean that there is a way to assure forward secrecy - which is exploding messages - but you're not making that explicit in this announcement. This seems a little disingenuous to me because in your FAQ, the first answer criticizes Whatsapp for compromising forward secrecy using the backup feature, but you don't have forward secrecy enabled by default in your chat protocol.
Likewise, this announcement makes a point of mentioning how other apps require you to trust the server due to resets, and why trusting the server is bad. But page 20 of the NCC report explains that, "While the default Chat encryption protocol does provide for message confidentiality and integrity, it does not provide for security in the face of device and server compromise, as keys and ciphertext are stored for a potentially indefinite period of time." So is it correct to say that unless users specifically enable exploding messages for their conversation (which is not the default), they actually do need to trust the server?
There are also a few drawbacks to the ephemeral messaging scheme NCC found that I think should be explicitly disclosed, because they don't require too much technical detail:
1. There is no deniable authentication on the default chat protocol. While exploding messages provide deniable authentication, this property fails in a group with more than 100 participants. It's fair to question whether that's a realistic place to expect deniable authentication, but it should probably be called out.
2. Exploding messages are based on the local client's system clock. Therefore it's possible for an exploding message to be indefinitely retained on another device by e.g. manipulating the local time.
___________________
1. https://keybase.io/docs-assets/blog/NCC_Group_Keybase_KB2018...
comment 7y ago · link · parent
In other words - you don't need to be affiliated with Signal to be in favor of open sourcing the server-side code. It's a fairly common complaint on HN, and I can see why it was the top comment for a while even if I don't ultimately agree with the need to open source the code. Likewise, if you look at the link to the GitHub issue you can see many other people likewise asking for - or reacting to responses to - open source the server code.
Do all those people have conflicts of interest? Is it possible that the affiliation with Signal doesn't matter here? Then be charitable, and let your actual reason for not fulfilling the request stand on its own.
comment 7y ago · link · parent
If you have a good reason not to fulfill the request, charitably responding to the request with that reasoning is an educational opportunity for the audience. There's just no need to bring identities into the mix like this, and I think a dispassionate response outlining why the server need not even be trusted would stand on its own.
comment 7y ago · link · parent
...
I get why you showed up here, but you're really not addressing the point of the post at all, and in fact you're trying to distract with the suggestion that Signal's publication of that code protects people from this flaw. It doesn't. At all.
Wow, that's a pretty hostile (and accusatory) response to a fair ask. This is one (small) step removed from accusing someone of shilling/astroturfing.
Let your product stand on its own merits. If you have a good reason why you won't open source Keybase's server implementation, own it. Don't undermine requests to open source the code by publicly accusing people of supporting a competing product.
The person you're replying to didn't make an argument in favor of Signal - or any other competing product, for that matter. In my opinion, your response is actively distracting from their request.
comment 7y ago · link · parent
A tensor is a multilinear map from a product of n vector spaces to another vector space. Every tensor is an element of a tensor product, which is (loosely speaking) a vector space you obtain by multiplying the dimension of two other vector spaces. So for example, the real space R^nk is the tensor product obtained from combining R^n and R^k.
To be more explicit, what you're doing is obtaining a new n by k matrix for every pair of vectors of R^n and R^k. In other words, take the Cartesian product of R^n and R^k. Then take every possible pair of vectors of the Cartesian product and combine them to form an n by k matrix. Now you have a tensor product, and each individual element of your tensor product is a tensor.
Going back to the abstract: a monoidal category is a category C of objects equipped with a functor defined ⊗: * C x C -> C*. If you take the category of vector spaces or the category of modules (like vector spaces, but defined over rings instead of fields) and define your monoidal functor to be the tensor product, you turn them into tensor categories.
Monoidal categories actually sit at a higher level of abstraction than tensor products, so I don't agree this makes monoidal categories less confusing. In fact it diminishes the abstraction of monoidal categories by forcing you to think of the monoidal operation as the tensor product instead of something which is more general.
On the other hand if you're familiar with (and prefer) the computationally-oriented definition of tensors as multidimensional arrays, this framing of monoidal categories might ground them somewhat so they're more accessible.
comment 7y ago · link · parent
A tensor isn't actually a multidimensional array, just as a linear map isn't actually a matrix. Defining tensors as the multidimensional abstraction of scalars, vectors and matrices to n indices is anti-pedagogical, though regrettably common because it's computationally useful. Learning tensors this way is like learning linear algebra primarily by doing matrix multiplication. It hollows out all of what's actually going on by focusing on notation and symbol pushing.
What you're comparing here is the heavily symbol-laden, notation-encumbered definition of a tensor with the elegant abstraction of a momoid. If you'd like to compare them on the merits of their abstraction, an alternative definition of "tensor" would be better. The object is not its representation.
For example: a tensor is a multilinear map between a product of vector spaces and another vector space. So T: V_{1} x V_{2} x ... x V_{n} --> W is a tensor. Furthermore, every tensor T is itself an element of a tensor product. An example of a tensor product is R^{nk}, which is the nk-dimensional real space you obtain by taking the tensor direct product of the n- and k- dimensional real spaces, R^{n} ⊗ R^{k}. In this way the tensor product is an abstraction of the familiar Cartesian product in which the dimension of two spaces is multiplied instead of the cardinality of two sets.
This definition makes it easier to understand why the objects of a monoidal category can be considered tensors. A monoidal category is a category C where the functor ⊗ is defined such that C x C --> C. Note the similarity of this definition with my alternative definition of a tensor - no multidimensional arrays are required! You're just moving up one level of generality from linear maps and Cartesian products.
Technically speaking, the monoidal category functor is actually an abstraction the tensor product, the way the tensor product is an abstraction of the Cartesian product. Whereas many monoidal categories admit a Cartesian product, some monoidal categories (like the category of vector spaces) admit a tensor product.
Edit - Sorry for the bracket notation used in subscripts and superscripte, I was thinking in LaTeX...
comment 7y ago · link · parent
_________________
comment 7y ago · link · parent
If the person you're replying to is a junior or senior undergrad in a math major they might be alright (presumably they'll have taken analysis by then). If not, Topology is not what I'd recommend as the first place to learn about metrics and continuous functions (Calculus doesn't cut it for that).
comment 7y ago · link · parent
Again: the team is actively considering using AES-GCM and ChaPoly in the future. I don't see anything intrinsic to either that preempts their use in Borg.
comment 7y ago · link · parent
1. Borg's authenticated encryption is a composition of AES-256 in CTR mode and HMAC-SHA256 (or alternatively, Blake2b256). This consists of two distinct constructions. Most cryptographic vulnerabilities are introduced in the combination of distinct primitives and constructions. While combining AES-CTR and HMAC is a way of doing authenticated encryption, it's not the safest way. As a specific example - in order to avoid introducing a nonce-misuse vulnerability, Borg needs to implement specific logic beyond the construction to ensure that the CTR counter (containing a randomized nonce) is not reused. This kind of overhead is dangerous because it adds a lot of room for a developer to make a fatal mistake.
It would be much better to use a dedicated authenticated encryption scheme, like AES-GCM. AES-GCM is a more complex construction, but it also has very convenient interfaces and language bindings which obviate the need for developers to interact with raw primitives and constructions entirely. You don't need to implement AES-GCM so much as call its seal and unseal operations from your language of choice. There's far less room to footgun yourself here. The even more modern method would be to use something in the ChaPoly family. For example, XSalsa-Poly1305 goes one step further than AES-GCM by using an extended nonce. ChaPoly constructions also have ubiquitous language bindings and easily used interfaces to safe implementations.
2. Borg uses OpenSSL directly. This is not great because libcrypto exposes raw primitives directly to the developer. To its credit, Borg's documentation does provide a few reasons why its use of OpenSSL is trustworthy. But those reasons are more to do with TLS implementations than cryptographic constructions. As with above, working directly with raw primitives provides a lot of room for implementation errors and avoidable security vulnerabilities. It's generally better to abstract away your cryptography implementation to a known-good, trustworthy source which you can just call via a straightforward (and opinionated) interface. For example Borg could use NaCL instead, which would provide XSalsa-Poly1305 encryption out of the box. I hypothesize they'd eliminate a few hundred lines of code with NaCL instead of OpenSSL.
That being said, I don't know if I'd call Borg's encryption "weak." It's not ideal, and I don't personally trust it. But it's not like they're using AES in ECB mode or Mac-Then-Encrypt CBC mode.
comment 7y ago · link · parent
Apple has been focused on finances for most of its existence as an entity. If it appears they have become more focused on financial success recently, I would argue that's more likely due to market saturation than it is to any categorical change in their priorities.
EDIT: Changed and removed some wording to make the tone less condescending. Sorry about that.
comment 7y ago · link · parent
That's not an issue - you just publish the backdoor. You don't need to demonstrate the complexity reduction, you just need to prove it exists.
comment 7y ago · link · parent
comment 7y ago · link · parent
We present an algorithm that computes the product of two n-bit integers in O(n log n) bit operations.
The result is excellent, and it closes (in the affirmative) the Schonhage-Strassen conjecture first postulated in 1971.
380.
Integer multiplication in time O(n log n) [pdf](hal.archives-ouvertes.fr ↗)
225 points · by throwawaymath · 7y ago · 67 comments
comment 7y ago · link · parent
I don't think this is a good characterization of Mochizuki or his Inter-universal Teichmuller theory. The vast majority of new results in both pure and applied mathematics are accepted by the mathematics community without incident - this applies to extremely sophisticated and groundbreaking work as well. For example, if you look at the work of almost any Fields medalist in the last century, you'll see that it was contemporaneously well-received.
What you're citing is one example of 1) an extremely complicated proof, 2) delivered to the mathematics community in a very unorthodox manner, 3) by an author who has demonstrated significant reluctance to refine their work to make it more comprehensible to others. This is very uncommon and doesn't actually support your point (not that your point doesn't have merit, but this just isn't really applicable).
I feel your framing of Mochizuki's IUT could be interpreted as saying that he somehow developed a robust proof which is, for a variety of reasons, not accepted by the community at large. This is not the case - his proof is not robust! There is significant evidence that it doesn't actually work. Furthermore, if your attempt at a proof does not agree with the general consensus of the mathematics community, it makes more sense to conclude that your proof is likely in error than it does to use it as an example of how proofs are subjective, and different people could require different levels of rigor. That's almost never the case in real world peer review - you're more likely to have your math paper dinged for a subjective assessment of how interesting or useful it is than because the reviewer actually finds it to in error.
I'm also going to have to strongly disagree with you in regards to Euler's proofs. Analysis as a discipline is far more mature than it was in Euler's time, but Euler still clearly proved the things we attribute to him. I'm not really sure what your expectation is here - we have more sophisticated means of articulating proofs, and likewise much more mathematical scaffolding to support new theories. But Euler's work is rigorous.
> Having known many many pure mathematicians, I believe that they don't want to use computers for the simple reason that many of them don't know how to, and thus denying the legitimacy of computer-generated (or assisted) proofs protects their livelihood/careers.
Trading anecdote for anecdote: I've never known a single mathematician who felt that computer-generated proofs posed a threat to their careers. I don't mean to call your experience into question, but frankly I'm a little shocked that this is your interpretation of their reluctance to use computers. In my experience mathematicians are loathe to use computers not because they feel threatened by them, but because they just don't need to and never learned to. That's a very different attitude!
As for my own opinion: the legitimacy of computer-generated proofs and the work of professional mathematicians are independent of each other. It would be naive to think that computer-assisted proofs would actually threaten a mathematician's livelihood. From the discussions I've had with mathematicians both in person and online (such as on /r/math), I'm fairly sure most of them would consider this idea incoherent and not actually be concerned about it. In fact, most mathematicians I know (myself included) would be thrilled to have more computer-assisted proofs available.
comment 7y ago · link · parent
You articulated something I've noticed before but never really expressed as concisely. If you have the time and inclination, you should write more longform pieces about this. I'd read them.
comment 7y ago · link · parent
What you're describing seems like it's an example of how everything eventually reverts to the mean. In this case, the "mean" point of discussion for any topic is the subtopic most people are familiar with and have a strong opinion about.
Controversial topics are much more engaging, which means threads about them attract more comments. In turn that surfaces more attention to them, from which it follows that on any given topic you're likely to see people slowly shift the discussion to the most familiar subtopic, which will generally be the most engaging (and thereby likely controversial) one.
It's a feedback cycle which sustains a meme (in the linguistic sense of the word). A majority zeitgeist is formed around an idea which is thoroughly self-propagating, because every time a topic with any degree of relevancy pops up, the discussion shifts to the meme.
comment 7y ago · link · parent
> Don't those mega billboards annoy you?
No. They don't impact my life whatsoever.
> Don't the auto playing audio/video ads annoy you?
The auto-playing ones like what you get on a news page, yes. The ones that play before a video on YouTube, no.
> You get on the subway, there are ads (and you've paid for the ticket, it is not even you are traveling free).
Don't even notice them most of the time. Sometimes they're mildly funny. Can't remember ever being bothered by one.
> You switch on the TV, there are ads.
I don't really watch TV (I guess that's a pretentious response), but when I do I just ignore the ads I'm not interested in. They don't annoy me.
> You open a bank account, the bank sells your address and the very next week you get junk in the mail.
Are you sure it's the bank doing this, and not the post office? In any case it's moving the goal posts a bit, because this is not advertising per se. It's data collection in service to advertising. I find it annoying, but not because I get junk mail. I don't find junk mail annoying, I throw it out without reading it. In fact I don't really read any physical mail.
> How is it self-righteous to expect a quiet, clutter free life/atmosphere?
Yeah but that's not the claim, is it? The person is saying it's self-righteous to constantly complain about advertising because it feels like a soapbox. In point of fact, I consider my life to be plenty quiet and clutter-free and I live in the same advertising-filled world you do.
There are legitimate reasons to dislike advertising. Sometimes ads are a vector for spreading malware, and the peripheral incentive structures are arguably unethical (particularly concerning the use and collection of consumer data). But quite a lot of complaining about advertising doesn't treat the subject with that level of intellectual engagement or nuance. Instead it's just impassioned yelling into a void about how unfair advertising is, or how unaesthetic the world is because of it.
I can see how that would become grating after a while, because on sites like HN and reddit you don't find nearly as many people e.g. crusading against climate change, disease, destitute poverty or hunger. It's actually a downvotable offense for someone to say, "Hey, I'm actually pretty okay with ads though!"
This is why the person you're responding to reacted that way. It's hard to take seriously the idea that the world is "disgusting" because of billboards. That's kind of a hyperbolic way of saying the world isn't the way you want it to be, isn't it?
comment 7y ago · link · parent
On the contrary, Amazon did not list counterfeit goods as a business risk in its 10-K filings prior to 2019.[1] It has been an open marketplace since before 2019.
That does seem to imply they only started taking it seriously as a business risk somewhat recently, which could be interpreted as hedging against reputation damage.
Otherwise I'm in agreement that there's outsized discussion of the problem on reddit and HN.
_________________________
1. https://ir.aboutamazon.com/sec-filings?field_nir_sec_form_gr...