Minor cleanup: remove unnecessary conditional compilation line
This commit is contained in:
parent
5d22a42a2a
commit
e7fa69d63c
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
@ -88,13 +88,12 @@ namespace Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption
|
||||||
if (configuration.EncryptionAlgorithmType == typeof(Aes))
|
if (configuration.EncryptionAlgorithmType == typeof(Aes))
|
||||||
{
|
{
|
||||||
Func<Aes> factory = null;
|
Func<Aes> factory = null;
|
||||||
#if !NETSTANDARD1_3
|
|
||||||
if (OSVersionUtil.IsWindows())
|
if (OSVersionUtil.IsWindows())
|
||||||
{
|
{
|
||||||
// If we're on desktop CLR and running on Windows, use the FIPS-compliant implementation.
|
// If we're on desktop CLR and running on Windows, use the FIPS-compliant implementation.
|
||||||
factory = () => new AesCryptoServiceProvider();
|
factory = () => new AesCryptoServiceProvider();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return factory ?? Aes.Create;
|
return factory ?? Aes.Create;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue