You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2024/11/05 06:39:00 UTC

[jira] [Closed] (SANTUARIO-613) Remove the DiffieHellman (DH) option from KeyUtils.KeyType

     [ https://issues.apache.org/jira/browse/SANTUARIO-613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh closed SANTUARIO-613.
-----------------------------------------

> Remove the DiffieHellman (DH) option from KeyUtils.KeyType
> ----------------------------------------------------------
>
>                 Key: SANTUARIO-613
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-613
>             Project: Santuario
>          Issue Type: Bug
>    Affects Versions: Java 3.0.4, Java 4.0.2
>            Reporter: Joze Rihtarsic
>            Assignee: Colm O hEigeartaigh
>            Priority: Minor
>             Fix For: Java 3.0.5, Java 4.0.3
>
>
> In the xmlsec library, support for the KeyAgreement method was recently added, including the following key agreement algorithms:
>     [http://www.w3.org/2021/04/xmldsig-more#x25519]
>     [http://www.w3.org/2021/04/xmldsig-more#x448]
>     [http://www.w3.org/2009/xmlenc11#ECDH-ES]
> See the: SANTUARIO-511, SANTUARIO-607, 
> As part of this task, a generic tool to generate counterparty ephemeral keys based on a provided public key was implemented in KeyUtils.java:
> [https://github.com/apache/santuario-xml-security-java/blob/main/src/main/java/org/apache/xml/security/utils/KeyUtils.java]
> The purpose of this task is to remove the DiffieHellman (DH) option from KeyUtils.KeyType. Initially included for completeness, it is now causing errors during code testing with various JCE providers. Additionally, given security considerations [1], [2] and the algorithm’s phasing out, it is unlikely that support for the following key agreement methods will be implemented in xmlsec:
> [http://www.w3.org/2001/04/xmlenc#dh]
> [http://www.w3.org/2009/xmlenc11#dh-es] 
>  
> [1] Adrian, David; et al. (October 2015). "Imperfect Forward Secrecy: How Diffie–Hellman Fails in Practice" (PDF). Archived (PDF) from the original on 2015-09-06.
> [2] [https://www.ietf.org/id/draft-ietf-tls-deprecate-obsolete-kex-03.html]
> For the initial PR discussion see the:
> https://github.com/apache/santuario-xml-security-java/pull/293



--
This message was sent by Atlassian Jira
(v8.20.10#820010)