I have tried with newer versions of cryptlib (3.4.3) ...
Cryptlib 3.4.3 is still over 8 years old (or even older).
There are some versions floating around but I'm not sure where. You would always need to rely on others to compile one.
I thought cryptlib needed a license to distribute commercially. It's free for personal use so I've never touched it.
I've always used libssh2.dll (but the old version I have here gives the same error).
Edit: With the libssh2.dll 1.10.0 from PHP8 it works (although you need to use a private key file).