Root > Reference > All Functions > TwofishInitKey

Function TwofishInitKey

Previous pageReturn to chapter overviewNext page   

"Imports" (precalculates) Twofish key from RAW key value.

 

Unit

EEncrypt

 

Syntax

 

Code (Delphi)

function TwofishInitKey(

const AKey: TTwofishRAWKey

): TTwofishKey;

 

Parameters

AKey [in]

256-bit RAW Twofish key.

 

Return value

Twofish key precalculated from AKey.

 

Delete this key by using TwofishDestroyKey function.

 

This value is always the same for the same AKey.

 

Remarks

EurekaLog uses precalculated/cached array of subkeys and SBox keys for Twofish cipher. It improves performance of encryption/decryption. Use this function to obtain precalculated key from given RAW key value.

 

Use TwofishDeriveKey function to derive key from password.

 

Delete the returned value by using TwofishDestroyKey function when you have finished working with key.

 

See also




Send feedback... Build date: 2024-09-30
Last edited: 2024-09-30
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_eencrypt_twofishinitkey.php