peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.36k stars 201 forks source link

Feature Request: openssl_sign() support #773

Open kripper opened 4 years ago

kripper commented 4 years ago

It would be nice to have openssl_sign() support.

jakubmisek commented 4 years ago

this requires PeachPie to target netstandard2.1, then we can implement it

Indigo744 commented 4 years ago

@jakubmisek may I ask why .Net Standard 2.1 is needed here? What is blocking to implements this function?

jakubmisek commented 4 years ago

netstandard2.1 introduces https://docs.microsoft.com/en-us/dotnet/api/system.security.cryptography.asymmetricalgorithm.importencryptedpkcs8privatekey?view=netcore-3.1#System_Security_Cryptography_AsymmetricAlgorithm_ImportEncryptedPkcs8PrivateKey_System_ReadOnlySpan_System_Byte__System_ReadOnlySpan_System_Byte__System_Int32__ which would be needed