Tobias Frauenschläger
af0eb33fff
Invalidate LMS key when private key write fails
...
wc_LmsKey_Sign computes the signature with the one-time key at the
current leaf and only afterwards advances the leaf index and writes it
to non-volatile storage. When that write failed the signature was erased
but the key state was left as OK, so the same in-memory key could sign
again while storage still recorded the already consumed leaf. A restart
followed by wc_LmsKey_Reload would then resume from that leaf and sign a
second message with the same LM-OTS private key.
Set the key state to bad before signing and only restore it to OK once
the advanced private key has been committed to storage, matching what
wc_xmsskey_signupdate already does for XMSS. Exhausted keys keep their
existing NOSIGS state.
Fixes F-7411.
2026-08-07 08:11:23 +02:00
..
2026-08-06 08:47:10 +02:00
2026-06-23 20:54:59 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 14:08:25 +10:00
2026-08-05 13:53:45 -05:00
2026-07-07 08:02:20 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 14:08:25 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 14:08:25 +10:00
2026-08-05 13:53:45 -05:00
2026-08-06 08:47:10 +02:00
2026-06-10 11:36:29 +02:00
2026-07-29 08:02:02 +02:00
2026-07-30 09:00:23 -07:00
2026-07-08 09:33:47 +10:00
2026-08-06 08:50:30 +02:00
2026-07-07 09:54:04 -07:00
2026-07-30 10:50:52 +10:00
2026-07-30 10:50:52 +10:00
2026-07-02 11:36:01 +02:00
2026-07-30 10:50:52 +10:00
2026-07-30 10:52:44 +10:00
2026-08-05 13:53:45 -05:00
2026-08-01 13:11:52 +02:00
2026-08-05 13:53:45 -05:00
2026-07-31 15:37:10 +02:00
2026-06-25 15:07:33 -07:00
2026-08-05 07:34:34 -07:00
2026-08-04 14:36:11 -07:00
2026-07-30 10:50:52 +10:00
2026-08-04 20:48:58 -07:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:47 -05:00
2026-07-30 10:50:52 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 20:39:57 +02:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:47 -05:00
2026-08-06 22:19:42 +02:00
2026-08-06 22:19:42 +02:00
2026-08-05 13:53:47 -05:00
2026-07-07 09:06:00 +10:00
2026-08-04 14:36:11 -07:00
2026-08-03 16:30:31 -07:00
2026-08-05 13:53:46 -05:00
2026-08-05 13:55:14 -05:00
2026-07-29 14:59:47 +10:00
2026-07-14 09:08:12 -07:00
2026-08-04 20:48:58 -07:00
2026-07-15 23:44:40 +02:00
2026-08-05 13:53:45 -05:00
2026-08-01 12:04:56 +02:00
2026-08-04 18:49:31 -07:00
2026-08-03 12:33:14 +02:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:47 -05:00
2026-07-31 15:37:10 +02:00
2026-08-05 13:53:47 -05:00
2026-07-02 22:23:52 +09:00
2026-08-04 10:33:15 -07:00
2026-07-30 10:50:52 +10:00
2026-07-30 10:52:44 +10:00
2026-08-05 13:53:45 -05:00
2026-07-16 09:39:09 +10:00
2026-07-30 10:50:52 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:47 -05:00
2026-07-02 11:36:01 +02:00
2026-08-05 13:53:47 -05:00
2026-08-05 13:53:46 -05:00
2026-05-30 15:11:36 -05:00
2026-08-05 14:08:25 +10:00
2026-08-05 13:55:14 -05:00
2026-08-05 13:53:45 -05:00
2026-07-30 10:52:44 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:55:14 -05:00
2026-07-30 10:52:44 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:47 -05:00
2026-08-05 13:53:45 -05:00
2026-08-07 08:11:23 +02:00
2026-07-31 13:30:45 -05:00
2026-07-31 13:30:45 -05:00
2026-07-31 13:30:45 -05:00
2026-07-31 13:30:45 -05:00
2026-07-31 13:30:45 -05:00
2026-07-31 13:30:45 -05:00
2026-07-31 17:13:56 +02:00
2026-08-05 13:53:46 -05:00
2026-08-05 13:53:46 -05:00
2026-07-31 13:30:45 -05:00
2026-08-01 12:04:56 +02:00
2026-08-03 14:48:20 +02:00
2026-07-08 09:33:47 +10:00
2026-07-22 13:30:22 +02:00
2026-08-05 13:53:45 -05:00
2026-07-30 10:52:44 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:46 -05:00
2026-07-30 10:50:52 +10:00
2026-08-05 13:53:45 -05:00
2026-08-07 08:11:23 +02:00
2026-08-05 14:08:25 +10:00
2026-08-05 13:55:14 -05:00
2026-08-06 12:11:43 -07:00
2026-08-04 17:48:14 +10:00
2026-08-05 13:53:45 -05:00
2026-08-05 13:53:46 -05:00
2026-08-05 13:53:45 -05:00
2026-07-20 14:35:53 -07:00
2026-08-07 08:11:23 +02:00
2026-07-30 10:50:52 +10:00
2026-08-06 11:41:50 -07:00
2026-08-05 13:53:45 -05:00
2026-08-06 08:47:10 +02:00
2026-08-05 13:55:14 -05:00
2026-07-29 08:09:12 +02:00
2026-05-30 15:11:36 -05:00