CryptoImportRawAsymmetricKey (FUN)ΒΆ
FUNCTION CryptoImportRawAsymmetricKey : RTS_IEC_RESULT
- Imports a asymmetric key from raw format. This means that no additional
- data like ASN.1 or BASE64 encoding is needed. Not all asymmetric algorithms can import this format.</description> 
- InOut:
- Scope - Name - Type - Comment - Return - CryptoImportRawAsymmetricKey- RTS_IEC_RESULT- Operation result.
- ERR_OK: The key was imported. 
- ERR_FAILED: Storage of the key failed. 
- ERR_INVALID_STATE: The component is not in a valid state to do this operation. 
- RTS_INVALID_HANDLE: The hAlgo was not one of the needed types. 
- ERR_PARAMETER: keyData is not valid or pKey was NULL. 
- ERR_NOT_SUPPORTED: The given key does not support raw import. 
 
 - Input - hAlgo- RTS_IEC_HANDLE- The desired algorithm the key is needed for. Must be one of the following key types: RTSCRYPTOTYPE_ASYMMETRIC, RTSCRYPTOTYPE_SIGNATURE, RTSCRYPTOTYPE_KEYAGREEMENT. - keyData- RtsByteString- A bytestring containting the raw data. - xPrivateKey- BOOL- TRUE: Import a private key. FALSE: Import a public key. - pPublicKey- POINTER TO RtsCryptoKey - A pointer to the key for storage of the imported key. 
