Obtain the private key. The caller applies for and releases memory for the private key marked as "key".