-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Milestone
Description
Consider this unit test:
[ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
public void IsSupportedInRemoteExecutor()
{
Assert.True(Kmac128.IsSupported);
RemoteExecutor.Invoke(static () =>
{
return Kmac128.IsSupported ? RemoteExecutor.SuccessExitCode : 0;
}).Dispose();
}On a system with OpenSSL 3, this will fail in the remote executor. This is peculiar, because the assert outside of the remote executor passes, but then fails in the remote executor. When run in the remote executor, in
Lines 15 to 16 in a5b9a6a
| internal static SafeEvpMacHandle? Kmac128 { get; } = EvpMacFetch(HashAlgorithmNames.KMAC128); | |
| internal static SafeEvpMacHandle? Kmac256 { get; } = EvpMacFetch(HashAlgorithmNames.KMAC256); |
The properties are null, implying the EvpMacFetch got a haveFeature of 0.
We should investigate the cause of this as there are only two options.
- It is a bug in RemoteExecutor and it should be fixed.
- It is a bug in how we are resolving the EVP_MAC and it should be fixed.