Allows the modification of the meta data associated with an existing key.
Note that neither the key's length or class can be changed by this function. The caller should use the replaceKey() method for modifying a key's length or class (e.g., SYMMETRIC).
TO leave the state meta-data of the key unchanged assign it to 'CKS_MAX' in the pKey parameter. To leave the cipher meta-data of the key unchanged assign it to 'CIPHER_MAX' in the pkey parameter.
- Parameters
-
pNamespace | [ in ] An identifier to separate the namespace of pName between applications |
pName | [ in ] An application defined, unique identifier for a key |
pKey | [ in ] Key meta data will be extracted by using the p6ICryptoKeyGetMeta interface of the crypto key |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | One of the parameters is NULL. |
P6R::eNotInitialized | A successful call to initialize was not made before this call. |
P6R::eInvalidState | A successful call to open() was not made before this call. |
P6R::eTooBig | pNamespace is larger than P6KSMAXNAMESPACE or pName is larger than P6KSMAXNAME. |
P6R::eTooSmall | pNamespace or pName have length of zero. |