|
pure virtual |
This method is used to validate the keys metadata against the provided parameter.
pKeyInfo | [ in ] A pointer to an P6CRYPTOKEYINFO structure. The structures mask field indicates which elements to compare with the key's metadata. |
Success | P6R::eOk | |
Failure | P6R::eNotInitialized | Object is in an incorrect state. |
P6R::eInvalidArg | pKeyInfo of the poinsters is NULL | |
P6R::eInvalidState | pKeyInfo->mask is empty. | |
P6R::eWrongKeyClass | pKeyInfo->keyClass does not match this key. | |
P6R::eWrongKeyType | pKeyInfo->keyType does not match this key. | |
P6R::eWrongKeySize | pKeyInfo->keySize does not match this key. | |
P6R::eWrongKeyVersion | pKeyInfo->keyVersion does not match this key. | |
P6R::eWrongKeyId | pKeyInfo->keyId does not match this key. |