CryptoGetFirstAlgorithm (FUN)

FUNCTION CryptoGetFirstAlgorithm : RTS_IEC_HANDLE

Get the first algorthm matching the type given. Use this with the GetNext function to iterate over algorthmes of a specific type.

InOut:

Scope

Name

Type

Comment

Return

CryptoGetFirstAlgorithm

RTS_IEC_HANDLE

Handle to the crypto algorithm

Input

ui32CryptoType

RtsCryptoType

Type of the algorithm. See: Crypto Types

pszName

POINTER TO STRING

Name of the algorthm. Can be NULL.

i32MaxNameLen

DINT

Maximum length of the name buffer

pui32CryptoID

POINTER TO RtsCryptoID

ID of the algorithm.

pResult

POINTER TO RTS_IEC_RESULT

Result of the operation. Can be NULL.