added exposure for deriveKeyPair() to HPKE class.
@@ -137,6 +137,11 @@ public AsymmetricCipherKeyPair deserializePrivateKey(byte[] skEncoded, byte[] pk
return dhkem.DeserializePrivateKey(skEncoded, pkEncoded);
}
+ public AsymmetricCipherKeyPair deriveKeyPair(byte[] ikm)
+ {
+ return dhkem.DeriveKeyPair(ikm);
+ }
+
public byte[][] sendExport(AsymmetricKeyParameter pkR, byte[] info, byte[] exporterContext, int L,
byte[] psk, byte[] pskId, AsymmetricCipherKeyPair skS)
{
