Commit 90d1f44
Config profiles support (#1)
* Update ReflectionHelper.cs with refurbished instance creaters
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add config profile attributes
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add config profile class and interface
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Refactor HashFactory to include config profiles and way better lambdas
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update _implementations access in Hash Factory Extensions
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename ConfigProfilesAttribute to HashConfigProfilesAttribute
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename ConfigProfilesAttribute to HashConfigProfilesAttribute
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Delete HashifyNet/Core/Attributes/HashConfigProfilesAttribute.cs
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add files via upload
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Switch config profile attribute implementation to a CLS-Compliant code
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update attribute references
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Delete HashifyNet/Core/Attributes/HashConfigProfileAttribute.cs
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename HashConfigProfileAttribute to DefineHashConfigProfile
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename HashConfigProfile to DefineHashConfigProfile
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Remove redundant usings
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add config profile definition attribute
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add config declaration attribute
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update BuzHashConfig with correct usings and comments
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update using directives
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add config profile definition attribute
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add config profile declaration attribute
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Enhance DefineHashConfigProfileAttribute with length checks
Added validation for name and description length in DefineHashConfigProfileAttribute.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Reduce max name length in DefineHashConfigProfileAttribute
Updated maximum name length from 255 to 64 characters.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Enhance validation for DefineHashConfigProfileAttribute
Updated validation rules for Name and Description properties to include minimum length requirements.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Refactor Argon2idConfig with new attributes
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add Argon2id Config Profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Delete HashifyNet/Algorithms/Argon2id/ConfigProfiles directory
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename Argon2idConfig defaults to include "Profile" in name
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Repush previous commit
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update Argon2id default configs to include Profile in their names
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Delete HashifyNet/Algorithms/BuzHash/DefaultBuzHashConfig.cs
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename DefaultBuzHashConfig
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename DefaultBuzHashConfig
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Delete HashifyNet/Algorithms/Pearson/WikipediaPearsonConfig.cs
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename WikipediaPearsonConfig
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Rename WikipediaPearsonConfig
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Seal the wikipedia profile of pearson config
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Refactor BuzHashConfigProfileDefault class
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Refactor FNVConfig by adding hash profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add FNV Config Profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Cover implementation in scopes for clarity
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Pad fields
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Move out CRC standards and use profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add CRC Config Profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update Pearson Tests to switch to Config Profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Refactor WikipediaPearsonConfig_Tests for new class
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update FactoryTests to use new config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update universal tests to use config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update BuzHash tests to use config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update DefaultBuzHashConfig tests to use config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Refactor FNV1Base_Tests
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add Config Profile Helper for FNV Tests
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Use ConfigProfileHelper for FNV tests
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Use ConfigProfileHelper for FNV Tests
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Use ConfigProfileHelper for FNV Tests
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update CRC tests to use config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update CRC tests to use config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update Argon2id tests to use config profiles
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Enhance error messages in DefineHashConfigProfileAttribute
Updated error messages to include current values for better debugging.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Modify minimum name length in DefineHashConfigProfileAttribute
Updated minimum name length from 4 to 3 characters.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add GetConfigProfiles extension
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Enhance FactoryTests with config profile validations
Added tests for retrieving and validating hash algorithm configurations and profiles.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Update HashifyNet/Algorithms/FNV/ConfigProfiles/FNVConfigProfile64Bits.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Change configType to configProfileType
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Remove trailing whitespace
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Remove extra space
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Reorder fields
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add ProfileType property to IHashConfigProfile
Updated IHashConfigProfile interface to include ProfileType property.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add ProfileType to HashConfigProfile class
Added ProfileType property and updated constructor to include it. Enhanced validation for profileType parameter.
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Pass configProfileType to HashConfigProfile class
Signed-off-by: Xen <lordofxen@deskasoft.com>
* Add Factory_GetConfigProfiles_Create_Works test
Signed-off-by: Xen <lordofxen@deskasoft.com>
---------
Signed-off-by: Xen <lordofxen@deskasoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent cfa0e25 commit 90d1f44
File tree
108 files changed
+5174
-1683
lines changed- HashifyNet.UnitTests
- Algorithms
- Argon2id
- BuzHash
- CRC
- FNV
- Utilities
- Pearson
- Core
- HashifyNet
- Algorithms
- Argon2id
- ConfigProfiles
- BuzHash
- CRC
- ConfigProfiles
- FNV
- ConfigProfiles
- Pearson
- Core
- Attributes
- Config
- Factory
- Utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
108 files changed
+5174
-1683
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
| 447 | + | |
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments