From 244ec7567e7964cb2c6023963118de9ed5f84da7 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Thu, 13 Feb 2025 18:59:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Build=20Error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BD.Common8.Bcl/Security/Cryptography/AESUtils.cs | 6 +++--- src/Shared/GlobalUsings.DotNext.Threading.props | 3 ++- src/Shared/GlobalUsings.DotNext.props | 5 +++-- 3 files changed, 8 insertions(+), 6 deletions(-) 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