system.security.cryptography.openssl如何调用openssl函数

How System.Security.Cryptography.OpenSsl calls OpenSSL functions?

本文关键字:openssl 调用 函数 何调用 security cryptography system      更新时间:2023-10-16

任何人都可以解释包 System.Security.Cryptography.OpenSsl(github:dotnet/corefix)如何调用openssl nanive函数吗?我找不到来自.net C#到OpenSSL C 的Brige。

在这里查看:

https://github.com/dotnet/corefx/tree/master/src/src/common/src/interop/unix/unix/system.security.cryptography.native.native

您链接到参考这些Interop类的代码,这些类别在此处插入此代码:

https://github.com/dotnet/corefx/tree/master/src/native/unix/system.security.cryptography.native.native

呼叫openssl。

您链接到的目录中的类型都是partial类。该目录中的.csproj文件包含来自存储库中其他地方的大量文件。这些文件包含大多数方法和[DllImport]平台调用声明。

引用的 CryptoNativeSystem.Security.Cryptography.Native.OpenSsl)库是在corefx/src/src/native/unix/system.security.cryptography.native上找到的本机垫片,并将呼叫转发到实际的OpenSSL实现。