We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9783a26 commit 13cfd02Copy full SHA for 13cfd02
core/src/main/java/org/bouncycastle/crypto/kems/ECIESKEMGenerator.java
@@ -100,9 +100,9 @@ private ECMultiplier createBasePointMultiplier()
100
101
public SecretWithEncapsulation generateEncapsulated(AsymmetricKeyParameter recipientKey)
102
{
103
- if (!(recipientKey instanceof ECKeyParameters))
+ if (!(recipientKey instanceof ECPublicKeyParameters))
104
105
- throw new IllegalArgumentException("EC key required");
+ throw new IllegalArgumentException("EC public key required");
106
}
107
108
ECPublicKeyParameters ecPubKey = (ECPublicKeyParameters)recipientKey;
0 commit comments