Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKey::validateKey ( P6CRYPTOKEYINFO pKeyInfo)
pure virtual

This method is used to validate the keys metadata against the provided parameter.

Parameters
pKeyInfo[ in ] A pointer to an P6CRYPTOKEYINFO structure. The structures mask field indicates which elements to compare with the key's metadata.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedObject is in an incorrect state.
P6R::eInvalidArgpKeyInfo of the poinsters is NULL
P6R::eInvalidStatepKeyInfo->mask is empty.
P6R::eWrongKeyClasspKeyInfo->keyClass does not match this key.
P6R::eWrongKeyTypepKeyInfo->keyType does not match this key.
P6R::eWrongKeySizepKeyInfo->keySize does not match this key.
P6R::eWrongKeyVersionpKeyInfo->keyVersion does not match this key.
P6R::eWrongKeyIdpKeyInfo->keyId does not match this key.