1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/src/crypto/tls/TlsEccUtilities.cs b/crypto/src/crypto/tls/TlsEccUtilities.cs
index 909a1002c..fd3145305 100644
--- a/crypto/src/crypto/tls/TlsEccUtilities.cs
+++ b/crypto/src/crypto/tls/TlsEccUtilities.cs
@@ -372,8 +372,11 @@ namespace Org.BouncyCastle.Crypto.Tls
throw new TlsFatalAlert(AlertDescription.illegal_parameter);
}
- if (!Arrays.Contains(ecPointFormats, actualFormat))
+ if (actualFormat != ECPointFormat.uncompressed
+ && (ecPointFormats == null || !Arrays.Contains(ecPointFormats, actualFormat)))
+ {
throw new TlsFatalAlert(AlertDescription.illegal_parameter);
+ }
return curve.DecodePoint(encoding);
}
|