Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInit2::loadKey ( const P6WCHAR pszFilename)
pure virtual

This function reads the crypto key from the specified file.

The format of the key file is verified.

Parameters
pszFilename[ in ] Filesystem pathname of the key file.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize must be called before this function.
P6R::eInvalidArgpszFilename is equal to NULL.
P6R::eNotFoundThe file in pszFilename cannot be found.
P6R::eWrongKeyTypeLoaded key has an unrecognized key type.
P6R::eFormatErrorCannot read key's metadata in pszFilename file.
P6R::eInvalidVersionThe key's metadata contains an unexpected key version number.
P6R::eIoErrorThere was an error reading the key file
P6R::eTooSmallThere key file was too small to be a valid key file