| 
      
    | 
   
◆ oe_get_private_key()
      
        
          | oe_result_t oe_get_private_key  | 
          ( | 
          const oe_asymmetric_key_params_t *  | 
          key_params,  | 
         
        
           | 
           | 
          const uint8_t *  | 
          key_info,  | 
         
        
           | 
           | 
          size_t  | 
          key_info_size,  | 
         
        
           | 
           | 
          uint8_t **  | 
          key_buffer,  | 
         
        
           | 
           | 
          size_t *  | 
          key_buffer_size  | 
         
        
           | 
          ) | 
           |  | 
         
       
 
Returns a private key that is associated with the identity of the enclave.  
- Parameters
 - 
  
    | [in] | key_params | The parameters for the asymmetric key derivation.  |  
    | [in] | key_info | The enclave-specific key information to derive the key.  |  
    | [in] | key_info_size | The size of the key_info buffer.  |  
    | [out] | key_buffer | A pointer to the buffer that on success contains the requested private key.  |  
    | [out] | key_buffer_size | On success, this contains size of key_buffer. |  
   
   
 
- Return values
 - 
  
    | OE_OK | The key was successfully requested.  |  
    | OE_INVALID_PARAMETER | At least one parameter is invalid.  |  
    | OE_INVALID_CPUSVN | The platform specific data has an invalid CPUSVN.  |  
    | OE_INVALID_ISVSVN | The platform specific data has an invalid ISVSVN.  |  
    | OE_INVALID_KEYNAME | The platform specific data has an invalid KEYNAME.  |  
   
   
 
 
 
     |