Show Idle (>14 d.) Chans


← 2020-11-19 | 2020-11-21 →
00:28 feedbot http://verisimilitudes.net/2020-11-19 << A Syndication of Verisimilitudes -- Debugging SHA
~ 8 hours 14 minutes ~
08:42 asciilifeform $ticker btc usd
08:42 btcinfobot Current BTC price in USD: $18245.34
08:42 asciilifeform !w poll
08:42 watchglass Polling 16 nodes...
08:42 watchglass 205.134.172.4:8333 : (172-4.core.ai.net) Alive: (0.023s) V=70001 (/therealbitcoin.org:0.7.0.1/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 205.134.172.27:8333 : Alive: (0.083s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825 (Operator: asciilifeform)
08:42 watchglass 71.114.46.209:8333 : (pool-71-114-46-209.washdc.fios.verizon.net) Alive: (0.094s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825 (Operator: asciilifeform)
08:42 watchglass 205.134.172.26:8333 : Alive: (0.142s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 54.39.156.171:8333 : (ns562940.ip-54-39-156.net) Alive: (0.118s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 205.134.172.6:8333 : (172-6.core.ai.net) Alive: (0.129s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 208.94.240.42:8333 : Alive: (0.085s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 143.202.160.10:8333 : Alive: (0.152s) V=70001 (/therealbitcoin.org:0.7.0.1/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 205.134.172.28:8333 : Alive: (0.133s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Return Addr=0.0.0.0:8333 Blocks=657615 (Operator: whaack)
08:42 watchglass 192.151.158.26:8333 : Alive: (0.153s) V=70001 (/therealbitcoin.org:0.7.0.1/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:42 watchglass 176.9.59.199:8333 : (static.199.59.9.176.clients.your-server.de) Alive: (0.258s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=391683 (Operator: jurov)
08:42 watchglass 84.16.46.130:8333 : (182518.pk.3pp.slovanet.sk) Alive: (0.326s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=431523
08:42 watchglass 185.85.38.54:8333 : (tlapnet-38-54.cust.tlapnet.cz) Alive: (0.353s) V=99999 (/therealbitcoin.org:0.9.99.99/) Jumpers=0x1 (TRB-Compat.) Blocks=657825
08:43 watchglass 185.163.46.29:8333 : Violated BTC Protocol: Bad header length!
~ 16 minutes ~
09:00 cgra asciilifeform: something about litmus.sh. 1) as peh is an external too, should check externals before calling peh
09:01 cgra 2) i'm comparing litmus.sh to rfc4880, and i fail to get a match: this 'rsa packet' coincides with signature's unhashed sub-packet section when the section is less than 256 bytes long. in part, it's because the unhashed section length is read as a 1-byte value, and yields 0 (the high byte).
09:01 cgra per rfc4880, unhashed sub-packet section length should be 2 bytes, not 1. and so far i couldn't figure out what 'rsa packet' could mean here. litmus.sh appears to work as long as signature's unhashed sub-packet section is shorter than 256 bytes
09:10 cgra version 4 signature packet format from rfc
~ 1 hours 14 minutes ~
10:25 asciilifeform cgra: ty. will take a look. fwiw item was tested w/ not only 2048-bit but 4096-bit pubkeys.
10:26 asciilifeform the 2-byte packet length does not actually seem to occur in any signed material in asciilifeform's archive. hence not encountered this discrepancy.
10:28 cgra i walked through 'ffa_w_borrow_expr.kv.vpatch.asciilifeform.sig' byte by byte, and also stared at 'pgpdump -il <sigfile>' of the same file
10:28 asciilifeform cgra: here, occurs ?
10:29 cgra well, pgpdump says the unhashed sub-section contains one item "issuer key id". but litmus labels this unhashed sub-section "rsa packet", which doesn't parse in my head
10:31 asciilifeform cgra: litmus discards the 'key id' piece
10:33 cgra asciilifeform: do you mean it's safe to assume "unhashed sub-packet" section will always be <256 bytes?
10:33 asciilifeform cgra: probably not, and oughta handle 2byte case. simply, not observed it, to date, in any signed material.
10:34 cgra right. do you still think the 'rsa packet' is a proper label for the section?
10:34 asciilifeform cgra: per rfc, it aint : the rfc supports not only rsa. but i explicitly did not.
10:35 asciilifeform ( litmus specifically specced to work exclusively with rsa signatures; and such as were produced by gpg 1.4.x . )
10:37 asciilifeform given asciilifeform's test material, it is possible that litmus deviates from rfc tradition in other ways. the principal headache in its field use, however, turned out to be the fact that there moar or less is no such thing as two shell interpreters which work the same. i.e. bash is not truly portable.
10:38 cgra ok, i see. and inspecting more of gpg 1.4.x droppings would explain the current wording better?
10:38 asciilifeform cgra: the 'rsa packet' is what in pgpdump is labeled e.g. 'RSA m^d mod n(2048 bits)'
10:39 cgra can you give an example? example i mentioned, is not so
10:40 asciilifeform cgra: plz elaborate re where not-so ?
10:40 * asciilifeform unfortunately must step out, will return in ~1h
10:41 cgra in 'ffa_w_borrow_expr.kv.vpatch.asciilifeform.sig' the 'rsa packet' coincides with a unhashed sub-packet section. the two hash bytes and a signature section comes after that
10:45 cgra http://logs.nosuchlabs.com/log/asciilifeform/2020-11-20#1025074 << sorry i didn't immediately check your link. here's the problem: in this case, 0 bytes get ignored! even though, some should've been.
10:45 snsabot Logged on 2020-11-20 10:31:55 asciilifeform: cgra: litmus discards the 'key id' piece
~ 35 minutes ~
11:21 asciilifeform cgra: i get , via ./litmus.sh asciilifeform.peh ffa_w_borrow_expr.kv.vpatch.asciilifeform.sig ffa_w_borrow_expr.kv.vpatch : VALID GPG RSA signature from asciilifeform <stas@loper-os.org>
11:21 cgra yes, and i'm arguing: by accident
11:22 asciilifeform cgra: can you explain how ?
11:23 cgra litmus attempts to skip the unhashed section, per one byte, the high byte of the actual size field. so it ends up skipping 0 bytes. actual length is <256, so the high byte is 0
11:25 cgra and from then on, just happens to align. 'rsa packet' helps in this accidental alignment, but it remains a mystery to me, why this piece exists in the code
11:27 cgra asciilifeform: easiest way to check this is print in the litmus code the supposed skip length
11:27 asciilifeform cgra: doing this very thing atm
11:34 asciilifeform cgra: what i'm trying to figure out is why the thing works on 100% of where tested...
11:34 cgra because: unhashed sub section is almost always(?) <255 bytes long
11:34 asciilifeform cgra: this btw used in addition to classic pgpdump, when was mapping out the subset of rfc used by gpg
11:35 cgra i mean <256 bytes
11:35 asciilifeform aha
11:38 asciilifeform cgra: in principle, if advertising 'conforms to rfc2440', all the byte count fields oughta permit multibyte length. i did not do this, because purpose of litmus is more or less strictly to process the ~existing~ set of legacy v-signatures. but the 'read high byte 0 but still align' is bug, though i'm still at a loss re how aligns.
11:39 cgra http://logs.nosuchlabs.com/log/asciilifeform/2020-11-20#1025070 << got an example to provide?
11:39 snsabot Logged on 2020-11-20 10:26:15 asciilifeform: the 2-byte packet length does not actually seem to occur in any signed material in asciilifeform's archive. hence not encountered this discrepancy.
11:40 asciilifeform cgra: evidently i'm mistaken re 'no 2-bytes' -- indeed in your example it skips 0
11:40 snsabot Logged on 2020-11-20 10:28:26 cgra: i walked through 'ffa_w_borrow_expr.kv.vpatch.asciilifeform.sig' byte by byte, and also stared at 'pgpdump -il <sigfile>' of the same file
11:40 cgra asciilifeform: it aligns, because you have this 'rsa packet' to cover up the lack of skip. it reads the remaining byte of the two-byte length field and finishes the skip job
11:41 cgra this 'rsa packet' isn't used either, just another skip
11:42 asciilifeform ooh ha
11:42 * asciilifeform sees it -- the earlier skip not happens, and the low byte + keyid end up 'rsa packet'
11:43 cgra yes :)
11:43 asciilifeform this is 2 bugs -- 1 in comments/names. that, hilariously, adds up to working script. will have to fix.
11:43 asciilifeform ty cgra . i'ma roll it into the earlier ch14ism patch.
11:44 cgra yeah, had a giggle staring at it after initial confusion
11:44 asciilifeform cgra: i'm pretty certain that you're the 1st to actually read this item.
11:44 cgra well, with rfc on the side at least
11:44 asciilifeform possibly at all.
11:44 asciilifeform the few folx who downloaded, ran w/out reading..
~ 1 hours 20 minutes ~
13:05 asciilifeform meanwhile, would like to link here recent primo lulz re: crapple's take on the 7th law .
13:05 snsabot (alethepedia) 2020-11-20 billymg: thimbronion: was curious about the OS after reading this article https://archive.is/u7aWQ (says that the new machines will ONLY boot on the latest version of macOS, so was wondering if that also applied to non-apple operating systems)
~ 33 minutes ~
13:39 cgra gpg generates multiple keys,
13:40 cgra primary and sign/encrypt key separately, apparently at minimum. but those peh conversion samples have only one key, the primary key
13:41 asciilifeform cgra: litmus was intended only for sig verify.
13:41 cgra and primary key apparently suffices for signing, even though gpg has this separate 'signing and encryption key'
13:42 asciilifeform cgra: in principle gpg can be made to sign w/ subkeys. i deliberately included 0 support for subkeyism, user is to export by hand the actual modulus he signed with, when converts pubkey.
13:42 asciilifeform subkeyism was imho by far the most destructive misfeature in classical gpg.
13:42 cgra asciilifeform: is it that you don't have to use separate keys with gpg if you don't want to?
13:42 asciilifeform where, if someone can arrange a sha1 collision, he can add an arbitrary subkey to your published pubkey and distribute that.
13:43 asciilifeform and the resulting sigs will verify using 'your' pub.
13:43 cgra this would mean to me that i could make a long-term key already, only if i can stuff it down gpg's throat for the short term
13:44 asciilifeform in principle yes.
13:44 asciilifeform (if you have some favourite way of genning keys, and then convert to gpg format)
13:44 asciilifeform genning with gpg, however, is problematic.
13:47 cgra asciilifeform: what did you have in mind re public exponent, for ffa keygen?
13:47 asciilifeform cgra: random prime of full length (i.e. that of modulus.)
13:48 cgra exact same process as p and q?
13:48 asciilifeform the reasons for this are discussed in old logs.
13:48 asciilifeform aha.
13:48 asciilifeform idea being, various factoring tricks (and hypothetical cryptoanalysis irons) are known to rely on the use of small exponents (and often, in particular, 65535)
13:49 cgra is my assumption correct that private exponent is a function of those, so in theory can replace d later if didn't generate optimally?
13:49 asciilifeform whether or not this were so, ffa wins nothing from the use of small exponent (unlike e.g. gpg and other heathen arithmetrons)
13:50 cgra (meant also that d = private exponent)
13:50 asciilifeform private exponent is a function of the public exponent and the factors p,q.
13:50 asciilifeform a new public exponent w/ old modulus is effectively a different key.
13:51 cgra yeah, meant exclusively private exponent, and got the answer
13:51 asciilifeform aha
13:51 cgra well, asked a q of both, and fully answered :)
13:52 asciilifeform another elementary reason to use wider bitness for public exponent -- expands the set of possible keys.
13:54 cgra i wonder if gpg will choke on a large e
13:58 asciilifeform cgra: iirc the largest supported e in gpg 1.4.x is 65535.
~ 17 minutes ~
14:15 cgra hmm, ok, then i guess it's back to mid-term gen plan
14:17 feedbot http://mvdstandard.net/2020/11/bojo-moves-to-implement-green-environmentalism-through-improverishment-plan-as-core-of-reset-and-build-back-after-fucking-up-entire-course-of-events-this-year/ << The Montevideo Standard -- BoJo Moves To Implement "Green" Environmentalism Through Improverishment Plan As Core Of "Reset" And "Build Back" After Fucking Up Entire Course Of Events This Year
~ 33 minutes ~
14:50 asciilifeform meanwhile, very lulzy usg.court circus, unrelated to elections ( BingoBoingo might find of interest. and maybe locate ocr txt.. )
← 2020-11-19 | 2020-11-21 →