diff --git a/README.MD b/README.MD index a8d2fe9..14af89c 100644 --- a/README.MD +++ b/README.MD @@ -39,17 +39,6 @@ Various compression implementations that are used across multiple projects. Most | [DotNetZip](https://github.com/DinoChiesa/DotNetZip) | BZip2 and DEFLATE implementations; minor edits have been made | | [ZLibPort](https://github.com/Nanook/zlib-C-To-CSharp-Port) | Adds zlib code for internal and external use; minor edits have been made | -### `SabreTools.IO.Encryption` - -Various encryption implementations that are used across multiple projects. Most of the implementations are be ports of existing C and C++ code. - -#### Supported Encryption Schemes - -| Encryption Scheme | Encrypt | Decrypt | Notes | -| --- | --- | --- | --- | -| AES/CTR | Yes | Yes | Subset of functionality exposed from [The Bouncy Castle Cryptography Library For .NET](https://github.com/bcgit/bc-csharp) | -| MoPaQ | No | Yes | Used to encrypt and decrypt MoPaQ tables for processing | - ### `SabreTools.IO.Extensions` Extensions for `BinaryReader`, `byte[]`, and `Stream` to help with reading and writing various data types. Some data types are locked behind .NET version support. @@ -123,6 +112,17 @@ Custom numeric types and related functionality. **Both-endian** or **bi-endian** numbers are represented by a little-endian value followed by a big-endian value, where both values are the same number. +### `SabreTools.Security.Cryptography` + +Various encryption implementations that are used across multiple projects. Most of the implementations are be ports of existing C and C++ code. + +#### Supported Encryption Schemes + +| Encryption Scheme | Encrypt | Decrypt | Notes | +| --- | --- | --- | --- | +| AES/CTR | Yes | Yes | Subset of functionality exposed from [The Bouncy Castle Cryptography Library For .NET](https://github.com/bcgit/bc-csharp) | +| MoPaQ | No | Yes | Used to encrypt and decrypt MoPaQ tables for processing | + ### `SabreTools.Text.Compare` Classes focused on string comparison by natural sorting. For example, "5" would be sorted before "100". diff --git a/SabreTools.IO/SabreTools.IO.Encryption/AESCTR.cs b/SabreTools.IO/SabreTools.Security.Cryptography/AESCTR.cs similarity index 99% rename from SabreTools.IO/SabreTools.IO.Encryption/AESCTR.cs rename to SabreTools.IO/SabreTools.Security.Cryptography/AESCTR.cs index f3f9dd5..2b8cbfd 100644 --- a/SabreTools.IO/SabreTools.IO.Encryption/AESCTR.cs +++ b/SabreTools.IO/SabreTools.Security.Cryptography/AESCTR.cs @@ -5,7 +5,7 @@ using Org.BouncyCastle.Crypto.Parameters; using Org.BouncyCastle.Security; using SabreTools.IO.Extensions; -namespace SabreTools.IO.Encryption +namespace SabreTools.Security.Cryptography { public static class AESCTR { diff --git a/SabreTools.IO/SabreTools.IO.Encryption/MoPaQDecrypter.cs b/SabreTools.IO/SabreTools.Security.Cryptography/MoPaQDecrypter.cs similarity index 99% rename from SabreTools.IO/SabreTools.IO.Encryption/MoPaQDecrypter.cs rename to SabreTools.IO/SabreTools.Security.Cryptography/MoPaQDecrypter.cs index 7b7e295..529ee8d 100644 --- a/SabreTools.IO/SabreTools.IO.Encryption/MoPaQDecrypter.cs +++ b/SabreTools.IO/SabreTools.Security.Cryptography/MoPaQDecrypter.cs @@ -5,7 +5,7 @@ using SabreTools.Hashing; using SabreTools.IO.Extensions; #pragma warning disable IDE0051 -namespace SabreTools.IO.Encryption +namespace SabreTools.Security.Cryptography { /// /// Handler for decrypting MoPaQ block and table data