diff --git a/src/BD.Common8.Bcl/Security/Cryptography/AESUtils.cs b/src/BD.Common8.Bcl/Security/Cryptography/AESUtils.cs index 247d6ba79..79db24abc 100644 --- a/src/BD.Common8.Bcl/Security/Cryptography/AESUtils.cs +++ b/src/BD.Common8.Bcl/Security/Cryptography/AESUtils.cs @@ -684,9 +684,9 @@ public static Parameters Create(string data) /// 转换后的字节数组 public byte[] ToByteArray() { - IVByteArray.ThrowIsNull(); - KeyByteArray.ThrowIsNull(); - return [.. BitConverter.GetBytes((ushort)ModeAndPadding), .. IVByteArray, .. KeyByteArray.Reverse()]; + var iv = IVByteArray.ThrowIsNull(); + var key = KeyByteArray.ThrowIsNull(); + return [.. BitConverter.GetBytes((ushort)ModeAndPadding), .. iv, .. Enumerable.Reverse(key)]; } /// diff --git a/src/Shared/GlobalUsings.DotNext.Threading.props b/src/Shared/GlobalUsings.DotNext.Threading.props index 5eadbe0cf..eb10a6e5b 100644 --- a/src/Shared/GlobalUsings.DotNext.Threading.props +++ b/src/Shared/GlobalUsings.DotNext.Threading.props @@ -1,6 +1,7 @@ + - + \ No newline at end of file diff --git a/src/Shared/GlobalUsings.DotNext.props b/src/Shared/GlobalUsings.DotNext.props index b97bc3a8c..7aaa95c35 100644 --- a/src/Shared/GlobalUsings.DotNext.props +++ b/src/Shared/GlobalUsings.DotNext.props @@ -1,5 +1,6 @@ - + + \ No newline at end of file