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
| Success | P6R::eOk | |
| Failure | P6R::eNotInitialized | A successful call to initialize must be called before this function. |
| P6R::eInvalidArg | pszFilename is equal to NULL. |
| P6R::eNotFound | The file in pszFilename cannot be found. |
| P6R::eWrongKeyType | Loaded key has an unrecognized key type. |
| P6R::eFormatError | Cannot read key's metadata in pszFilename file. |
| P6R::eInvalidVersion | The key's metadata contains an unexpected key version number. |
| P6R::eIoError | There was an error reading the key file |
| P6R::eTooSmall | There key file was too small to be a valid key file |