Optimize public key imports for OpenSSL and Common Crypto
authorFilip Navara <filip.navara@gmail.com>
Thu, 13 Sep 2018 16:19:12 +0000 (18:19 +0200)
committerJeremy Barton <jbarton@microsoft.com>
Thu, 13 Sep 2018 16:19:12 +0000 (09:19 -0700)
commit0ffaf3eba035e2f937deb3b52d985a7dfe6599b7
tree8a8a7367a6df011f2e119f0b0de2cd54cb355439
parentf4402a16465e41d89d76828f76f8606a376c2b8e
Optimize public key imports for OpenSSL and Common Crypto

* Optimize RSA and DSA key imports for Common Crypto and OpenSSL.
* Convert key imports to use ReadOnlySpan.

Commit migrated from https://github.com/dotnet/corefx/commit/713420b9fbe2a86be3a8032c8185a7f5ef308290
12 files changed:
src/libraries/Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SecKeyRef.cs
src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Rsa.cs
src/libraries/Common/src/System/Security/Cryptography/DSAKeyFormatHelper.cs
src/libraries/Common/src/System/Security/Cryptography/DSASecurityTransforms.cs
src/libraries/Common/src/System/Security/Cryptography/ECDiffieHellmanSecurityTransforms.cs
src/libraries/Common/src/System/Security/Cryptography/EccKeyFormatHelper.cs
src/libraries/Common/src/System/Security/Cryptography/EccSecurityTransforms.cs
src/libraries/Common/src/System/Security/Cryptography/RSAOpenSsl.cs
src/libraries/Common/src/System/Security/Cryptography/RSASecurityTransforms.cs
src/libraries/System.Security.Cryptography.OpenSsl/src/System.Security.Cryptography.OpenSsl.csproj
src/libraries/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.OSX/X509Pal.cs
src/libraries/System.Security.Cryptography.X509Certificates/src/Internal/Cryptography/Pal.Unix/OpenSslX509Encoder.cs