log☇︎
70800+ entries in 0.015s
asciilifeform: ( conceivably on a box with smaller cache, there could be speedup. )
asciilifeform: same ~2sec.
asciilifeform: http://wotpaste.cascadianhacker.com/pastes/MceAy/?raw=true .
asciilifeform: bad is that apeloyee was not only right re 'no more than 10%' but in fact there is NO observed speedup:
asciilifeform: now, good noose is that it in fact worx... ☟︎
asciilifeform: or hm, there's gotta be a mistake in my test, bbl
asciilifeform: ^ represented by 'CL' in above.
asciilifeform: http://wotpaste.cascadianhacker.com/pastes/lXrJ8/?raw=true << W_Mul, for reference.
asciilifeform: there is a missing term
asciilifeform: if it worked, i'd use it in W_Mul -- but it does NOT
asciilifeform: http://btcbase.org/log/2017-10-08#1722777 << this btw does NOT work ☝︎
asciilifeform: is all you get. ( see current ffa src, it is illustrative )
asciilifeform: and large multron is made of a quantity of half-sized ones, they - half-sized again, and so on.
asciilifeform: http://btcbase.org/log/2017-10-08#1723072 << mul is not add, can't do this, the wider register costs you nonlinearly moar time ☝︎
asciilifeform: http://btcbase.org/log/2017-10-08#1723064 << gcd does not need a karatsuba, the karatsubatron can be doing something else while gcd happens ☝︎
asciilifeform: http://btcbase.org/log/2017-10-08#1723058 << which op is it that only leaks 1 of its 2 operands ? ☝︎☟︎
asciilifeform: they still got'em in mircea_popescustan?! ☟︎
asciilifeform: woah landline
asciilifeform bbl
asciilifeform: we only have gigantic integers, and single bits. that's it.
asciilifeform: not to mention that we do not have such a thing as a small integer.
asciilifeform: because go and prove that it is ALL you leaked.
asciilifeform: who wants to fuck camels, can go use openssl.
asciilifeform: no camel's nose in the tent.
asciilifeform: on leak.
asciilifeform: apeloyee: no compromises.
asciilifeform: ( i.e. every time you write down a '+' that's a minimum of 2N LUTs used up, that cannot be used for anything else, where N is the operand width )
asciilifeform: same as adder, etc.
asciilifeform: understand that in fpga 'secret shift' is NOT a function that can be 'called', but a physical object that gets instantiated, using thousands of cells, every time you use it.
asciilifeform: we're still doing constant times.
asciilifeform: how??
asciilifeform: elaborate?
asciilifeform: but you're welcome to try.
asciilifeform: ( and probably not even on pc, where it will get thrown out of cache )
asciilifeform: and doesn't even stand a chance of fitting in fpga.
asciilifeform: not if it needs 8x more temp space
asciilifeform: not even quarter mb.
asciilifeform: and incidentally i was not joking when said 32kb, it is fully my intention to eventually put whole thing on fpga where there will be certainly not even half MB of working space.
asciilifeform: lol
asciilifeform: barrett needs large scratch buffer for the mults; gcd can happen in-place.
asciilifeform: (i.e. you still win if you take 500x the cpu cycles, so long as you don't get cache-evicted)
asciilifeform: and gcd wins vs however-many trial divisions with barrett.
asciilifeform: in practice on pc speed appears to be inversely proportional to memory used, rather than the cpu cycle count.
asciilifeform: the fact that divisions are dog slow, for seconds
asciilifeform: the fact that i don't need the batch aspect for anything, for starters
asciilifeform: when you ffaize 'simpler' is not always what initially looks like .
asciilifeform: but this would weigh more than all of ffa to date !
asciilifeform: but hypothetically it may even be possible to ffaize bernstein's tree. or even to do it in such a way that doesn't wipe out the cpu winning from it. and even possibly to prove that it works and doesn't leak bits and doesn't let composites through once in a while.
asciilifeform: why the hell should i keep random crud in a table to pick up later.
asciilifeform: because i'm on a chip with 32kB of memory, say.
asciilifeform: if gcd(r, p) == 1 -- then worth m-r, otherwise not )
asciilifeform: ( in our concrete case, r, a random , and p, a primorial -- for the pre-mr litmus test )
asciilifeform: x and y.
asciilifeform: i used bernstein's tree in phuctor, where it made actual sense
asciilifeform: apeloyee: what does remainder tree win when you are testing only 2 numbers ?
asciilifeform: remember that ffa is not strictly for rsa.
asciilifeform: ( and potentially for other primality tests, though i can think of some cryptosystems where it is handy )
asciilifeform: gcd is for the pre-mr sieve, is all.
asciilifeform: can be on any combination of whatever known tests.
asciilifeform: when i say 'week' it does not mean on a particular test.
asciilifeform: why not both ?
asciilifeform: situation where rsa is breakable, but no one can yet break it, makes it the sane option . because alternative is to become a donkey fucker ( rely on face to face for all comms , hope that nobody invents listening bug, etc )
asciilifeform: problem is that the historical period where crypto was a contest of bullet vs armour, rather than 'absolute bullet exists'/'absolute armour exists' is not over.
asciilifeform: people offering a (3) are sellingsomething.
asciilifeform: you get choice between 1) rsa 2) public key crypto does not exist
asciilifeform: because it is the null hypothesis.
asciilifeform: and all of what they're selling -- stinks.
asciilifeform: all 'selling something'.
asciilifeform: in that it may be an actual problem , but NONE of the folx who ever publicly discussed it, have any business being taken seriously.
asciilifeform: fall of rsa is roughly same item as 'global warming'
asciilifeform: mircea_popescu: if it were physically possible as the sole primality test, we'd all use.
asciilifeform: rather than, e.g., 'rsa broken OR aes broken OR prng broke OR riemann is false OR ...'
asciilifeform: but in light of this, a correct rsatron is still one that stands on nothing BUT the assumption that rsa is hard.
asciilifeform: it remains possible that -- somehow -- they do not
asciilifeform: ^ to rephrase, we don't actually know if hard problems exist as a hard law of nature.
asciilifeform: whole idea of probabilistic algo.
asciilifeform: mircea_popescu: this is demonstrably true re r-m test tho.
asciilifeform: mircea_popescu: if ~probabilistic~, not 'same' test
asciilifeform: apeloyee: why not also say 'pray that p != np '
asciilifeform: whereas some keys are more valuable than any submarine
asciilifeform: and costs considerably more
asciilifeform: when submarine is built, meant to last maybe 20yrs, test takes much longer than week
asciilifeform: apeloyee: i don't actually see how 'test for a week' is crackpottery when speaking about a key that is intended to stand up for 50 years ( or longer )
asciilifeform: correct.
asciilifeform: where P has same bitness as R.
asciilifeform: unbiased -- in this case -- would mean that it eats ANY bitstring from rng, R, and maps it to UNIQUE prime , P
asciilifeform: but there does not.
asciilifeform: and dispense with tests.
asciilifeform: and incidentally if there existed an UNBIASED constructor of primes, i'd use that
asciilifeform: ( i.e. i regard the proof behind strength of the probabilistic ver, as fundamentally stronger than the other's )
asciilifeform: i'll take the p(failure) to the week's power, over the possibility of hypothesis falling and ALL keys fucked.
asciilifeform: ( very often abuse of terminology, what people actually mean by 'deterministic version' is 'probabilistic with prng supplying the random' )
asciilifeform: i'm not aware of a fully deterministic test that doesn't run in geological (e.g. saxena) time
asciilifeform: which he'd rather have -- key that he genned inside 50cent chip, staying there, or primality-torture on his fleet of pentiums etc
asciilifeform: so operator must decide for himself
asciilifeform: this requirement is somewhat in tension with classical airgapism 'this key was born in this tin can, and must die in it' however
asciilifeform: ( and naturally it parallelizes without any effort on all iron you might have , just set it up on each )
asciilifeform: and moreover for long-term key genning, imho a week or longer probabilistic primality test is not inappropriate.
asciilifeform: i can't think of why to do any such thing
asciilifeform: i suspect that for any probabilistic test, you can construct a boojum (e.g. you know that he will do 300 rounds, you make one that needs 301 )