Return the string representation of a key state value passed in as an input parameter.
This function works regardless of the key state's.
- Parameters
-
cipher | [IN] P6CRYPTOKEYSTATE enum value to convert to a string. |
pState | [IN] Block of memory to write the string equivalent of P6CRYPTOKEYSTATE. If NULL then, the required size of this buffer is returned in pWritten. |
cBuffer | [IN] Number of characters in the buffer pointed to by pState. |
pWritten | [OUT] Optional can be NULL, returns the number of characters written into pState. This parameter cannot be NULL when pCipher is also NULL. |
- Returns
Success | P6R::eOk | |
Failure< | P6R::eInvalidArg | pState and pWritten are NULL. |
P6R::eTooBig | The requested value is too big to fit into pCipher. |
P6R::eNotFound | The given value of state is defined. |