1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
|
Delivery-date: Wed, 21 May 2025 04:20:09 -0700
Received: from mail-oi1-f187.google.com ([209.85.167.187])
by mail.fairlystable.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
(Exim 4.94.2)
(envelope-from <bitcoindev+bncBCW4BTMMWAKRBX7NW3AQMGQEN33I7RQ@googlegroups.com>)
id 1uHhUW-0008Et-Bo
for bitcoindev@gnusha.org; Wed, 21 May 2025 04:20:09 -0700
Received: by mail-oi1-f187.google.com with SMTP id 5614622812f47-40343c606dcsf9043722b6e.1
for <bitcoindev@gnusha.org>; Wed, 21 May 2025 04:20:08 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1747826403; cv=pass;
d=google.com; s=arc-20240605;
b=d+LEKx/+Kj82Pr8mByBsZrb7eeLE1zxLFxNZPYEjrXHOtaMdzgpzkByO6OINuGT0nP
RcM26kKH8q48/g8kirs327oEp990m27ONDpZTi6Lt4BUxZMNhUPyRTLS8G79yiXCRC0/
kTOQ2KXUYxuqqxLXPAz4qRKynak6KE8JzFjk6mjaLXmuKlb6/wAwa8Q+BC66heMy3JMG
BZQvMHQ1MssBhM+J3bKBHS+mL/q2tYggklqEC1r51MPyRTCfKotVL+a+GXCMlj5nDuPC
F7m9LpAic6gH7kT8dIVWRrehXaUhXQUS4q+N0Qe3m/orE5FWhorgHLecCBxJD48Z5uWY
f56w==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to:to:subject:message-id:date
:from:mime-version:dkim-signature;
bh=f6jZxxHn6LWol4YpEizRtUtidabkc42FECEpnD+BfiM=;
fh=VoqNcDGO8TBauaKkMYId5UkjRsV8hkZ0JnLVObYlom8=;
b=Ka4vxOP4gCRfNwAnaTa0sfJ0XrGo3KPf4zV2qvotrcsJeCNVBkKKW+D0Kc7NF27vmj
KR9a0Y10KxjGmwJ8BfCgrBpCYVF1DLhRZhu5CUBGWKsyObQNn0SPwWQKh55ufJ/oFQ3i
4wfJwvy/nuMGOfqUUsJ7w2108h9s6f1XHmlUPGSHE2N8QsIJ1vYkhpnVbDiA1VBGZswE
xABbTpm9/aG6OuXabh2NmU3kEj/cs8hvKo8CRRrN56fIt59NR0gxbOhfo+sJONuBWU+m
rZloLuYkyoy/chWPoNkqv53NgfdcwsptWC4Ij9dClqsrov3NX7z7Jm7HwJzrJVd+JQB8
Q/bg==;
darn=gnusha.org
ARC-Authentication-Results: i=2; gmr-mx.google.com;
dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=SmpfPs7t;
spf=pass (google.com: domain of bas@cloudflare.com designates 2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=bas@cloudflare.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com;
dara=pass header.i=@googlegroups.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlegroups.com; s=20230601; t=1747826402; x=1748431202; darn=gnusha.org;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender:to:subject
:message-id:date:from:mime-version:from:to:cc:subject:date
:message-id:reply-to;
bh=f6jZxxHn6LWol4YpEizRtUtidabkc42FECEpnD+BfiM=;
b=a9P+Zz/Rr2Wuy9U68RtV2G3iGrzpWgQ4GEvLMj4oTSgaqXRZt/lkRzf2S+mAY59OCq
WKH/qEQhnsa+DllysmrcYrs+G6pCHQFRLdizzqfdwDRqV0kEgZoXVNp+BaWnB9ycaKdH
O/Igy7ioiE5aTsF4pMvmqKS/mji5x77/qxS2w10LxBwEzDw8s4pgh7IS6aiQckFZHQf1
Yv03F4ToNKdRpdkvSLLryRCxS/ZZrYezhCNZ9kT2BC3PFSpfRIaYgswLDHDnyPzyRhIh
DA9h+2jnNvbiZhdqLC2lhidhVVhwHVuOMTUCJk0IcOWdBsQbQ4RyKE4+ESNJ20qywskT
lRfg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1747826402; x=1748431202;
h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
:list-id:mailing-list:precedence:reply-to
:x-original-authentication-results:x-original-sender:to:subject
:message-id:date:from:mime-version:x-beenthere:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=f6jZxxHn6LWol4YpEizRtUtidabkc42FECEpnD+BfiM=;
b=wRRZhNJ4tEf1P+R9NE/y9Ee8nQESKPYdiWUosDOi0CDOha3CDkPkhEzJQeEkcpzjTR
tpSiAS+Qmd3tupR7OVx5SMep52+f//QdXP91OpqPGh8IxkNWzNy9DIV0OwSxJpO/x21D
aFwlXmzAHTwG4FL+xsQFn6NvtG67l5ONNvGT41esKse/utKU88WAezswcfATIBUBuFuE
9ClT5MhSMyN66TmbU+THBU4W5fO8EEnLCJPj5sOZiruDW1ks3KkFglfS8scTCXfC0djY
meBwpaJiMJ7ozo6b8dJ7Phk3tKGpUcThcg3TQuAhN05zjumxOcrEwu06iQIVPPcP2STk
noiA==
X-Forwarded-Encrypted: i=2; AJvYcCVgaUb/oc0RGvMDXoBwjX1Vc7N8eWXYyJQFvCkpGADWKRnA+ZMt/+Y62Damju9NfO9sX/CaY3iELMPX@gnusha.org
X-Gm-Message-State: AOJu0YwVBezAldm2BXF0NFuxHgFool5Y57PvSO3BNwEzfk7CM39D1WDV
5LhLM2qbU05redohM7Uws3vX0d8PrvSPVs1W3WGiT58Abx6hHDoekfBk
X-Google-Smtp-Source: AGHT+IEyyY7T5ljs5isP8ZQ+NtpX39L2V3tYSktS+adQRKFsC9mdq33TXOAZ7vAiGlJEe9pglR+Iyg==
X-Received: by 2002:a05:6808:398c:b0:401:bb4c:af33 with SMTP id 5614622812f47-404d885e0c9mr12750602b6e.27.1747826402616;
Wed, 21 May 2025 04:20:02 -0700 (PDT)
X-BeenThere: bitcoindev@googlegroups.com; h=AVT/gBHoI2FOR9XslPAtvKJEzj11S10tZlW0owOgdrUpKNifPQ==
Received: by 2002:a05:6820:828b:b0:609:1093:ed15 with SMTP id
006d021491bc7-609ea3111c4ls1210239eaf.0.-pod-prod-09-us; Wed, 21 May 2025
04:19:59 -0700 (PDT)
X-Received: by 2002:a05:6808:6a85:b0:404:78f9:771a with SMTP id 5614622812f47-404d8856929mr13593738b6e.26.1747826398950;
Wed, 21 May 2025 04:19:58 -0700 (PDT)
Received: by 2002:a05:6808:82c7:b0:3f6:a384:eb6f with SMTP id 5614622812f47-404da00d5efmsb6e;
Wed, 21 May 2025 03:32:46 -0700 (PDT)
X-Received: by 2002:a17:90b:1846:b0:30e:7afd:1a56 with SMTP id 98e67ed59e1d1-30e7d5bb449mr25798605a91.34.1747823565703;
Wed, 21 May 2025 03:32:45 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1747823565; cv=none;
d=google.com; s=arc-20240605;
b=ftl54Y8T1KTg9eZaYyjj3i970C+n0V4GK+qxeJq56T+0ipLH5XJpysxIa6rYwr75qs
YnUfBYSt0/t2VlB5yu3F/q5bKdVD2+IXzQqFapASqi2+azqGmI4P0vVAgOQULh5Gc0Lo
55hHlu8Bs9LSCg+UMALXiKMshEge7oo8mZ5XCLeb16wwqTZEjE/UHKpMXPgqW25g2u7Y
GxRLzI1gH5uzCoQKrHfRWrOQpZ236ojmJJha1CZ3NWmUYhVEXqYgKdd+ODi3n0dAvxas
gI1RQHWb8oTf/VcWFu8uOWFYkS2uOoLpG1gHW2Y7KpqhqKvUlKSMZZvZl/G4i10jNn2Z
lwRQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605;
h=to:subject:message-id:date:from:mime-version:dkim-signature;
bh=y+5lhaSj99VHxQCzrc0RmqoE6VlpYJdqsMyWIU1NLqo=;
fh=VcGcg+Zjs9gw1uDcHbxsAILhBAcecnbJzZRdxgKVDIc=;
b=eDtAD6JX3A+8xkHXZVrxk9pge4C7a+6vBKSuX9YM+wQOIUG8J5EF2DGCwO4YTKNai1
MdsQCXLkNPnnqDGQMsrJBIaYWc6/xCP6PqRbzGHKVi0lY3bBwWx/PBrTuJSlkHh1Z7We
6nx8fhHxNl7Mvmb3YehwSJHtmUuShfQUdMMbEQ2YKMuXwxr1Zl8nsnr4RgKcmkbGkVhH
EPkl99HgdzzbDvpeksw94STf6H3EpVdNC33YMAcEUPz+O/ZcyFK6F7W4n5p+huhgPxgL
C3m/88609k4R/ymP8CpAd5CveYD1bPkavbva5L5ofY3rKaMguMjpRXoRoHQCkUIiCG1x
8dHw==;
dara=google.com
ARC-Authentication-Results: i=1; gmr-mx.google.com;
dkim=pass header.i=@cloudflare.com header.s=google09082023 header.b=SmpfPs7t;
spf=pass (google.com: domain of bas@cloudflare.com designates 2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=bas@cloudflare.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com;
dara=pass header.i=@googlegroups.com
Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com. [2607:f8b0:4864:20::b30])
by gmr-mx.google.com with ESMTPS id 98e67ed59e1d1-30e5c14b62dsi1024389a91.0.2025.05.21.03.32.45
for <bitcoindev@googlegroups.com>
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Wed, 21 May 2025 03:32:45 -0700 (PDT)
Received-SPF: pass (google.com: domain of bas@cloudflare.com designates 2607:f8b0:4864:20::b30 as permitted sender) client-ip=2607:f8b0:4864:20::b30;
Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-e740a09eb00so5848247276.0
for <bitcoindev@googlegroups.com>; Wed, 21 May 2025 03:32:45 -0700 (PDT)
X-Gm-Gg: ASbGncsFwYqC6jpTI5XF1t9O/VuDBKH0WJbuxsqE9wUNUzFsOKphV6naEb5DA+qXkIh
sobwJPptDGz2he+Y7oTpMczFNLYzQ7oP/gk/RWyjq0jLujuUXw23waJuUOtGt+c2t9+rpxOIrC6
Wpn/2Tl9jDluMIylVViRYv2LYVfmptZxqzRgRNbd2kF3dvR+yR38c=
X-Received: by 2002:a05:6902:2201:b0:e7b:8dec:7ef5 with SMTP id
3f1490d57ef6-e7b8dec7ff0mr20212144276.27.1747823564821; Wed, 21 May 2025
03:32:44 -0700 (PDT)
MIME-Version: 1.0
From: "'Bas Westerbaan' via Bitcoin Development Mailing List" <bitcoindev@googlegroups.com>
Date: Wed, 21 May 2025 12:32:33 +0200
X-Gm-Features: AX0GCFtQ7G07iDDYBFkGiZ9czondlFXOpvelh_R6aD9VaES_FyZtOMOCnHQ2t_Q
Message-ID: <CAMjbhoU=PCUwbhWFbqCbOdZc+ybmREJmmt1K1TuHrCTncKH6VA@mail.gmail.com>
Subject: [bitcoindev] jpeg resistance of various post-quantum signature schemes
To: bitcoindev@googlegroups.com
Content-Type: multipart/alternative; boundary="000000000000b635280635a2e275"
X-Original-Sender: bas@cloudflare.com
X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass
header.i=@cloudflare.com header.s=google09082023 header.b=SmpfPs7t;
spf=pass (google.com: domain of bas@cloudflare.com designates
2607:f8b0:4864:20::b30 as permitted sender) smtp.mailfrom=bas@cloudflare.com;
dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com;
dara=pass header.i=@googlegroups.com
X-Original-From: Bas Westerbaan <bas@cloudflare.com>
Reply-To: Bas Westerbaan <bas@cloudflare.com>
Precedence: list
Mailing-list: list bitcoindev@googlegroups.com; contact bitcoindev+owners@googlegroups.com
List-ID: <bitcoindev.googlegroups.com>
X-Google-Group-Id: 786775582512
List-Post: <https://groups.google.com/group/bitcoindev/post>, <mailto:bitcoindev@googlegroups.com>
List-Help: <https://groups.google.com/support/>, <mailto:bitcoindev+help@googlegroups.com>
List-Archive: <https://groups.google.com/group/bitcoindev
List-Subscribe: <https://groups.google.com/group/bitcoindev/subscribe>, <mailto:bitcoindev+subscribe@googlegroups.com>
List-Unsubscribe: <mailto:googlegroups-manage+786775582512+unsubscribe@googlegroups.com>,
<https://groups.google.com/group/bitcoindev/subscribe>
X-Spam-Score: 2.2 (++)
--000000000000b635280635a2e275
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi all,
My colleague Ethan asked me the fun question which post-quantum signature
schemes have the following security property, which he called jpeg
resistance.
Attacker wins if for a (partially specified) signature and full message,
they can find a completed signature and public key, such that the completed
signature verifies under the public key.
A naive hash-based signature is not jpeg resistant. Schoolbook Winternitz
one-time signatures, forest-of-trees few-time signatures, and Merkle trees
all validate signatures (/authentication paths) by recomputing the public
key (/Merkle tree root) from the signature and the message, and checking
whether the recomputed public key matches the actual public key. That means
we can pick anything for the signature, and just set the public key to the
recomputed public key.
The situation is more subtle for actual standardized hash-based signatures.
RFC 8391 XMSS doesn=E2=80=99t sign the message itself, but first hashes in =
(among
others) the public key. Basically the best we can do for XMSS (except for
setting the signature randomizer) is to guess the public key. Thus it=E2=80=
=99s
pretty much jpeg resistant.
The situation is different again for RFC 8391 XMSSMT. XMSSMT is basically a
certificate chain of XMSS signatures. An XMSSMT public key is an XMSS
public key. An XMSSMT signature is a chain of XMSS signatures: the XMSSMT
public key signs another XMSS public key; which signs another public XMSS
public key; =E2=80=A6; which signs the message. Again the top XMSSMT public=
key is
hashed into the message signed, but that only binds the first XMSS
signature. We can=E2=80=99t mess with the first signature, but the other si=
gnatures
we can choose freely, as those roots are not bound. Thus XMSSMT with two
subtrees is only half jpeg resistant and it gets worse with more subtrees.
Similarly SLH-DSA (FIPS 205, n=C3=A9e SPHINCS+) is a certificate chain of (=
a
variant of) XMSS signing another XMSS public key, which signs another XMSS
public key, etc, which signs a FORS public key, which signs the final
message. The SLH-DSA public key is the first XMSS public key. From the
message and the public key it derives the FORS key pair (leaf) in the hyper
tree to use to sign, and the message to actually sign. This means we can=E2=
=80=99t
mess with the first XMSS keypair. Thus to attack SLH-DSA we honestly
generate the first XMSS keypair. Then given a message, we just pick the
signature arbitrarily for all but the first XMSS signature. We run the
verification routine to recompute the root to sign by the first XMSS
keypair. Then we sign it honestly. It depends a bit on the parameters, but
basically we get to pick roughly =E2=85=9E of the signature for free.
ML-DSA (FIPS 204, n=C3=A9e Dilithium) is a Fiat=E2=80=93Shamir transform of=
a
(module-)lattice identification scheme. In the identification scheme the
prover picks a nonce y, and sends the commitment w1 =3D HighBits(A y) to th=
e
verifier, where A is a matrix that=E2=80=99s part of the public key and Hig=
hBits
drops the lower bits (of the coefficients of the polynomials in the
vector). The verifier responds with a challenge c, to which the prover
returns the response z =3D y + c s1, where s1 is part of the private key. T=
he
verifier checks, among other things, whether HighBits(Az-ct) =3D w1, where =
t
=3D As1+s2 is part of the public key. As usual with Fiat=E2=80=93Shamir, in=
ML-DSA
the challenge c is the hash of the commitment, message, and public key. The
scheme has commitment recovery, so the signature itself consists of the
response z and the challenge c. (There is also a hint h, but that=E2=80=99s=
small
and we can ignore it.) If we set s1 to zero, then z=3Dy, which is free to
choose. So we can freely choose z, which is by far the largest part of the
signature. Such a public key t is easy to detect, as it has small
coefficients. Instead we can set s1 to zero on only a few components. That
allows us to choose z arbitrarily for those components, still breaking jpeg
resistance, while being hard to detect. There could well be other
approaches here.
Falcon. A Falcon private key are small polynomials f,g. Its public key is h
=3D g f-1. With the private key, for any polynomial c, we can compute small=
s1
and s2 with s1 + s2h =3D c. A Falcon signature is a pair r, s2 where s1 =3D
H(r, m) - s2 h is small. s2 is Guassian distributed, and is encoded using
an Elias=E2=80=93Fano approach. It=E2=80=99s then padded to make signatures=
fixed-length.
Clearly the randomizer r can be set arbitrarily, but it=E2=80=99s only 40 b=
ytes.
Putting arbitrary bytes in most of the encoding of s2 will likely yield a
sufficiently small s2. Now, I thought about using this s2 as a new g and
construct a signature that way by finding s=E2=80=991 and s=E2=80=992 with =
s=E2=80=991 + s=E2=80=992s1f-1 =3D
H(r,m), but my brother suggested a simpler approach. s2 is likely
invertible and we can set h =3D H(r, m)/s2. Both approaches would be thwart=
ed
by using H(H(h), r, m) instead of H(r, m). I do not know if there is still
another attack.
Best,
Bas
--=20
You received this message because you are subscribed to the Google Groups "=
Bitcoin Development Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to bitcoindev+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bitcoindev/=
CAMjbhoU%3DPCUwbhWFbqCbOdZc%2BybmREJmmt1K1TuHrCTncKH6VA%40mail.gmail.com.
--000000000000b635280635a2e275
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><span id=3D"gmail-docs-internal-guid-0d83d5a0-7fff-1765-63=
9e-01ab0b861d8e"><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;ma=
rgin-bottom:0pt"><span style=3D"font-size:11pt;font-family:Arial,sans-serif=
;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;=
font-variant-east-asian:normal;font-variant-alternates:normal;vertical-alig=
n:baseline">Hi all,</span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;=
margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:11pt;font-family=
:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-varian=
t-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:nor=
mal;vertical-align:baseline">My colleague Ethan asked me the fun question w=
hich post-quantum signature schemes have the following security property, w=
hich he called </span><span style=3D"font-size:11pt;font-family:Arial,sans-=
serif;color:rgb(0,0,0);background-color:transparent;font-style:italic;font-=
variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternat=
es:normal;vertical-align:baseline">jpeg resistance</span><span style=3D"fon=
t-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:=
transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font=
-variant-alternates:normal;vertical-align:baseline">.</span></p><br><p dir=
=3D"ltr" style=3D"line-height:1.38;margin-left:36pt;margin-top:0pt;margin-b=
ottom:0pt"><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color=
:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-v=
ariant-east-asian:normal;font-variant-alternates:normal;vertical-align:base=
line">Attacker wins if for a (partially specified) signature and full messa=
ge, they can find a completed signature and public key, such that the compl=
eted signature verifies under the public key.</span></p><br><p dir=3D"ltr" =
style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"=
font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-col=
or:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;f=
ont-variant-alternates:normal;vertical-align:baseline">A naive hash-based s=
ignature is not jpeg resistant. Schoolbook Winternitz one-time signatures, =
forest-of-trees few-time signatures, and Merkle trees all validate signatur=
es (/authentication paths) by recomputing the public key (/Merkle tree root=
) from the signature and the message, and checking whether the recomputed p=
ublic key matches the actual public key. That means we can pick anything fo=
r the signature, and just set the public key to the recomputed public key.<=
/span></p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margi=
n-bottom:0pt"><span style=3D"font-size:11pt;font-family:Arial,sans-serif;co=
lor:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;fon=
t-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:b=
aseline">The situation is more subtle for actual standardized hash-based si=
gnatures. RFC 8391 </span><span style=3D"font-size:11pt;font-family:Arial,s=
ans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:700;fon=
t-variant-numeric:normal;font-variant-east-asian:normal;font-variant-altern=
ates:normal;vertical-align:baseline">XMSS</span><span style=3D"font-size:11=
pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transpare=
nt;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-=
alternates:normal;vertical-align:baseline"> doesn=E2=80=99t sign the messag=
e itself, but first hashes in (among others) the public key. Basically the =
best we can do for XMSS (except for setting the signature randomizer) is to=
guess the public key. Thus it=E2=80=99s pretty much jpeg resistant.</span>=
</p><br><p dir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bott=
om:0pt"><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rg=
b(0,0,0);background-color:transparent;font-variant-numeric:normal;font-vari=
ant-east-asian:normal;font-variant-alternates:normal;vertical-align:baselin=
e">The situation is different again for RFC 8391 </span><span style=3D"font=
-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:t=
ransparent;font-weight:700;font-variant-numeric:normal;font-variant-east-as=
ian:normal;font-variant-alternates:normal;vertical-align:baseline">XMSS</sp=
an><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0=
,0);background-color:transparent;font-weight:700;font-variant-numeric:norma=
l;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-al=
ign:baseline"><span style=3D"font-size:0.6em;vertical-align:super">MT</span=
></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rg=
b(0,0,0);background-color:transparent;font-variant-numeric:normal;font-vari=
ant-east-asian:normal;font-variant-alternates:normal;vertical-align:baselin=
e">. XMSS</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;=
color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;f=
ont-variant-east-asian:normal;font-variant-alternates:normal;vertical-align=
:baseline"><span style=3D"font-size:0.6em;vertical-align:super">MT</span></=
span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0=
,0,0);background-color:transparent;font-variant-numeric:normal;font-variant=
-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline">=
is basically a certificate chain of XMSS signatures. An XMSS</span><span s=
tyle=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgr=
ound-color:transparent;font-variant-numeric:normal;font-variant-east-asian:=
normal;font-variant-alternates:normal;vertical-align:baseline"><span style=
=3D"font-size:0.6em;vertical-align:super">MT</span></span><span style=3D"fo=
nt-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color=
:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;fon=
t-variant-alternates:normal;vertical-align:baseline"> public key is an XMSS=
public key. An XMSS</span><span style=3D"font-size:11pt;font-family:Arial,=
sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-numer=
ic:normal;font-variant-east-asian:normal;font-variant-alternates:normal;ver=
tical-align:baseline"><span style=3D"font-size:0.6em;vertical-align:super">=
MT</span></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;=
color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;f=
ont-variant-east-asian:normal;font-variant-alternates:normal;vertical-align=
:baseline"> signature is a chain of XMSS signatures: the XMSS</span><span s=
tyle=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgr=
ound-color:transparent;font-variant-numeric:normal;font-variant-east-asian:=
normal;font-variant-alternates:normal;vertical-align:baseline"><span style=
=3D"font-size:0.6em;vertical-align:super">MT</span></span><span style=3D"fo=
nt-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color=
:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;fon=
t-variant-alternates:normal;vertical-align:baseline"> public key signs anot=
her XMSS public key; which signs another public XMSS public key; =E2=80=A6;=
which signs the message. Again the top XMSS</span><span style=3D"font-size=
:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transp=
arent;font-variant-numeric:normal;font-variant-east-asian:normal;font-varia=
nt-alternates:normal;vertical-align:baseline"><span style=3D"font-size:0.6e=
m;vertical-align:super">MT</span></span><span style=3D"font-size:11pt;font-=
family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-=
variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternat=
es:normal;vertical-align:baseline"> public key is hashed into the message s=
igned, but that only binds the first XMSS signature. We can=E2=80=99t mess =
with the first signature, but the other signatures we can choose freely, as=
those roots are not bound. Thus XMSS</span><span style=3D"font-size:11pt;f=
ont-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;f=
ont-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alte=
rnates:normal;vertical-align:baseline"><span style=3D"font-size:0.6em;verti=
cal-align:super">MT</span></span><span style=3D"font-size:11pt;font-family:=
Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant=
-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:norm=
al;vertical-align:baseline"> with two subtrees is only half jpeg resistant =
and it gets worse with more subtrees.</span></p><br><p dir=3D"ltr" style=3D=
"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-siz=
e:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:trans=
parent;font-variant-numeric:normal;font-variant-east-asian:normal;font-vari=
ant-alternates:normal;vertical-align:baseline">Similarly </span><span style=
=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background=
-color:transparent;font-weight:700;font-variant-numeric:normal;font-variant=
-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline">=
SLH-DSA</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;co=
lor:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;fon=
t-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:b=
aseline"> (FIPS 205, n=C3=A9e SPHINCS</span><span style=3D"font-size:11pt;f=
ont-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;f=
ont-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alte=
rnates:normal;vertical-align:baseline"><span style=3D"font-size:0.6em;verti=
cal-align:super">+</span></span><span style=3D"font-size:11pt;font-family:A=
rial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-=
numeric:normal;font-variant-east-asian:normal;font-variant-alternates:norma=
l;vertical-align:baseline">) is a certificate chain of (a variant of) XMSS =
signing another XMSS public key, which signs another XMSS public key, etc, =
which signs a FORS public key, which signs the final message. The SLH-DSA p=
ublic key is the first XMSS public key. From the message and the public key=
it derives the FORS key pair (leaf) in the hyper tree to use to sign, and =
the message to actually sign. This means we can=E2=80=99t mess with the fir=
st XMSS keypair. Thus to attack SLH-DSA we honestly generate the first XMSS=
keypair. Then given a message, we just pick the signature arbitrarily for =
all but the first XMSS signature. We run the verification routine to recomp=
ute the root to sign by the first XMSS keypair. Then we sign it honestly. I=
t depends a bit on the parameters, but basically we get to pick roughly =E2=
=85=9E of the signature for free.</span></p><br><p dir=3D"ltr" style=3D"lin=
e-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font-size:11=
pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transpare=
nt;font-weight:700;font-variant-numeric:normal;font-variant-east-asian:norm=
al;font-variant-alternates:normal;vertical-align:baseline">ML-DSA</span><sp=
an style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);ba=
ckground-color:transparent;font-variant-numeric:normal;font-variant-east-as=
ian:normal;font-variant-alternates:normal;vertical-align:baseline"> (FIPS 2=
04, n=C3=A9e Dilithium) is a Fiat=E2=80=93Shamir transform of a (module-)la=
ttice identification scheme. In the identification scheme the prover picks =
a nonce y, and sends the commitment w</span><span style=3D"font-size:11pt;f=
ont-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;f=
ont-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alte=
rnates:normal;vertical-align:baseline"><span style=3D"font-size:0.6em;verti=
cal-align:sub">1</span></span><span style=3D"font-size:11pt;font-family:Ari=
al,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-nu=
meric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;=
vertical-align:baseline"> =3D HighBits(A y) to the verifier, where A is a m=
atrix that=E2=80=99s part of the public key and HighBits drops the lower bi=
ts (of the coefficients of the polynomials in the vector). The verifier res=
ponds with a challenge c, to which the prover returns the response z =3D y =
+ c s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;colo=
r:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-=
variant-east-asian:normal;font-variant-alternates:normal;vertical-align:bas=
eline"><span style=3D"font-size:0.6em;vertical-align:sub">1</span></span><s=
pan style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);b=
ackground-color:transparent;font-variant-numeric:normal;font-variant-east-a=
sian:normal;font-variant-alternates:normal;vertical-align:baseline">, where=
s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:r=
gb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-var=
iant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseli=
ne"><span style=3D"font-size:0.6em;vertical-align:sub">1</span></span><span=
style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);back=
ground-color:transparent;font-variant-numeric:normal;font-variant-east-asia=
n:normal;font-variant-alternates:normal;vertical-align:baseline"> is part o=
f the private key. The verifier checks, among other things, whether HighBit=
s(Az-ct) =3D w</span><span style=3D"font-size:11pt;font-family:Arial,sans-s=
erif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:nor=
mal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-=
align:baseline"><span style=3D"font-size:0.6em;vertical-align:sub">1</span>=
</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb=
(0,0,0);background-color:transparent;font-variant-numeric:normal;font-varia=
nt-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline=
">, where t =3D As</span><span style=3D"font-size:11pt;font-family:Arial,sa=
ns-serif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric=
:normal;font-variant-east-asian:normal;font-variant-alternates:normal;verti=
cal-align:baseline"><span style=3D"font-size:0.6em;vertical-align:sub">1</s=
pan></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color=
:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-v=
ariant-east-asian:normal;font-variant-alternates:normal;vertical-align:base=
line">+s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;c=
olor:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;fo=
nt-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:=
baseline"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></span=
><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0=
);background-color:transparent;font-variant-numeric:normal;font-variant-eas=
t-asian:normal;font-variant-alternates:normal;vertical-align:baseline"> is =
part of the public key. As usual with Fiat=E2=80=93Shamir, in ML-DSA the ch=
allenge c is the hash of the commitment, message, and public key. The schem=
e has commitment recovery, so the signature itself consists of the response=
z and the challenge c. (There is also a hint h, but that=E2=80=99s small a=
nd we can ignore it.) If we set s</span><span style=3D"font-size:11pt;font-=
family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-=
variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternat=
es:normal;vertical-align:baseline"><span style=3D"font-size:0.6em;vertical-=
align:sub">1 </span></span><span style=3D"font-size:11pt;font-family:Arial,=
sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-numer=
ic:normal;font-variant-east-asian:normal;font-variant-alternates:normal;ver=
tical-align:baseline">to zero, then z=3Dy, which is free to choose. So we c=
an freely choose z, which is by far the largest part of the signature. Such=
a public key t is easy to detect, as it has small coefficients. Instead we=
can set s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif=
;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;=
font-variant-east-asian:normal;font-variant-alternates:normal;vertical-alig=
n:baseline"><span style=3D"font-size:0.6em;vertical-align:sub">1</span></sp=
an><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0=
,0);background-color:transparent;font-variant-numeric:normal;font-variant-e=
ast-asian:normal;font-variant-alternates:normal;vertical-align:baseline"> t=
o zero on only a few components. That allows us to choose z arbitrarily for=
those components, still breaking jpeg resistance, while being hard to dete=
ct. There could well be other approaches here.</span></p><br><p dir=3D"ltr"=
style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D=
"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-co=
lor:transparent;font-weight:700;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-variant-alternates:normal;vertical-align:baseline">Fal=
con</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:=
rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-va=
riant-east-asian:normal;font-variant-alternates:normal;vertical-align:basel=
ine">. A Falcon private key are small polynomials f,g. Its public key is h =
=3D g f</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;co=
lor:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;fon=
t-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:b=
aseline"><span style=3D"font-size:0.6em;vertical-align:super">-1</span></sp=
an><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0=
,0);background-color:transparent;font-variant-numeric:normal;font-variant-e=
ast-asian:normal;font-variant-alternates:normal;vertical-align:baseline">. =
With the private key, for any polynomial c, we can compute small s</span><s=
pan style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);b=
ackground-color:transparent;font-variant-numeric:normal;font-variant-east-a=
sian:normal;font-variant-alternates:normal;vertical-align:baseline"><span s=
tyle=3D"font-size:0.6em;vertical-align:sub">1</span></span><span style=3D"f=
ont-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-colo=
r:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;fo=
nt-variant-alternates:normal;vertical-align:baseline"> and s</span><span st=
yle=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgro=
und-color:transparent;font-variant-numeric:normal;font-variant-east-asian:n=
ormal;font-variant-alternates:normal;vertical-align:baseline"><span style=
=3D"font-size:0.6em;vertical-align:sub">2</span></span><span style=3D"font-=
size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:tr=
ansparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-v=
ariant-alternates:normal;vertical-align:baseline"> with s</span><span style=
=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background=
-color:transparent;font-variant-numeric:normal;font-variant-east-asian:norm=
al;font-variant-alternates:normal;vertical-align:baseline"><span style=3D"f=
ont-size:0.6em;vertical-align:sub">1</span></span><span style=3D"font-size:=
11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transpa=
rent;font-variant-numeric:normal;font-variant-east-asian:normal;font-varian=
t-alternates:normal;vertical-align:baseline"> + s</span><span style=3D"font=
-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:t=
ransparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-=
variant-alternates:normal;vertical-align:baseline"><span style=3D"font-size=
:0.6em;vertical-align:sub">2</span></span><span style=3D"font-size:11pt;fon=
t-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;fon=
t-variant-numeric:normal;font-variant-east-asian:normal;font-variant-altern=
ates:normal;vertical-align:baseline">h =3D c. A Falcon signature is a pair =
r, s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color=
:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-v=
ariant-east-asian:normal;font-variant-alternates:normal;vertical-align:base=
line"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></span><sp=
an style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);ba=
ckground-color:transparent;font-variant-numeric:normal;font-variant-east-as=
ian:normal;font-variant-alternates:normal;vertical-align:baseline"> where s=
</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb=
(0,0,0);background-color:transparent;font-variant-numeric:normal;font-varia=
nt-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline=
"><span style=3D"font-size:0.6em;vertical-align:sub">1</span></span><span s=
tyle=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgr=
ound-color:transparent;font-variant-numeric:normal;font-variant-east-asian:=
normal;font-variant-alternates:normal;vertical-align:baseline"> =3D H(r, m)=
- s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color=
:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-v=
ariant-east-asian:normal;font-variant-alternates:normal;vertical-align:base=
line"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></span><sp=
an style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);ba=
ckground-color:transparent;font-variant-numeric:normal;font-variant-east-as=
ian:normal;font-variant-alternates:normal;vertical-align:baseline"> h is sm=
all. s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;col=
or:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font=
-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:ba=
seline"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></span><=
span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);=
background-color:transparent;font-variant-numeric:normal;font-variant-east-=
asian:normal;font-variant-alternates:normal;vertical-align:baseline"> is Gu=
assian distributed, and is encoded using an Elias=E2=80=93Fano approach. It=
=E2=80=99s then padded to make signatures fixed-length. Clearly the randomi=
zer r can be set arbitrarily, but it=E2=80=99s only 40 bytes. Putting arbit=
rary bytes in most of the encoding of s</span><span style=3D"font-size:11pt=
;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent=
;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-al=
ternates:normal;vertical-align:baseline"><span style=3D"font-size:0.6em;ver=
tical-align:sub">2</span></span><span style=3D"font-size:11pt;font-family:A=
rial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-=
numeric:normal;font-variant-east-asian:normal;font-variant-alternates:norma=
l;vertical-align:baseline"> will likely yield a sufficiently small s</span>=
<span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0)=
;background-color:transparent;font-variant-numeric:normal;font-variant-east=
-asian:normal;font-variant-alternates:normal;vertical-align:baseline"><span=
style=3D"font-size:0.6em;vertical-align:sub">2</span></span><span style=3D=
"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-co=
lor:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;=
font-variant-alternates:normal;vertical-align:baseline">. Now, I thought ab=
out using this s</span><span style=3D"font-size:11pt;font-family:Arial,sans=
-serif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:n=
ormal;font-variant-east-asian:normal;font-variant-alternates:normal;vertica=
l-align:baseline"><span style=3D"font-size:0.6em;vertical-align:sub">2</spa=
n></span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:r=
gb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-var=
iant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseli=
ne"> as a new g and construct a signature that way by finding s=E2=80=99</s=
pan><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,=
0,0);background-color:transparent;font-variant-numeric:normal;font-variant-=
east-asian:normal;font-variant-alternates:normal;vertical-align:baseline"><=
span style=3D"font-size:0.6em;vertical-align:sub">1</span></span><span styl=
e=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgroun=
d-color:transparent;font-variant-numeric:normal;font-variant-east-asian:nor=
mal;font-variant-alternates:normal;vertical-align:baseline"> and s=E2=80=99=
</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb=
(0,0,0);background-color:transparent;font-variant-numeric:normal;font-varia=
nt-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline=
"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></span><span s=
tyle=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgr=
ound-color:transparent;font-variant-numeric:normal;font-variant-east-asian:=
normal;font-variant-alternates:normal;vertical-align:baseline"> with s=E2=
=80=99</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;col=
or:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font=
-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:ba=
seline"><span style=3D"font-size:0.6em;vertical-align:sub">1</span></span><=
span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);=
background-color:transparent;font-variant-numeric:normal;font-variant-east-=
asian:normal;font-variant-alternates:normal;vertical-align:baseline"> + s=
=E2=80=99</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;=
color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;f=
ont-variant-east-asian:normal;font-variant-alternates:normal;vertical-align=
:baseline"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></spa=
n><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,=
0);background-color:transparent;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-variant-alternates:normal;vertical-align:baseline">s</=
span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0=
,0,0);background-color:transparent;font-variant-numeric:normal;font-variant=
-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline">=
<span style=3D"font-size:0.6em;vertical-align:sub">1</span></span><span sty=
le=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backgrou=
nd-color:transparent;font-variant-numeric:normal;font-variant-east-asian:no=
rmal;font-variant-alternates:normal;vertical-align:baseline">f</span><span =
style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);backg=
round-color:transparent;font-variant-numeric:normal;font-variant-east-asian=
:normal;font-variant-alternates:normal;vertical-align:baseline"><span style=
=3D"font-size:0.6em;vertical-align:super">-1</span></span><span style=3D"fo=
nt-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color=
:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;fon=
t-variant-alternates:normal;vertical-align:baseline"> =3D H(r,m), but my br=
other suggested a simpler approach. s</span><span style=3D"font-size:11pt;f=
ont-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;f=
ont-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alte=
rnates:normal;vertical-align:baseline"><span style=3D"font-size:0.6em;verti=
cal-align:sub">2</span></span><span style=3D"font-size:11pt;font-family:Ari=
al,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-nu=
meric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;=
vertical-align:baseline"> is likely invertible and we can set h =3D H(r, m)=
/s</span><span style=3D"font-size:11pt;font-family:Arial,sans-serif;color:r=
gb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-var=
iant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseli=
ne"><span style=3D"font-size:0.6em;vertical-align:sub">2</span></span><span=
style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);back=
ground-color:transparent;font-variant-numeric:normal;font-variant-east-asia=
n:normal;font-variant-alternates:normal;vertical-align:baseline">. Both app=
roaches would be thwarted by using H(H(h), r, m) instead of H(r, m). I do n=
ot know if there is still another attack.</span></p><br><p dir=3D"ltr" styl=
e=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style=3D"font=
-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:t=
ransparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-=
variant-alternates:normal;vertical-align:baseline">Best,</span></p><br><p d=
ir=3D"ltr" style=3D"line-height:1.38;margin-top:0pt;margin-bottom:0pt"><spa=
n style=3D"font-size:11pt;font-family:Arial,sans-serif;color:rgb(0,0,0);bac=
kground-color:transparent;font-variant-numeric:normal;font-variant-east-asi=
an:normal;font-variant-alternates:normal;vertical-align:baseline">=C2=A0Bas=
</span></p></span><br class=3D"gmail-Apple-interchange-newline"></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Bitcoin Development Mailing List" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:bitcoindev+unsubscribe@googlegroups.com">bitcoind=
ev+unsubscribe@googlegroups.com</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
bitcoindev/CAMjbhoU%3DPCUwbhWFbqCbOdZc%2BybmREJmmt1K1TuHrCTncKH6VA%40mail.g=
mail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/=
d/msgid/bitcoindev/CAMjbhoU%3DPCUwbhWFbqCbOdZc%2BybmREJmmt1K1TuHrCTncKH6VA%=
40mail.gmail.com</a>.<br />
--000000000000b635280635a2e275--
|