mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Rename "Detail" namespaces to "Impl"
This commit is contained in:
parent
0ab26fdd69
commit
12fe47c91c
45 changed files with 56 additions and 56 deletions
|
@ -1,7 +1,7 @@
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using LibHac.Bcat.Detail.Ipc;
|
using LibHac.Bcat.Impl.Ipc;
|
||||||
using LibHac.Bcat.Detail.Service;
|
using LibHac.Bcat.Impl.Service;
|
||||||
using LibHac.Bcat.Detail.Service.Core;
|
using LibHac.Bcat.Impl.Service.Core;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
|
|
||||||
namespace LibHac.Bcat
|
namespace LibHac.Bcat
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using LibHac.Sm;
|
using LibHac.Sm;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Ipc
|
namespace LibHac.Bcat.Impl.Ipc
|
||||||
{
|
{
|
||||||
internal class BcatServiceObject : IServiceObject
|
internal class BcatServiceObject : IServiceObject
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Ipc
|
namespace LibHac.Bcat.Impl.Ipc
|
||||||
{
|
{
|
||||||
public interface IDeliveryCacheDirectoryService : IDisposable
|
public interface IDeliveryCacheDirectoryService : IDisposable
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Ipc
|
namespace LibHac.Bcat.Impl.Ipc
|
||||||
{
|
{
|
||||||
public interface IDeliveryCacheFileService : IDisposable
|
public interface IDeliveryCacheFileService : IDisposable
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Ipc
|
namespace LibHac.Bcat.Impl.Ipc
|
||||||
{
|
{
|
||||||
public interface IDeliveryCacheStorageService : IDisposable
|
public interface IDeliveryCacheStorageService : IDisposable
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace LibHac.Bcat.Detail.Ipc
|
namespace LibHac.Bcat.Impl.Ipc
|
||||||
{
|
{
|
||||||
public interface IServiceCreator
|
public interface IServiceCreator
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service
|
namespace LibHac.Bcat.Impl.Service
|
||||||
{
|
{
|
||||||
[Flags]
|
[Flags]
|
||||||
internal enum AccessControl
|
internal enum AccessControl
|
|
@ -5,7 +5,7 @@ using LibHac.Common;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.Fs.Fsa;
|
using LibHac.Fs.Fsa;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service.Core
|
namespace LibHac.Bcat.Impl.Service.Core
|
||||||
{
|
{
|
||||||
internal class DeliveryCacheDirectoryMetaAccessor
|
internal class DeliveryCacheDirectoryMetaAccessor
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service.Core
|
namespace LibHac.Bcat.Impl.Service.Core
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Explicit, Size = 0x40)]
|
[StructLayout(LayoutKind.Explicit, Size = 0x40)]
|
||||||
internal struct DeliveryCacheDirectoryMetaEntry
|
internal struct DeliveryCacheDirectoryMetaEntry
|
|
@ -6,7 +6,7 @@ using LibHac.Fs;
|
||||||
using LibHac.Fs.Fsa;
|
using LibHac.Fs.Fsa;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service.Core
|
namespace LibHac.Bcat.Impl.Service.Core
|
||||||
{
|
{
|
||||||
internal class DeliveryCacheFileMetaAccessor
|
internal class DeliveryCacheFileMetaAccessor
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service.Core
|
namespace LibHac.Bcat.Impl.Service.Core
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Explicit, Size = 0x80)]
|
[StructLayout(LayoutKind.Explicit, Size = 0x80)]
|
||||||
internal struct DeliveryCacheFileMetaEntry
|
internal struct DeliveryCacheFileMetaEntry
|
|
@ -6,7 +6,7 @@ using LibHac.Fs.Fsa;
|
||||||
using LibHac.Fs.Shim;
|
using LibHac.Fs.Shim;
|
||||||
using static LibHac.Fs.StringTraits;
|
using static LibHac.Fs.StringTraits;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service.Core
|
namespace LibHac.Bcat.Impl.Service.Core
|
||||||
{
|
{
|
||||||
internal class DeliveryCacheStorageManager
|
internal class DeliveryCacheStorageManager
|
||||||
{
|
{
|
|
@ -1,9 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Bcat.Detail.Ipc;
|
using LibHac.Bcat.Impl.Ipc;
|
||||||
using LibHac.Bcat.Detail.Service.Core;
|
using LibHac.Bcat.Impl.Service.Core;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service
|
namespace LibHac.Bcat.Impl.Service
|
||||||
{
|
{
|
||||||
internal class DeliveryCacheDirectoryService : IDeliveryCacheDirectoryService
|
internal class DeliveryCacheDirectoryService : IDeliveryCacheDirectoryService
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Bcat.Detail.Ipc;
|
using LibHac.Bcat.Impl.Ipc;
|
||||||
using LibHac.Bcat.Detail.Service.Core;
|
using LibHac.Bcat.Impl.Service.Core;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.Fs.Fsa;
|
using LibHac.Fs.Fsa;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service
|
namespace LibHac.Bcat.Impl.Service
|
||||||
{
|
{
|
||||||
internal class DeliveryCacheFileService : IDeliveryCacheFileService
|
internal class DeliveryCacheFileService : IDeliveryCacheFileService
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using LibHac.Bcat.Detail.Ipc;
|
using LibHac.Bcat.Impl.Ipc;
|
||||||
using LibHac.Bcat.Detail.Service.Core;
|
using LibHac.Bcat.Impl.Service.Core;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service
|
namespace LibHac.Bcat.Impl.Service
|
||||||
{
|
{
|
||||||
internal class DeliveryCacheStorageService : IDeliveryCacheStorageService
|
internal class DeliveryCacheStorageService : IDeliveryCacheStorageService
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using LibHac.Arp;
|
using LibHac.Arp;
|
||||||
using LibHac.Bcat.Detail.Ipc;
|
using LibHac.Bcat.Impl.Ipc;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Bcat.Detail.Service
|
namespace LibHac.Bcat.Impl.Service
|
||||||
{
|
{
|
||||||
internal class ServiceCreator : IServiceCreator
|
internal class ServiceCreator : IServiceCreator
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
using LibHac.Diag;
|
using LibHac.Diag;
|
||||||
|
|
||||||
using AesNi = System.Runtime.Intrinsics.X86.Aes;
|
using AesNi = System.Runtime.Intrinsics.X86.Aes;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesCbcMode
|
public struct AesCbcMode
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using System.Runtime.Intrinsics.X86;
|
using System.Runtime.Intrinsics.X86;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesCbcModeNi
|
public struct AesCbcModeNi
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@ using System.Diagnostics;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesCore
|
public struct AesCore
|
||||||
{
|
{
|
|
@ -4,10 +4,9 @@ using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using System.Runtime.Intrinsics.X86;
|
using System.Runtime.Intrinsics.X86;
|
||||||
|
|
||||||
using AesNi = System.Runtime.Intrinsics.X86.Aes;
|
using AesNi = System.Runtime.Intrinsics.X86.Aes;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
[StructLayout(LayoutKind.Sequential, Size = RoundKeyCount * RoundKeySize)]
|
[StructLayout(LayoutKind.Sequential, Size = RoundKeyCount * RoundKeySize)]
|
||||||
public struct AesCoreNi
|
public struct AesCoreNi
|
|
@ -7,7 +7,7 @@ using System.Security.Cryptography;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesCtrMode
|
public struct AesCtrMode
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using System.Runtime.Intrinsics.X86;
|
using System.Runtime.Intrinsics.X86;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesCtrModeNi
|
public struct AesCtrModeNi
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesEcbMode
|
public struct AesEcbMode
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesEcbModeNi
|
public struct AesEcbModeNi
|
||||||
{
|
{
|
|
@ -5,7 +5,7 @@ using System.Runtime.InteropServices;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesXtsMode
|
public struct AesXtsMode
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@ using System.Runtime.Intrinsics;
|
||||||
using System.Runtime.Intrinsics.X86;
|
using System.Runtime.Intrinsics.X86;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct AesXtsModeNi
|
public struct AesXtsModeNi
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public enum HashState
|
public enum HashState
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@ using System.Diagnostics;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.Crypto.Detail
|
namespace LibHac.Crypto.Impl
|
||||||
{
|
{
|
||||||
public struct Sha256Impl
|
public struct Sha256Impl
|
||||||
{
|
{
|
|
@ -1,5 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using LibHac.Crypto.Detail;
|
using LibHac.Crypto.Impl;
|
||||||
|
|
||||||
namespace LibHac.Crypto
|
namespace LibHac.Crypto
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.Fs.Fsa;
|
using LibHac.Fs.Fsa;
|
||||||
using LibHac.FsSystem;
|
using LibHac.FsSystem;
|
||||||
using LibHac.FsSystem.Detail;
|
using LibHac.FsSystem.Impl;
|
||||||
|
|
||||||
namespace LibHac.FsSrv.FsCreator
|
namespace LibHac.FsSrv.FsCreator
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@ using LibHac.Common.Keys;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.Fs.Fsa;
|
using LibHac.Fs.Fsa;
|
||||||
using LibHac.FsSystem;
|
using LibHac.FsSystem;
|
||||||
using LibHac.FsSystem.Detail;
|
using LibHac.FsSystem.Impl;
|
||||||
using LibHac.FsSystem.NcaUtils;
|
using LibHac.FsSystem.NcaUtils;
|
||||||
|
|
||||||
namespace LibHac.FsSrv.FsCreator
|
namespace LibHac.FsSrv.FsCreator
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
|
|
||||||
namespace LibHac.FsSystem.Detail
|
namespace LibHac.FsSystem.Impl
|
||||||
{
|
{
|
||||||
public interface IPartitionFileSystemEntry
|
public interface IPartitionFileSystemEntry
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@ using LibHac.Common;
|
||||||
using LibHac.Crypto;
|
using LibHac.Crypto;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.Fs.Fsa;
|
using LibHac.Fs.Fsa;
|
||||||
using LibHac.FsSystem.Detail;
|
using LibHac.FsSystem.Impl;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.FsSystem
|
namespace LibHac.FsSystem
|
||||||
|
|
|
@ -4,7 +4,7 @@ using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using LibHac.Common;
|
using LibHac.Common;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.FsSystem.Detail;
|
using LibHac.FsSystem.Impl;
|
||||||
using LibHac.Util;
|
using LibHac.Util;
|
||||||
|
|
||||||
namespace LibHac.FsSystem
|
namespace LibHac.FsSystem
|
||||||
|
|
|
@ -6,6 +6,7 @@ using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Intrinsics;
|
using System.Runtime.Intrinsics;
|
||||||
using LibHac;
|
using LibHac;
|
||||||
using LibHac.Crypto;
|
using LibHac.Crypto;
|
||||||
|
using LibHac.Crypto.Impl;
|
||||||
using LibHac.Fs;
|
using LibHac.Fs;
|
||||||
using LibHac.FsSystem;
|
using LibHac.FsSystem;
|
||||||
|
|
||||||
|
@ -253,7 +254,7 @@ namespace hactoolnet
|
||||||
while (Unsafe.IsAddressLessThan(ref inBlock, ref end))
|
while (Unsafe.IsAddressLessThan(ref inBlock, ref end))
|
||||||
{
|
{
|
||||||
var inputVec = Unsafe.ReadUnaligned<Vector128<byte>>(ref inBlock);
|
var inputVec = Unsafe.ReadUnaligned<Vector128<byte>>(ref inBlock);
|
||||||
Vector128<byte> outputVec = LibHac.Crypto.Detail.AesCoreNi.EncryptBlock(inputVec, keyVec);
|
Vector128<byte> outputVec = AesCoreNi.EncryptBlock(inputVec, keyVec);
|
||||||
Unsafe.WriteUnaligned(ref outBlock, outputVec);
|
Unsafe.WriteUnaligned(ref outBlock, outputVec);
|
||||||
|
|
||||||
inBlock = ref Unsafe.Add(ref inBlock, Aes.BlockSize);
|
inBlock = ref Unsafe.Add(ref inBlock, Aes.BlockSize);
|
||||||
|
@ -273,7 +274,7 @@ namespace hactoolnet
|
||||||
while (Unsafe.IsAddressLessThan(ref inBlock, ref end))
|
while (Unsafe.IsAddressLessThan(ref inBlock, ref end))
|
||||||
{
|
{
|
||||||
var inputVec = Unsafe.ReadUnaligned<Vector128<byte>>(ref inBlock);
|
var inputVec = Unsafe.ReadUnaligned<Vector128<byte>>(ref inBlock);
|
||||||
Vector128<byte> outputVec = LibHac.Crypto.Detail.AesCoreNi.DecryptBlock(inputVec, keyVec);
|
Vector128<byte> outputVec = AesCoreNi.DecryptBlock(inputVec, keyVec);
|
||||||
Unsafe.WriteUnaligned(ref outBlock, outputVec);
|
Unsafe.WriteUnaligned(ref outBlock, outputVec);
|
||||||
|
|
||||||
inBlock = ref Unsafe.Add(ref inBlock, Aes.BlockSize);
|
inBlock = ref Unsafe.Add(ref inBlock, Aes.BlockSize);
|
||||||
|
|
Loading…
Reference in a new issue