mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
Digest algorithms: MD5, SHA1, SHA-2-256, SHA-2-384, SHA-2-512 HMAC algorithms: MD5, SHA1, SHA-2-256, SHA-2-384, SHA-2-512 The rough design: * Use a single PAL identifier for the algorithm across digest and HMAC. * The same identifier will be used in RSA * Apple's hashing primitives require 3 exports per algorithm. Instead of exposing them directly, make a shim-internal struct. * Apple's HMAC primitives require re-asserting the algorithm ID on reset, instead of persisting it in a managed field, just carry it in a shim-internal struct. Regarding the identifiers. While HMAC has an enum for algorithm ID, and we could use the HMAC algorithm ID as our hash algorithm ID, the identifiers for RSA signatures are different (for one, they're strings instead of numbers). The algorithm identifiers for RSA are further different in that they use a single "SHA2" value for algorithm, then disambiguate 256/384/512 based on a second value (hash input size). That, combined with many identifiers across their cryptography libraries being documented as "may change in a future version" (to get people to use the constant expression instead of just writing the literal value) resulted in identifiers matching our (and Windows' and OpenSSL's) notion of an algorithm and not trying to maintain semantic alignment for pass-through benefits. Commit migrated from https://github.com/dotnet/corefx/commit/ae9e966eb7f41c5c2407a45f318b460d8c20d974
49 lines
3.2 KiB
Plaintext
49 lines
3.2 KiB
Plaintext
|
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
|
# Visual Studio 14
|
|
VisualStudioVersion = 14.0.23107.0
|
|
MinimumVisualStudioVersion = 10.0.40219.1
|
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Security.Cryptography.Algorithms", "src\System.Security.Cryptography.Algorithms.csproj", "{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}"
|
|
EndProject
|
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Security.Cryptography.Algorithms.Tests", "tests\System.Security.Cryptography.Algorithms.Tests.csproj", "{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}"
|
|
EndProject
|
|
Global
|
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
OSX_Debug|Any CPU = OSX_Debug|Any CPU
|
|
OSX_Release|Any CPU = OSX_Release|Any CPU
|
|
Unix_Debug|Any CPU = Unix_Debug|Any CPU
|
|
Unix_Release|Any CPU = Unix_Release|Any CPU
|
|
Windows_Debug|Any CPU = Windows_Debug|Any CPU
|
|
Windows_Release|Any CPU = Windows_Release|Any CPU
|
|
EndGlobalSection
|
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.OSX_Debug|Any CPU.ActiveCfg = OSX_Debug|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.OSX_Debug|Any CPU.Build.0 = OSX_Debug|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.OSX_Release|Any CPU.ActiveCfg = OSX_Release|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.OSX_Release|Any CPU.Build.0 = OSX_Release|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Unix_Debug|Any CPU.ActiveCfg = Unix_Debug|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Unix_Debug|Any CPU.Build.0 = Unix_Debug|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Unix_Release|Any CPU.ActiveCfg = Unix_Release|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Unix_Release|Any CPU.Build.0 = Unix_Release|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Windows_Debug|Any CPU.ActiveCfg = Windows_Debug|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Windows_Debug|Any CPU.Build.0 = Windows_Debug|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Windows_Release|Any CPU.ActiveCfg = Windows_Release|Any CPU
|
|
{81A05E2E-E3AE-4246-B4E6-DD5F31FB71F9}.Windows_Release|Any CPU.Build.0 = Windows_Release|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.OSX_Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.OSX_Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.OSX_Release|Any CPU.ActiveCfg = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.OSX_Release|Any CPU.Build.0 = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Unix_Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Unix_Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Unix_Release|Any CPU.ActiveCfg = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Unix_Release|Any CPU.Build.0 = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Windows_Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Windows_Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Windows_Release|Any CPU.ActiveCfg = Debug|Any CPU
|
|
{508A7D81-6462-459C-9F8F-B58FCCCFC8E7}.Windows_Release|Any CPU.Build.0 = Debug|Any CPU
|
|
EndGlobalSection
|
|
GlobalSection(SolutionProperties) = preSolution
|
|
HideSolutionNode = FALSE
|
|
EndGlobalSection
|
|
EndGlobal
|