# mco_crypt_algorithm
RT

Return the algorithm type supported by the encryption library currently linked.

### For an overview see page Encryption C API

### Prototype

        uint1 mco_crypt_algorithm();

### Arguments

void | No arguments

### Description

This function returns the algorithm type supported by the encryption library currently linked.

### Return Codes

algorithm | The algorithm type supported by the encryption library currently linked. The possible values are defined in header file `mco.h` as follows:
        MCO_CFG_NO_ENCRYPTION      0
        MCO_CFG_RC4_OLD_ENCRYPTION 1 /* RC4 encryption: for backward compatibility only */
        MCO_CFG_RC4_ENCRYPTION     2
        MCO_CFG_AES_ENCRYPTION     3

### Example

        {
            mco_db_h con;
            MCO_RET rc;
            uint1 algorithm;

            ...
            rc = mco_db_connect( db_name, &con );
            if ( MCO_S_OK == rc )
            {
                algorithm = mco_crypt_algorithm();

                ...
                mco_db_disconnect(con);
            }
        }

### Files

Header file:
mco.h
Source file:
mcocryptaes.c
Library:
libmcocryptaes.a
Header file:
mco.h
Source file:
mcocryptstub.c
Library:
libmcocryptstub.a