Share via


EncryptionAlgorithmId Property of the IFPCCookieCryptoConfiguration Interface

The EncryptionAlgorithmId property gets or sets the identifier of the symmetric algorithm used for cookie encryption.

C++

HRESULT put_EncryptionAlgorithmId(
    long lEncryptionAlgorithmId
);
HRESULT get_EncryptionAlgorithmId(
    long* plEncryptionAlgorithmId
);

Parameters

  • lEncryptionAlgorithmId
    A 32-bit integer that specifies the the identifier of the symmetric algorithm used for cookie encryption.

  • plEncryptionAlgorithmId
    Pointer to a 32-bit integer that is set on return to the identifier of the symmetric algorithm used for cookie encryption.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Visual Basic

Property EncryptionAlgorithmId As Long

Property Value

A 32-bit integer that specifies the identifier of the symmetric algorithm used for cookie encryption.

Remarks

This property is read/write. The default value is the hexadecimal number 6610, which is the identifier of the Advanced Encryption Standard (AES) algorithm with the use of a 256-bit key.

The ALG_ID data type specifies an algorithm identifier. Values of this data type are passed to most of the functions in the CryptoAPI. For the identifier values used for specific algorithms , see ALG_ID. For this property, use identifiers of encryption algorithms and not identifiers of hashing algorithms.

Requirements

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCCookieCryptoConfiguration

Send comments about this topic to Microsoft

Build date: 6/30/2010