Functions

src/CustomActions/Cryptography/DESEDE3.cpp File Reference

#include "StdAfx.h"
#include "DESEDE3.h"
#include "FlagMaps.h"

Functions

CA_API UINT __stdcall DESEDE3_GenerateKey (MSIHANDLE hInstall)
 Generate a new key and returns a hex-encoded version of it.
CA_API UINT __stdcall DESEDE3_Encrypt (MSIHANDLE hInstall)
 Encrypt data with DESEDE3.
CA_API UINT __stdcall DESEDE3_Decrypt (MSIHANDLE hInstall)
 Decrypt data with DESEDE3.

Function Documentation

CA_API UINT __stdcall DESEDE3_Decrypt ( MSIHANDLE  hInstall)

Decrypt data with DESEDE3.

Parameters:
DESEDE3_KEYA 192-bit hex-encoded key.
DESEDE3_ENCRYPTED_DATAEncrypted and hex-encoded text data.
Returns:
DESEDE3_CLEARTEXT_DATA Clear-text decrypted.
CA_API UINT __stdcall DESEDE3_Encrypt ( MSIHANDLE  hInstall)

Encrypt data with DESEDE3.

Parameters:
DESEDE3_KEYA 192-bit hex-encoded key.
DESEDE3_CLEARTEXT_DATAClear-text data to encrypt with DESEDE3_KEY.
Returns:
DESEDE3_ENCRYPTED_DATA Clear-text data encrypted and hex-encoded.
CA_API UINT __stdcall DESEDE3_GenerateKey ( MSIHANDLE  hInstall)

Generate a new key and returns a hex-encoded version of it.

Returns:
DESEDE3_KEY A 192-bit hex-encoded key that can be used in DESEDE3Encrypt or DESEDE3Decrypt.


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com