Makes a new key by copying the key material of an existing key. 
This is a shallow copy without copying any associated links or attributes.
- Parameters
- 
  
    | pExistingKey | [ in ] There can only be one item associated with the globally unique identifer. |  | pCopyName | [ in ] Optional, Name of new key copy, Name must be unique in a Namespace, can be NULL. If NULL, then the Name value assigned to the new key is its GUID. |  | pCopy | [ out ] The key material is copied and associated with a new globally unique identifier. |  
 
- Returns
- 
- 
| Success | P6R::eOk |  |  - 
| Failure | P6R::eInvalidArg | If pKey is NULL. |  - 
| P6R::eNotInitialized | A successful call to initialize was not made before this call. |  - 
| P6R::eNotFound | There is no keystore entry associated with the UUID parameter. |  - 
| P6R::eInvalidState | A successful call to open() was not made before this call. |