Vendor functions used from go.crypto