7
0
forked from pool/gnu-crypto
Files
gnu-crypto/java22.patch

43 lines
1.2 KiB
Diff
Raw Permalink Normal View History

2025-10-24 10:29:20 +02:00
--- gnu-crypto-2.0.1/jce/javax/crypto/interfaces/DHPrivateKey.java 2025-10-24 10:02:31.699275462 +0200
+++ gnu-crypto-2.0.1/jce/javax/crypto/interfaces/DHPrivateKey.java 2025-10-24 10:10:54.401404169 +0200
@@ -29,6 +29,8 @@
import java.math.BigInteger;
import java.security.PrivateKey;
+import javax.crypto.spec.DHParameterSpec;
+
/**
* The interface to a Diffie-Hellman private key.
*
@@ -44,4 +46,9 @@
* @return the private value, <code>x</code>
*/
public BigInteger getX();
+
+ @Override
+ default DHParameterSpec getParams() {
+ return null;
+ }
}
--- gnu-crypto-2.0.1/jce/javax/crypto/interfaces/DHPublicKey.java 2025-10-24 10:02:31.699298082 +0200
+++ gnu-crypto-2.0.1/jce/javax/crypto/interfaces/DHPublicKey.java 2025-10-24 10:10:14.617114832 +0200
@@ -29,6 +29,8 @@
import java.math.BigInteger;
import java.security.PublicKey;
+import javax.crypto.spec.DHParameterSpec;
+
/**
* The interface to a Diffie-Hellman public key.
*
@@ -44,4 +46,9 @@
* @return the public value, <code>y</code>
*/
public BigInteger getY();
+
+ @Override
+ default DHParameterSpec getParams() {
+ return null;
+ }
}