|
|
@@ -66,24 +66,6 @@ namespace Renci.SshNet.Abstractions
|
|
|
return System.Security.Cryptography.SHA512.Create();
|
|
|
}
|
|
|
|
|
|
-#if FEATURE_HASH_RIPEMD160_CREATE || FEATURE_HASH_RIPEMD160_MANAGED
|
|
|
- public static System.Security.Cryptography.RIPEMD160 CreateRIPEMD160()
|
|
|
- {
|
|
|
-#if FEATURE_HASH_RIPEMD160_CREATE
|
|
|
-#pragma warning disable CA5350 // Do not use weak cryptographic algorithms
|
|
|
- return System.Security.Cryptography.RIPEMD160.Create();
|
|
|
-#pragma warning restore CA5350 // Do not use weak cryptographic algorithms
|
|
|
-#else
|
|
|
- return new System.Security.Cryptography.RIPEMD160Managed();
|
|
|
-#endif
|
|
|
- }
|
|
|
-#else
|
|
|
- public static global::SshNet.Security.Cryptography.RIPEMD160 CreateRIPEMD160()
|
|
|
- {
|
|
|
- return new global::SshNet.Security.Cryptography.RIPEMD160();
|
|
|
- }
|
|
|
-#endif // FEATURE_HASH_RIPEMD160
|
|
|
-
|
|
|
public static System.Security.Cryptography.HMACMD5 CreateHMACMD5(byte[] key)
|
|
|
{
|
|
|
#pragma warning disable CA5351 // Do not use broken cryptographic algorithms
|
|
|
@@ -141,19 +123,5 @@ namespace Renci.SshNet.Abstractions
|
|
|
{
|
|
|
return new HMACSHA512(key, hashSize);
|
|
|
}
|
|
|
-
|
|
|
-#if FEATURE_HMAC_RIPEMD160
|
|
|
- public static System.Security.Cryptography.HMACRIPEMD160 CreateHMACRIPEMD160(byte[] key)
|
|
|
- {
|
|
|
-#pragma warning disable CA5350 // Do not use weak cryptographic algorithms
|
|
|
- return new System.Security.Cryptography.HMACRIPEMD160(key);
|
|
|
-#pragma warning restore CA5350 // Do not use weak cryptographic algorithms
|
|
|
- }
|
|
|
-#else
|
|
|
- public static global::SshNet.Security.Cryptography.HMACRIPEMD160 CreateHMACRIPEMD160(byte[] key)
|
|
|
- {
|
|
|
- return new global::SshNet.Security.Cryptography.HMACRIPEMD160(key);
|
|
|
- }
|
|
|
-#endif // FEATURE_HMAC_RIPEMD160
|
|
|
}
|
|
|
}
|