Internet-Draft | DKIM Signing Algorithm AdaEd25519-SHA256 | February 2025 |
Nurpmeso | Expires 7 August 2025 | [Page] |
This specification adds the DKIM (RFC 6376) signing algorithm AdaEd25519-SHA256. It is identical to Ed25519-SHA256 (RFC 8463) except for its use of DKIM hash algorithm adaptivity. Private and public keys are identical, and can be used interchangeably.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 7 August 2025.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
The DKIM[RFC6376] algorithm of how "Computing the Message Hashes" for IMF[RFC5322] has to be performed does not adapt well to modern algorithms like Ed25519[RFC8032] which perform internal prehashing. The DKIM key type Ed25519-SHA256[RFC8463] as standardized in 2018, however, uses this algorithm. It has not gained much traction since its introduction. AdaEd25519-SHA256 instead uses the DKIM Hash Algorithm Adaptivity[I-D.nurpmeso-dkim-hash-adaptivity] algorithm.¶
AdaEd25519-SHA256 is identical to Ed25519-SHA256[RFC8463] except that it uses DKIM Hash Algorithm Adaptivity[I-D.nurpmeso-dkim-hash-adaptivity]: the DKIM[RFC6376] (section 3.7) "hash-alg" SHA-256[RFC6234] is only used to produce the "body-hash", and "sig-alg" is fed in all the input used to create the "data-hash". Private and public keys are identical, and can be used interchangeably.¶
INFORMATIVE NOTE: Even though [RFC8410] defined ASN.1 Object Identifiers (OIDs) for Ed25519, it was considered more important to keep compatibility with actively used Ed25519-SHA256 keys, than to support ASN.1 standard means of inspecting key data blobs.¶
The "sig-a-tag-k" ABNF definition of DKIM[RFC6376] (section 3.5), as well as the "key-k-tag-type" ABNF definition of DKIM[RFC6376] (section 3.6.1) are both extended by an entry "adaed25519".¶
This memo requests adding the new key type "adaed25519" to the "DKIM Key Type" registry.¶
This specification should add all the gains of DKIM Hash Algorithm Adaptivity[I-D.nurpmeso-dkim-hash-adaptivity] to the Ed25519 DKIM key type.¶