[Dcrup] Re: [Editorial Errata Reported] RFC8463 (7930)

Steffen Nurpmeso <steffen@sdaoden.eu> Fri, 10 May 2024 22:39 UTC

Return-Path: <steffen@sdaoden.eu>
X-Original-To: dcrup@ietfa.amsl.com
Delivered-To: dcrup@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5CB3BC1DA2E5 for <dcrup@ietfa.amsl.com>; Fri, 10 May 2024 15:39:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.997
X-Spam-Level:
X-Spam-Status: No, score=-6.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001, URI_HEX=0.1] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sdaoden.eu header.b="kuWb5Z8X"; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=sdaoden.eu header.b="BmTYXhUb"
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LaD8Hfl3ACs3 for <dcrup@ietfa.amsl.com>; Fri, 10 May 2024 15:39:23 -0700 (PDT)
Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3844EC1D6FA6 for <dcrup@ietf.org>; Fri, 10 May 2024 15:39:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=citron; t=1715380758; x=1716047424; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:mail-followup-to:openpgp:blahblahblah: mime-version:content-type:author:from:subject:date:to:cc:resent-date: resent-from:resent-to:resent-cc:in-reply-to:references:mime-version: content-type:content-transfer-encoding:message-id:mail-followup-to: openpgp:blahblahblah; bh=fDde0Bs0gQSbj+sEnBxe4zw9q0YXnNhVjHTVtLgFgrI=; b=kuWb5Z8X3UJKGf6NumfCWWaApLQGPIVOIo90xpyBqRzIT1a5WVQj3iMd98UcuAdC/ZiHIw2J PLoAZqynjDFTQ2NhaJzFXT5Ea7XrGzkb+1FSXnj01lRmdEik3L2+u4pe/osDM0qNEj5ec9EN/D Ki+8Z8pMad2A0wyI3piQ1JCAZZFSyb+hMSYc2gyK75UCtDktDbxSi2m7FnLgfxoNYJuP/gUDMl ixVdKiGpzgPCOkQ8XnufYsTobV3KWTRLp1fgZVitNXdYnpYIADqiW9jCxsXK+RsP7YWEQoVIG3 JWWx7nVl5LJnFaxvAuQzNA7h88CXSlpjecjuY0uYbfSpoHBw==
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=sdaoden.eu; s=orange; t=1715380758; x=1716047424; h=date:author:from:to:cc:subject: message-id:in-reply-to:references:mail-followup-to:openpgp:blahblahblah: mime-version:content-type:author:from:subject:date:to:cc:resent-date: resent-from:resent-to:resent-cc:in-reply-to:references:mime-version: content-type:content-transfer-encoding:message-id:mail-followup-to: openpgp:blahblahblah; bh=fDde0Bs0gQSbj+sEnBxe4zw9q0YXnNhVjHTVtLgFgrI=; b=BmTYXhUb0uNRr6fKrw14YEtXI8UccYIPDPOw46tbzuUPjBt79tZcqX35HNf51lPLvvFOJXDT Y5NLkvWCjOb6BA==
Date: Sat, 11 May 2024 00:39:17 +0200
Author: Steffen Nurpmeso <steffen@sdaoden.eu>
From: Steffen Nurpmeso <steffen@sdaoden.eu>
To: "Murray S. Kucherawy" <superuser@gmail.com>
Message-ID: <20240510223917.mvkXC0XH@steffen%sdaoden.eu>
In-Reply-To: <CAL0qLwZ0KYzbMRVfizwc4uKZEVN19C4UoWj8=pK5viT2i4PW+w@mail.gmail.com>
References: <20240509203958.F19D933CD1@rfcpa.amsl.com> <55570A01-CF1B-4D47-B74A-D3BDBDD2E65E@amsl.com> <CAN8C-_KycC_9g5Tviawp8P4YDqzHAptzTiw=i10QhL9JtWouug@mail.gmail.com> <CAL0qLwZ0KYzbMRVfizwc4uKZEVN19C4UoWj8=pK5viT2i4PW+w@mail.gmail.com>
Mail-Followup-To: "Murray S. Kucherawy" <superuser@gmail.com>, Orie Steele <orie@transmute.industries>, Rebecca VanRheenen <rvanrheenen@amsl.com>, standards@taugh.com, dcrup@ietf.org, RFC Editor <rfc-editor@rfc-editor.org>, Steffen Nurpmeso <steffen@sdaoden.eu>
User-Agent: s-nail v14.9.24-621-g0d1e55f367
OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt
BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs.
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=ohOTxIehRxzl5VzIkoHtmomLI4hVG7vLj7u1=-="
Message-ID-Hash: TSTDYXJ6S4Z3EB4Q765K573XDWBDEO5B
X-Message-ID-Hash: TSTDYXJ6S4Z3EB4Q765K573XDWBDEO5B
X-MailFrom: steffen@sdaoden.eu
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dcrup.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Orie Steele <orie@transmute.industries>, Rebecca VanRheenen <rvanrheenen@amsl.com>, standards@taugh.com, dcrup@ietf.org, RFC Editor <rfc-editor@rfc-editor.org>, Steffen Nurpmeso <steffen@sdaoden.eu>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Dcrup] Re: [Editorial Errata Reported] RFC8463 (7930)
List-Id: DKIM Crypto Update <dcrup.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dcrup/6AlCOHvWjv9YbeZDBDn0xIAFaFk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dcrup>
List-Help: <mailto:dcrup-request@ietf.org?subject=help>
List-Owner: <mailto:dcrup-owner@ietf.org>
List-Post: <mailto:dcrup@ietf.org>
List-Subscribe: <mailto:dcrup-join@ietf.org>
List-Unsubscribe: <mailto:dcrup-leave@ietf.org>

