diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-19 13:33:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-19 13:33:29 +0700 |
commit | 9a6b3389273cfea7b0272887ec59ce922043f5e0 (patch) | |
tree | 85a5d23501a697c590c3a3e8b91d4ececda4d602 /crypto/src/math/ec/ECCurve.cs | |
parent | Refine exception types (diff) | |
download | BouncyCastle.NET-ed25519-9a6b3389273cfea7b0272887ec59ce922043f5e0.tar.xz |
Refactoring in Math.EC
Diffstat (limited to 'crypto/src/math/ec/ECCurve.cs')
-rw-r--r-- | crypto/src/math/ec/ECCurve.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/math/ec/ECCurve.cs b/crypto/src/math/ec/ECCurve.cs index b37d62721..73b70f6de 100644 --- a/crypto/src/math/ec/ECCurve.cs +++ b/crypto/src/math/ec/ECCurve.cs @@ -130,11 +130,8 @@ namespace Org.BouncyCastle.Math.EC protected virtual ECMultiplier CreateDefaultMultiplier() { - GlvEndomorphism glvEndomorphism = m_endomorphism as GlvEndomorphism; - if (glvEndomorphism != null) - { + if (m_endomorphism is GlvEndomorphism glvEndomorphism) return new GlvMultiplier(this, glvEndomorphism); - } return new WNafL2RMultiplier(); } |