Skip to content

Commit 699336e

Browse files
committed
removed use of parameters class
1 parent ed9b3bc commit 699336e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg/src/main/java/org/bouncycastle/openpgp/operator/jcajce/JcePublicKeyDataDecryptorFactoryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private byte[] decryptSessionData(JcaPGPKeyConverter converter, PGPPrivateKey pr
260260
if (ecKey.getCurveOID().equals(CryptlibObjectIdentifiers.curvey25519))
261261
{
262262
agreementName = RFC6637Utils.getXDHAlgorithm(pubKeyData);
263-
if (pEnc.length != (1 + X25519PublicKeyParameters.KEY_SIZE) || 0x40 != pEnc[0])
263+
if (pEnc.length != (1 + X25519PublicBCPGKey.LENGTH) || 0x40 != pEnc[0])
264264
{
265265
throw new IllegalArgumentException("Invalid Curve25519 public key");
266266
}

0 commit comments

Comments
 (0)