Port of BCrypt library for COM interop