diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-20 01:01:05 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-07-20 01:01:05 +0700 |
commit | 4279a095223be8aeac8e96b015eeda1ebd7c3950 (patch) | |
tree | 6a7e64dfeed046abbd92111684eb62a2843cc350 | |
parent | Nerbank.GitVersioning 3.5.108 (diff) | |
download | BouncyCastle.NET-ed25519-4279a095223be8aeac8e96b015eeda1ebd7c3950.tar.xz |
Fix net7.0 syntax
-rw-r--r-- | crypto/src/crypto/engines/AesX86Engine.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crypto/engines/AesX86Engine.cs b/crypto/src/crypto/engines/AesX86Engine.cs index 6d856a765..a7dcfc686 100644 --- a/crypto/src/crypto/engines/AesX86Engine.cs +++ b/crypto/src/crypto/engines/AesX86Engine.cs @@ -332,7 +332,7 @@ namespace Org.BouncyCastle.Crypto.Engines private static Vector128<byte> Load128(Span<byte> t) { #if NET7_0_OR_GREATER - return Vector128.Create(t); + return Vector128.Create<byte>(t); #else if (BitConverter.IsLittleEndian && Unsafe.SizeOf<Vector128<byte>>() == 16) return Unsafe.ReadUnaligned<Vector128<byte>>(ref t[0]); @@ -346,7 +346,7 @@ namespace Org.BouncyCastle.Crypto.Engines private static Vector64<byte> Load64(Span<byte> t) { #if NET7_0_OR_GREATER - return Vector64.Create(t); + return Vector64.Create<byte>(t); #else if (BitConverter.IsLittleEndian && Unsafe.SizeOf<Vector64<byte>>() == 8) return Unsafe.ReadUnaligned<Vector64<byte>>(ref t[0]); |