Murray S. Kucherawy wrote in
 <CAL0qLwZ0KYzbMRVfizwc4uKZEVN19C4UoWj8=pK5viT2i4PW+w@mail.gmail.com>:
 |Yep, this one's mine.

I will attach the code with the "changed main driver".  The code
is from RFC 8032, unchanged.  (It is also complete, we only
sys.exit before the normal main driver.)

As i said in the other message, it expects data in two base64
encoded lines, the private key first, then all the DKIM-prepared
data.

  # openssl asn1parse -noout -out - -offset 16 < PRI > PRI-RAW
  # base64 < PRI-RAW > PRI-RAW-B64
  # base64 -w0 < MSG > MSG-B64
  # cat PRI-RAW-B64 MSG-B64 | python3 .ed25519-python-thing-from-8032.py

Here is key and data

cat <<'_EOT' | python3 rfc8032-ed25519.py
nWGxne/9WmC6hEr0kuwsxERJxWl7MmkZcDusAxyuf2A=
ZnJvbTpKb2UgU2l4UGFjayA8am9lQGZvb3RiYWxsLmV4YW1wbGUuY29tPg0KdG86U3V6aWUgUSA8c3V6aWVAc2hvcHBpbmcuZXhhbXBsZS5uZXQ+DQpzdWJqZWN0OklzIGRpbm5lciByZWFkeT8NCmRhdGU6RnJpLCAxMSBKdWwgMjAwMyAyMTowMDozNyAtMDcwMCAoUERUKQ0KbWVzc2FnZS1pZDo8MjAwMzA3MTIwNDAwMzcuNDYzNDEuNUY4SkBmb290YmFsbC5leGFtcGxlLmNvbT4NCmRraW0tc2lnbmF0dXJlOnY9MTsgYT1lZDI1NTE5LXNoYTI1NjsgYz1yZWxheGVkL3JlbGF4ZWQ7IGQ9Zm9vdGJhbGwuZXhhbXBsZS5jb207IGk9QGZvb3RiYWxsLmV4YW1wbGUuY29tOyBxPWRucy90eHQ7IHM9YnJpc2JhbmU7IHQ9MTUyODYzNzkwOTsgaD1mcm9tIDogdG8gOiBzdWJqZWN0IDogZGF0ZSA6IG1lc3NhZ2UtaWQgOiBmcm9tIDogc3ViamVjdCA6IGRhdGU7IGJoPTJqVVNPSDlOaHRWR0NRV05yOUJySUFQcmVLUWpPNlNuN1hJa2ZKVk96djg9OyBiPQ==
_EOT


--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)