Skip to content

Commit e67cccf

Browse files
author
royb
committed
Github #2131
Added missing Inner classes for KeyAgreementSpi in jdk1.11
1 parent 7545e34 commit e67cccf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

prov/src/main/jdk1.11/org/bouncycastle/jcajce/provider/asymmetric/edec/KeyAgreementSpi.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.bouncycastle.crypto.agreement.XDHUnifiedAgreement;
1919
import org.bouncycastle.crypto.agreement.kdf.ConcatenationKDFGenerator;
2020
import org.bouncycastle.crypto.generators.KDF2BytesGenerator;
21+
import org.bouncycastle.crypto.generators.HKDFBytesGenerator;
2122
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
2223
import org.bouncycastle.crypto.params.X25519PrivateKeyParameters;
2324
import org.bouncycastle.crypto.params.X25519PublicKeyParameters;
@@ -476,4 +477,23 @@ public X448UwithSHA512KDF()
476477
super("X448UwithSHA512KDF", new KDF2BytesGenerator(DigestFactory.createSHA512()));
477478
}
478479
}
480+
481+
482+
public final static class X448withSHA512HKDF
483+
extends KeyAgreementSpi
484+
{
485+
public X448withSHA512HKDF()
486+
{
487+
super("X448withSHA512HKDF", new HKDFBytesGenerator(DigestFactory.createSHA512()));
488+
}
489+
}
490+
491+
public final static class X25519withSHA256HKDF
492+
extends KeyAgreementSpi
493+
{
494+
public X25519withSHA256HKDF()
495+
{
496+
super("X25519withSHA256HKDF", new HKDFBytesGenerator(DigestFactory.createSHA256()));
497+
}
498+
}
479499
}

0 commit comments

Comments
 (0)