From be9b1c0446a7b229267bb549b8545d8d41f045b4 Mon Sep 17 00:00:00 2001 From: Tony Karavasilev Date: Mon, 17 Feb 2020 23:46:01 +0200 Subject: [PATCH] Moved the interfaces for the utility container objects to the proper namespace. --- .../AsymmetricKeyPairGenerationInterface.php | 4 ++-- .../{Randomness => Containers}/DataShufflingInterface.php | 4 ++-- .../ElementPickingInterface.php | 4 ++-- .../EncryptionKeyGenerationInterface.php | 4 ++-- .../{Randomness => Containers}/FileErasureInterface.php | 4 ++-- .../HashingKeyGenerationInterface.php | 4 ++-- .../TokenGenerationInterface.php | 4 ++-- src/CryptoManana/Utilities/DataShuffler.php | 2 +- src/CryptoManana/Utilities/ElementPicker.php | 2 +- src/CryptoManana/Utilities/FileShredder.php | 2 +- src/CryptoManana/Utilities/TokenGenerator.php | 8 ++++---- 11 files changed, 21 insertions(+), 21 deletions(-) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/AsymmetricKeyPairGenerationInterface.php (93%) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/DataShufflingInterface.php (86%) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/ElementPickingInterface.php (87%) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/EncryptionKeyGenerationInterface.php (95%) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/FileErasureInterface.php (80%) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/HashingKeyGenerationInterface.php (96%) rename src/CryptoManana/Core/Interfaces/{Randomness => Containers}/TokenGenerationInterface.php (95%) diff --git a/src/CryptoManana/Core/Interfaces/Randomness/AsymmetricKeyPairGenerationInterface.php b/src/CryptoManana/Core/Interfaces/Containers/AsymmetricKeyPairGenerationInterface.php similarity index 93% rename from src/CryptoManana/Core/Interfaces/Randomness/AsymmetricKeyPairGenerationInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/AsymmetricKeyPairGenerationInterface.php index a11607a..e65a8b3 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/AsymmetricKeyPairGenerationInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/AsymmetricKeyPairGenerationInterface.php @@ -4,14 +4,14 @@ * Interface for security asymmetric key pair generation capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; use \CryptoManana\DataStructures\KeyPair as KeyPairStructure; /** * Interface AsymmetricKeyPairGenerationInterface - Interface for asymmetric key pair generation. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface AsymmetricKeyPairGenerationInterface { diff --git a/src/CryptoManana/Core/Interfaces/Randomness/DataShufflingInterface.php b/src/CryptoManana/Core/Interfaces/Containers/DataShufflingInterface.php similarity index 86% rename from src/CryptoManana/Core/Interfaces/Randomness/DataShufflingInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/DataShufflingInterface.php index 2aa7cf0..bf914d2 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/DataShufflingInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/DataShufflingInterface.php @@ -4,12 +4,12 @@ * Interface for specifying data shuffling capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; /** * Interface DataShufflingInterface - Interface for data shuffling capabilities. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface DataShufflingInterface { diff --git a/src/CryptoManana/Core/Interfaces/Randomness/ElementPickingInterface.php b/src/CryptoManana/Core/Interfaces/Containers/ElementPickingInterface.php similarity index 87% rename from src/CryptoManana/Core/Interfaces/Randomness/ElementPickingInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/ElementPickingInterface.php index 624abad..49694d4 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/ElementPickingInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/ElementPickingInterface.php @@ -4,12 +4,12 @@ * Interface for specifying element picking/choosing capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; /** * Interface ElementPickingInterface - Interface for element picking capabilities. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface ElementPickingInterface { diff --git a/src/CryptoManana/Core/Interfaces/Randomness/EncryptionKeyGenerationInterface.php b/src/CryptoManana/Core/Interfaces/Containers/EncryptionKeyGenerationInterface.php similarity index 95% rename from src/CryptoManana/Core/Interfaces/Randomness/EncryptionKeyGenerationInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/EncryptionKeyGenerationInterface.php index b7d0777..b08fd78 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/EncryptionKeyGenerationInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/EncryptionKeyGenerationInterface.php @@ -4,12 +4,12 @@ * Interface for security encryption key and initialization vector (IV) generation capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; /** * Interface EncryptionKeyGenerationInterface - Interface for encryption key and IV generation. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface EncryptionKeyGenerationInterface { diff --git a/src/CryptoManana/Core/Interfaces/Randomness/FileErasureInterface.php b/src/CryptoManana/Core/Interfaces/Containers/FileErasureInterface.php similarity index 80% rename from src/CryptoManana/Core/Interfaces/Randomness/FileErasureInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/FileErasureInterface.php index fd8a21b..605d561 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/FileErasureInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/FileErasureInterface.php @@ -4,12 +4,12 @@ * Interface for specifying file erasure capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; /** * Interface FileErasureInterface - Interface for file erasure capabilities. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface FileErasureInterface { diff --git a/src/CryptoManana/Core/Interfaces/Randomness/HashingKeyGenerationInterface.php b/src/CryptoManana/Core/Interfaces/Containers/HashingKeyGenerationInterface.php similarity index 96% rename from src/CryptoManana/Core/Interfaces/Randomness/HashingKeyGenerationInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/HashingKeyGenerationInterface.php index a19e0b5..75cb892 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/HashingKeyGenerationInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/HashingKeyGenerationInterface.php @@ -4,12 +4,12 @@ * Interface for security hashing key and salt string generation capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; /** * Interface HashingKeyGenerationInterface - Interface for hashing key and salt string generation. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface HashingKeyGenerationInterface { diff --git a/src/CryptoManana/Core/Interfaces/Randomness/TokenGenerationInterface.php b/src/CryptoManana/Core/Interfaces/Containers/TokenGenerationInterface.php similarity index 95% rename from src/CryptoManana/Core/Interfaces/Randomness/TokenGenerationInterface.php rename to src/CryptoManana/Core/Interfaces/Containers/TokenGenerationInterface.php index 30462f2..6c9dff2 100644 --- a/src/CryptoManana/Core/Interfaces/Randomness/TokenGenerationInterface.php +++ b/src/CryptoManana/Core/Interfaces/Containers/TokenGenerationInterface.php @@ -4,12 +4,12 @@ * Interface for security token and password string generation capabilities. */ -namespace CryptoManana\Core\Interfaces\Randomness; +namespace CryptoManana\Core\Interfaces\Containers; /** * Interface TokenGenerationInterface - Interface for security token and password generation. * - * @package CryptoManana\Core\Interfaces\Randomness + * @package CryptoManana\Core\Interfaces\Containers */ interface TokenGenerationInterface { diff --git a/src/CryptoManana/Utilities/DataShuffler.php b/src/CryptoManana/Utilities/DataShuffler.php index 4f7f77f..7c9d34a 100644 --- a/src/CryptoManana/Utilities/DataShuffler.php +++ b/src/CryptoManana/Utilities/DataShuffler.php @@ -7,7 +7,7 @@ namespace CryptoManana\Utilities; use \CryptoManana\Core\Abstractions\Containers\AbstractRandomnessInjectable as RandomnessContainer; -use \CryptoManana\Core\Interfaces\Randomness\DataShufflingInterface as Shuffling; +use \CryptoManana\Core\Interfaces\Containers\DataShufflingInterface as Shuffling; use \CryptoManana\Core\StringBuilder as StringBuilder; /** diff --git a/src/CryptoManana/Utilities/ElementPicker.php b/src/CryptoManana/Utilities/ElementPicker.php index 48cf691..b6d2901 100644 --- a/src/CryptoManana/Utilities/ElementPicker.php +++ b/src/CryptoManana/Utilities/ElementPicker.php @@ -7,7 +7,7 @@ namespace CryptoManana\Utilities; use \CryptoManana\Core\Abstractions\Containers\AbstractRandomnessInjectable as RandomnessContainer; -use \CryptoManana\Core\Interfaces\Randomness\ElementPickingInterface as ElementChoosing; +use \CryptoManana\Core\Interfaces\Containers\ElementPickingInterface as ElementChoosing; use \CryptoManana\Core\StringBuilder as StringBuilder; /** diff --git a/src/CryptoManana/Utilities/FileShredder.php b/src/CryptoManana/Utilities/FileShredder.php index 1b101f8..b195dc3 100644 --- a/src/CryptoManana/Utilities/FileShredder.php +++ b/src/CryptoManana/Utilities/FileShredder.php @@ -7,7 +7,7 @@ namespace CryptoManana\Utilities; use \CryptoManana\Core\Abstractions\Containers\AbstractRandomnessInjectable as RandomnessContainer; -use \CryptoManana\Core\Interfaces\Randomness\FileErasureInterface as SecureFileErasure; +use \CryptoManana\Core\Interfaces\Containers\FileErasureInterface as SecureFileErasure; use \CryptoManana\Core\Traits\CommonValidations\FileNameValidationTrait as ValidateFileNames; /** diff --git a/src/CryptoManana/Utilities/TokenGenerator.php b/src/CryptoManana/Utilities/TokenGenerator.php index 561ea97..a6f24d0 100644 --- a/src/CryptoManana/Utilities/TokenGenerator.php +++ b/src/CryptoManana/Utilities/TokenGenerator.php @@ -7,10 +7,10 @@ namespace CryptoManana\Utilities; use \CryptoManana\Core\Abstractions\Containers\AbstractRandomnessInjectable as RandomnessContainer; -use \CryptoManana\Core\Interfaces\Randomness\AsymmetricKeyPairGenerationInterface as KeyPairGeneration; -use \CryptoManana\Core\Interfaces\Randomness\EncryptionKeyGenerationInterface as EncryptionKeyGeneration; -use \CryptoManana\Core\Interfaces\Randomness\HashingKeyGenerationInterface as HashingKeyGeneration; -use \CryptoManana\Core\Interfaces\Randomness\TokenGenerationInterface as TokenStringGeneration; +use \CryptoManana\Core\Interfaces\Containers\AsymmetricKeyPairGenerationInterface as KeyPairGeneration; +use \CryptoManana\Core\Interfaces\Containers\EncryptionKeyGenerationInterface as EncryptionKeyGeneration; +use \CryptoManana\Core\Interfaces\Containers\HashingKeyGenerationInterface as HashingKeyGeneration; +use \CryptoManana\Core\Interfaces\Containers\TokenGenerationInterface as TokenStringGeneration; use \CryptoManana\Core\Traits\CommonValidations\KeyPairSizeValidationTrait as KeyPairSizeValidations; use \CryptoManana\DataStructures\KeyPair as KeyPairStructure; use \CryptoManana\Core\StringBuilder as StringBuilder;