API Reference > Other Classes > OdCryptoServices Class > OdCryptoServices Methods > OdCryptoServices::initSessionKeyToEncryptData Method
OdCryptoServices::initSessionKeyToEncryptData Method
Syntax
C++
virtual bool initSessionKeyToEncryptData(const OdBinaryData& passwordAsBinaryData, OdUInt32 nProvType, const OdString& provName, OdUInt32 nAlgId, OdUInt32 nKeyLength) = 0;
Parameters 
Description 
const OdBinaryData& passwordAsBinaryData 
[in] password as binary data.  
OdUInt32 nProvType 
[in] crypto provider type.  
const OdString& provName 
[in] crypto provider name.  
OdUInt32 nAlgId 
[in] algorithm identifier.  
OdUInt32 nKeyLength 
[in] key length. 

Returns true if success, otherwise returns false.

Initializes a session key structures to encrypt/decrypt data using key derived from password. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.