You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This leads to a somewhat bad experience. IsSupported will return true, but attempting to use AesGcm or AesCcm will result in a SIGABRT of the whole process, with the message "No usable version of libssl was found".
Ideally these properties would correctly handle OpenSSL not being available.
With ChaCha20Poly1305 the situation is slightly worse: The IsSupported property itself trigger the faulting behavior when it calls into the shim to ask if the current version of OpenSSL supports the algorithm.
The text was updated successfully, but these errors were encountered:
This leads to a somewhat bad experience. IsSupported will return true, but attempting to use AesGcm or AesCcm will result in a SIGABRT of the whole process, with the message "No usable version of libssl was found".
Ideally these properties would correctly handle OpenSSL not being available.
Note: ChaChaPoly1305 suffers from the same issue which will be addressed with the AES cases. ChaChaPoly1305 does things a little differently, but it still tries to ask OpenSSL to do something when OpenSSL is not available and crashes the process.
EDIT: Oh @bartonjs updated the original issue with similar warning. 😄 . Will fix ChaCha as part of this.
In #52030,
AesGcm.IsSupported
andAesCcm.IsSupported
were introduced.For macOS, these properties unconditionally return
true
even if there is no usable version of OpenSSL found on the system.runtime/src/libraries/System.Security.Cryptography.Algorithms/src/System/Security/Cryptography/AesGcm.cs
Line 31 in 5a47690
This leads to a somewhat bad experience.
IsSupported
will returntrue
, but attempting to useAesGcm
orAesCcm
will result in a SIGABRT of the whole process, with the message "No usable version of libssl was found".Ideally these properties would correctly handle OpenSSL not being available.
With ChaCha20Poly1305 the situation is slightly worse: The IsSupported property itself trigger the faulting behavior when it calls into the shim to ask if the current version of OpenSSL supports the algorithm.
The text was updated successfully, but these errors were encountered: