Skip to content

Use native crypto support on Windows

First off, thanks for this awesome library!

I'm currently integrating libnice to optimize remote use-cases in Frida, and noticed that OpenSSL / GnuTLS is only needed for HMAC and RNG (as GLib can be used for MD5 hashing). Given the limited API surface I figured I would take a quick stab at a patch to use Windows' native crypto support. Not sure if this is of interest upstream, but sharing it just in case.

Note that I went for the vintage WinCrypt APIs as the Cryptography Next Generation APIs are only available on Vista and newer, and Frida needs to support XP. (To make it possible to use Frida to reverse-engineer legacy software in order to achieve interoperability.)

Merge request reports