Rename "Detail" namespaces to "Impl"

This commit is contained in:
Alex Barney 2021-03-18 02:04:05 -07:00
parent 0ab26fdd69
commit 12fe47c91c
45 changed files with 56 additions and 56 deletions

View file

@ -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

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -1,4 +1,4 @@
namespace LibHac.Bcat.Detail.Ipc namespace LibHac.Bcat.Impl.Ipc
{ {
public interface IServiceCreator public interface IServiceCreator
{ {

View file

@ -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

View file

@ -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
{ {

View file

@ -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

View file

@ -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
{ {

View file

@ -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

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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;

View file

@ -1,5 +1,5 @@
using System; using System;
using LibHac.Crypto.Detail; using LibHac.Crypto.Impl;
namespace LibHac.Crypto namespace LibHac.Crypto
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -1,5 +1,5 @@
using System; using System;
using LibHac.Crypto.Detail; using LibHac.Crypto.Impl;
namespace LibHac.Crypto namespace LibHac.Crypto
{ {

View file

@ -1,5 +1,5 @@
using System; using System;
using LibHac.Crypto.Detail; using LibHac.Crypto.Impl;
namespace LibHac.Crypto namespace LibHac.Crypto
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -1,6 +1,6 @@
using System; using System;
namespace LibHac.Crypto.Detail namespace LibHac.Crypto.Impl
{ {
public struct AesEcbModeNi public struct AesEcbModeNi
{ {

View file

@ -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
{ {

View file

@ -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
{ {

View file

@ -1,4 +1,4 @@
namespace LibHac.Crypto.Detail namespace LibHac.Crypto.Impl
{ {
public enum HashState public enum HashState
{ {

View file

@ -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
{ {

View file

@ -1,5 +1,5 @@
using System; using System;
using LibHac.Crypto.Detail; using LibHac.Crypto.Impl;
namespace LibHac.Crypto namespace LibHac.Crypto
{ {

View file

@ -1,5 +1,5 @@
using System; using System;
using LibHac.Crypto.Detail; using LibHac.Crypto.Impl;
namespace LibHac.Crypto namespace LibHac.Crypto
{ {

View file

@ -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
{ {

View file

@ -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

View file

@ -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
{ {

View file

@ -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

View file

@ -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

View file

@ -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);