HashBasedMessageAuthenticationCode algoritm HASH_SHA1 exception

I have a problem using function Cryptography.HashBasedMessageAuthenticationCode that returns a value based on a SHA1 hash:

var hash = new Cryptography.HashBasedMessageAuthenticationCode({
    :algorithm => Cryptography.HASH_SHA1,
    :key => key 
});

When making this call (using Connect IQ simulator for a Forerunner 955 Solar) it returns an error message:

Error: Unhandled Exception

Exception: Invalid :algorithm option value specified.

When making the same call but with a SHA256 has, it runs without any problems:

var hash = new Cryptography.HashBasedMessageAuthenticationCode({
    :algorithm => Cryptography.HASH_SHA256,
    :key => key 
});
If I understand the documentation correctly, SHA1 should also work for this function (source: Toybox.Cryptography.HashBasedMessageAuthenticationCode (garmin.com)).
I'm using SDK version 4.2.4 (released April 10, 2023).
Any ideas to overcome this?