Skip to content

Commit

Permalink
Fea #66, 让.NET 8/9支持XP,添加BCrypt对称加密算法支持
Browse files Browse the repository at this point in the history
  - 添加 BCryptSetProperty
  - 添加 BCryptEncrypt
  - 添加 BCryptDecrypt
  - 添加 BCryptGenerateSymmetricKey
  - 添加 BCryptDestroyKey
  - 添加 BCryptExportKey
  - 添加 BCryptImportKey
  • Loading branch information
mingkuang-Chuyu committed May 17, 2024
1 parent 57f8bb8 commit 98dab91
Show file tree
Hide file tree
Showing 5 changed files with 2,326 additions and 113 deletions.
15 changes: 11 additions & 4 deletions ThunksList.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,23 @@
## bcrypt.dll
| 函数 | Fallback
| ---- | -----------
| BCryptOpenAlgorithmProvider | 不存在时,调用CryptAcquireContextW。
| BCryptOpenAlgorithmProvider | 不存在时,调用CryptAcquireContextW。目前支持的算法有:RC2、RC4、AES、DES、3DES、3DES-112、MD2、MD4、MD5、SHA1、SHA256、SHA384、SHA512、RNG、FIPS186DSARNG、DUALECRNG。
| BCryptCloseAlgorithmProvider | 不存在时,调用CryptReleaseContext。
| BCryptGenRandom | 不存在时,调用RtlGenRandom。
| BCryptGetProperty | 不存在时,内部实现。
| BCryptGetProperty | 不存在时,调用CryptGetKeyParam。
| BCryptSetProperty | 不存在时,调用CryptSetKeyParam。
| BCryptCreateHash | 不存在时,调用CryptCreateHash。
| BCryptDestroyHash | 不存在时,调用CryptDestroyHash。
| BCryptHashData | 不存在时,调用CryptHashData。
| BCryptFinishHash | 不存在时,调用CryptGetHashParam。
| BCryptDeriveKeyPBKDF2 | 不存在时,调用CryptCreateHash、CryptHashData。
| BCryptDeriveKeyCapi | 不存在时,调用CryptCreateHash、CryptHashData。
| BCryptDeriveKeyPBKDF2 | 不存在时,调用BCryptHashData。
| BCryptDeriveKeyCapi | 不存在时,调用BCryptHashData。
| BCryptEncrypt | 不存在时,调用CryptEncrypt。
| BCryptDecrypt | 不存在时,调用CryptDecrypt。
| BCryptGenerateSymmetricKey | 不存在时,调用CryptImportKey。
| BCryptDestroyKey | 不存在时,调用CryptDestroyKey。
| BCryptExportKey | 不存在时,调用CryptExportKey。
| BCryptImportKey | 不存在时,调用CryptImportKey。

## bcryptprimitives.dll
| 函数 | Fallback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
Expand Down Expand Up @@ -138,7 +137,6 @@
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
</ClCompile>
Expand Down
Loading

0 comments on commit 98dab91

Please sign in to comment.