This method is used to get a copy of the public key stored in the certificate in DER encoding of subjectPublicKeyInfo format.
- Parameters
-
pBuffer | [ out ] The address of a buffer in which will be placed the public key contained in the certificate on success. If set to NULL then pcWritten contains the size of buffer required. |
cBuffer | [ in ] The size in characters of pBuffer. |
pcWritten | [ out ] (optional) The address of a P6SIZE in which will be placed the number of characters written to pBuffer on success. If pBuffer is NULL then this parameter is required. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eInvalidArg | pBuffer and pcWritten was NULL. |
P6R::eNotInitialized | The certificate interface has not been initialized. |
P6R::eInvalidState | The certificate interface has been initialized, but no certificate hash been loaded yet. |
P6R::eNotFound | Cannot find the public key in the certificate. |