<data name="PlatformNotSupported_CryptographyOpenSSL" xml:space="preserve">
<value>OpenSSL is not supported on this platform.</value>
</data>
+ <data name="PlatformNotSupported_CryptographyOpenSSLNotFound" xml:space="preserve">
+ <value>OpenSSL is required for algorithm '{0}' but could not be found or loaded.</value>
+ </data>
<data name="Security_AccessDenied" xml:space="preserve">
<value>Access is denied.</value>
</data>
{
if (!Interop.OpenSslNoInit.OpenSslIsAvailable)
{
- throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(DSAOpenSsl)));
+ throw new PlatformNotSupportedException(SR.Format(SR.PlatformNotSupported_CryptographyOpenSSLNotFound, nameof(DSAOpenSsl)));
}
}
}
{
if (!Interop.OpenSslNoInit.OpenSslIsAvailable)
{
- throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(ECDiffieHellmanOpenSsl)));
+ throw new PlatformNotSupportedException(SR.Format(SR.PlatformNotSupported_CryptographyOpenSSLNotFound, nameof(ECDiffieHellmanOpenSsl)));
}
}
}
{
if (!Interop.OpenSslNoInit.OpenSslIsAvailable)
{
- throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(ECDsaOpenSsl)));
+ throw new PlatformNotSupportedException(SR.Format(SR.PlatformNotSupported_CryptographyOpenSSLNotFound, nameof(ECDsaOpenSsl)));
}
}
}
{
if (!Interop.OpenSslNoInit.OpenSslIsAvailable)
{
- throw new PlatformNotSupportedException(SR.Format(SR.Cryptography_AlgorithmNotSupported, nameof(RSAOpenSsl)));
+ throw new PlatformNotSupportedException(SR.Format(SR.PlatformNotSupported_CryptographyOpenSSLNotFound, nameof(RSAOpenSsl)));
}
}
}