Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ICryptoKeyInit::loadPublicPKCS1Key ( const P6VOID pBuffer,
P6UINT32  cBuffer,
P6UINT32  keySize 
)
pure virtual

Load the PKCS#1 encoded public key (either in PEM format or binary ASN.1 format).

The provided data does not have the P6R meta-data header. Calling this function requires that the p6cryptokey component was initialized with a p6IRandom component which is uses to generate part of the keys meta-data.

Parameters
pBuffer[ in ] Buffer holding the key data in either in PEM or binary ASN.1 format
cBuffer[ in ] Number of data bytes in pBuffer
keySize[ in ] The key size in bits
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize must be called before this function.
P6R::eInvalidArgpszFilename is equal to NULL.
P6R::eInvalidStatepRandom not set during call to initialize().