File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
prov/src/main/jdk1.11/org/bouncycastle/jcajce/provider/asymmetric/edec Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1818import org .bouncycastle .crypto .agreement .XDHUnifiedAgreement ;
1919import org .bouncycastle .crypto .agreement .kdf .ConcatenationKDFGenerator ;
2020import org .bouncycastle .crypto .generators .KDF2BytesGenerator ;
21+ import org .bouncycastle .crypto .generators .HKDFBytesGenerator ;
2122import org .bouncycastle .crypto .params .AsymmetricKeyParameter ;
2223import org .bouncycastle .crypto .params .X25519PrivateKeyParameters ;
2324import 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}
You can’t perform that action at this time.
0 commit comments