11using System ;
2- #if NETFRAMEWORK
2+ #if NETFRAMEWORK && ! NET47_OR_GREATER
33using System . Globalization ;
44using System . IO ;
55using System . Runtime . InteropServices ;
6- #endif // NETFRAMEWORK
6+ #endif
77using System . Security . Cryptography ;
88using System . Text ;
99
@@ -26,7 +26,7 @@ public class EcdsaKey : Key, IDisposable
2626 private EcdsaDigitalSignature _digitalSignature ;
2727 private bool _isDisposed ;
2828
29- #if NETFRAMEWORK
29+ #if NETFRAMEWORK && ! NET47_OR_GREATER
3030 private CngKey _key ;
3131
3232 internal enum KeyBlobMagicNumber
@@ -68,7 +68,7 @@ public override string ToString()
6868 return string . Format ( "ecdsa-sha2-nistp{0}" , KeyLength ) ;
6969 }
7070
71- #if NETFRAMEWORK
71+ #if NETFRAMEWORK && ! NET47_OR_GREATER
7272 /// <summary>
7373 /// Gets the HashAlgorithm to use.
7474 /// </summary>
@@ -153,7 +153,7 @@ public override BigInteger[] Public
153153 byte [ ] curve ;
154154 byte [ ] qx ;
155155 byte [ ] qy ;
156- #if NETFRAMEWORK
156+ #if NETFRAMEWORK && ! NET47_OR_GREATER
157157 var blob = _key . Export ( CngKeyBlobFormat . EccPublicBlob ) ;
158158
159159 KeyBlobMagicNumber magic ;
@@ -221,7 +221,7 @@ public override BigInteger[] Public
221221 /// </summary>
222222 public byte [ ] PrivateKey { get ; private set ; }
223223
224- #if NETFRAMEWORK
224+ #if NETFRAMEWORK && ! NET47_OR_GREATER
225225 /// <summary>
226226 /// Gets the <see cref="ECDsa"/> object.
227227 /// </summary>
@@ -322,7 +322,7 @@ public EcdsaKey(byte[] data)
322322
323323 private void Import ( string curve_oid , byte [ ] publickey , byte [ ] privatekey )
324324 {
325- #if NETFRAMEWORK
325+ #if NETFRAMEWORK && ! NET47_OR_GREATER
326326 KeyBlobMagicNumber curve_magic ;
327327
328328 switch ( GetCurveName ( curve_oid ) )
@@ -444,7 +444,7 @@ private static string GetCurveOid(string curve_s)
444444 }
445445 }
446446
447- #if NETFRAMEWORK
447+ #if NETFRAMEWORK && ! NET47_OR_GREATER
448448 private static string GetCurveName ( string oid )
449449 {
450450 switch ( oid )
@@ -459,7 +459,7 @@ private static string GetCurveName(string oid)
459459 throw new SshException ( "Unexpected OID: " + oid ) ;
460460 }
461461 }
462- #endif // NETFRAMEWORK
462+ #endif
463463
464464 private static string OidByteArrayToString ( byte [ ] oid )
465465 {
0 commit comments