- Home
- Download
- News
- Documentation

- FAQ
- Tutorial
- API reference
- Examples

- XML Digital Signature

- Online Verifier

- XML Encryption
- XML Canonicalization
- Reporting Bugs
- Mailing list
- Related
- Authors

# crypto

## Name

crypto --

## Synopsis

    xmlSecCryptoDLFunctionsPtr xmlSecCryptoGetFunctions_gnutls
                                                (void);
    int         xmlSecGnuTLSInit                (void);
    int         xmlSecGnuTLSShutdown            (void);
    int         xmlSecGnuTLSKeysMngrInit        (xmlSecKeysMngrPtr mngr);
    int         xmlSecGnuTLSGenerateRandom      (xmlSecBufferPtr buffer,
                                                 xmlSecSize size);
    #define     xmlSecGnuTLSKeyDataAesId
    xmlSecKeyDataId xmlSecGnuTLSKeyDataAesGetKlass
                                                (void);
    int         xmlSecGnuTLSKeyDataAesSet       (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);
    #define     xmlSecGnuTLSTransformAes128CbcId
    xmlSecTransformId xmlSecGnuTLSTransformAes128CbcGetKlass
                                                (void);
    #define     xmlSecGnuTLSTransformAes192CbcId
    xmlSecTransformId xmlSecGnuTLSTransformAes192CbcGetKlass
                                                (void);
    #define     xmlSecGnuTLSTransformAes256CbcId
    xmlSecTransformId xmlSecGnuTLSTransformAes256CbcGetKlass
                                                (void);
    #define     xmlSecGnuTLSKeyDataDesId
    xmlSecKeyDataId xmlSecGnuTLSKeyDataDesGetKlass
                                                (void);
    int         xmlSecGnuTLSKeyDataDesSet       (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);
    #define     xmlSecGnuTLSTransformDes3CbcId
    xmlSecTransformId xmlSecGnuTLSTransformDes3CbcGetKlass
                                                (void);
    #define     xmlSecGnuTLSKeyDataHmacId
    xmlSecKeyDataId xmlSecGnuTLSKeyDataHmacGetKlass
                                                (void);
    int         xmlSecGnuTLSKeyDataHmacSet      (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);
    #define     xmlSecGnuTLSTransformHmacSha1Id
    xmlSecTransformId xmlSecGnuTLSTransformHmacSha1GetKlass
                                                (void);
    #define     xmlSecGnuTLSTransformHmacRipemd160Id
    xmlSecTransformId xmlSecGnuTLSTransformHmacRipemd160GetKlass
                                                (void);
    #define     xmlSecGnuTLSTransformHmacMd5Id
    xmlSecTransformId xmlSecGnuTLSTransformHmacMd5GetKlass
                                                (void);
    #define     xmlSecGnuTLSTransformSha1Id
    xmlSecTransformId xmlSecGnuTLSTransformSha1GetKlass
                                                (void);

## Description

## Details

### xmlSecCryptoGetFunctions_gnutls ()

    xmlSecCryptoDLFunctionsPtr xmlSecCryptoGetFunctions_gnutls
                                                (void);

Gets the pointer to xmlsec-gnutls functions table.

Returns : | the xmlsec-gnutls functions table or NULL if an error occurs.

### xmlSecGnuTLSInit ()

    int         xmlSecGnuTLSInit                (void);

XMLSec library specific crypto engine initialization.

Returns : | 0 on success or a negative value otherwise.

### xmlSecGnuTLSShutdown ()

    int         xmlSecGnuTLSShutdown            (void);

XMLSec library specific crypto engine shutdown.

Returns : | 0 on success or a negative value otherwise.

### xmlSecGnuTLSKeysMngrInit ()

    int         xmlSecGnuTLSKeysMngrInit        (xmlSecKeysMngrPtr mngr);

Adds GnuTLS specific key data stores in keys manager.

mngr : | the pointer to keys manager.
Returns : | 0 on success or a negative value otherwise.

### xmlSecGnuTLSGenerateRandom ()

    int         xmlSecGnuTLSGenerateRandom      (xmlSecBufferPtr buffer,
                                                 xmlSecSize size);

Generates size random bytes and puts result in buffer.

buffer : | the destination buffer.
size : | the numer of bytes to generate.
Returns : | 0 on success or a negative value otherwise.

### xmlSecGnuTLSKeyDataAesId

    #define     xmlSecGnuTLSKeyDataAesId

The AES key data klass.

### xmlSecGnuTLSKeyDataAesGetKlass ()

    xmlSecKeyDataId xmlSecGnuTLSKeyDataAesGetKlass
                                                (void);

The AES key data klass.

Returns : | AES key data klass.

### xmlSecGnuTLSKeyDataAesSet ()

    int         xmlSecGnuTLSKeyDataAesSet       (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);

Sets the value of AES key data.

data : | the pointer to AES key data.
buf : | the pointer to key value.
bufSize : | the key value size (in bytes).
Returns : | 0 on success or a negative value if an error occurs.

### xmlSecGnuTLSTransformAes128CbcId

    #define     xmlSecGnuTLSTransformAes128CbcId

The AES128 CBC cipher transform klass.

### xmlSecGnuTLSTransformAes128CbcGetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformAes128CbcGetKlass
                                                (void);

AES 128 CBC encryption transform klass.

Returns : | pointer to AES 128 CBC encryption transform.

### xmlSecGnuTLSTransformAes192CbcId

    #define     xmlSecGnuTLSTransformAes192CbcId

The AES192 CBC cipher transform klass.

### xmlSecGnuTLSTransformAes192CbcGetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformAes192CbcGetKlass
                                                (void);

AES 192 CBC encryption transform klass.

Returns : | pointer to AES 192 CBC encryption transform.

### xmlSecGnuTLSTransformAes256CbcId

    #define     xmlSecGnuTLSTransformAes256CbcId

The AES256 CBC cipher transform klass.

### xmlSecGnuTLSTransformAes256CbcGetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformAes256CbcGetKlass
                                                (void);

AES 256 CBC encryption transform klass.

Returns : | pointer to AES 256 CBC encryption transform.

### xmlSecGnuTLSKeyDataDesId

    #define     xmlSecGnuTLSKeyDataDesId

The DES key data klass.

### xmlSecGnuTLSKeyDataDesGetKlass ()

    xmlSecKeyDataId xmlSecGnuTLSKeyDataDesGetKlass
                                                (void);

The DES key data klass.

Returns : | DES key data klass.

### xmlSecGnuTLSKeyDataDesSet ()

    int         xmlSecGnuTLSKeyDataDesSet       (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);

Sets the value of DES key data.

data : | the pointer to DES key data.
buf : | the pointer to key value.
bufSize : | the key value size (in bytes).
Returns : | 0 on success or a negative value if an error occurs.

### xmlSecGnuTLSTransformDes3CbcId

    #define     xmlSecGnuTLSTransformDes3CbcId

The DES3 CBC cipher transform klass.

### xmlSecGnuTLSTransformDes3CbcGetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformDes3CbcGetKlass
                                                (void);

Triple DES CBC encryption transform klass.

Returns : | pointer to Triple DES encryption transform.

### xmlSecGnuTLSKeyDataHmacId

    #define     xmlSecGnuTLSKeyDataHmacId

The HMAC key klass.

### xmlSecGnuTLSKeyDataHmacGetKlass ()

    xmlSecKeyDataId xmlSecGnuTLSKeyDataHmacGetKlass
                                                (void);

The HMAC key data klass.

Returns : | HMAC key data klass.

### xmlSecGnuTLSKeyDataHmacSet ()

    int         xmlSecGnuTLSKeyDataHmacSet      (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);

Sets the value of HMAC key data.

data : | the pointer to HMAC key data.
buf : | the pointer to key value.
bufSize : | the key value size (in bytes).
Returns : | 0 on success or a negative value if an error occurs.

### xmlSecGnuTLSTransformHmacSha1Id

    #define     xmlSecGnuTLSTransformHmacSha1Id

The HMAC with SHA1 signature transform klass.

### xmlSecGnuTLSTransformHmacSha1GetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformHmacSha1GetKlass
                                                (void);

The HMAC-SHA1 transform klass.

Returns : | the HMAC-SHA1 transform klass.

### xmlSecGnuTLSTransformHmacRipemd160Id

    #define     xmlSecGnuTLSTransformHmacRipemd160Id

The HMAC with RipeMD160 signature transform klass.

### xmlSecGnuTLSTransformHmacRipemd160GetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformHmacRipemd160GetKlass
                                                (void);

The HMAC-RIPEMD160 transform klass.

Returns : | the HMAC-RIPEMD160 transform klass.

### xmlSecGnuTLSTransformHmacMd5Id

    #define     xmlSecGnuTLSTransformHmacMd5Id

The HMAC with MD5 signature transform klass.

### xmlSecGnuTLSTransformHmacMd5GetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformHmacMd5GetKlass
                                                (void);

The HMAC-MD5 transform klass.

Returns : | the HMAC-MD5 transform klass.

### xmlSecGnuTLSTransformSha1Id

    #define     xmlSecGnuTLSTransformSha1Id

The SHA1 digest transform klass.

### xmlSecGnuTLSTransformSha1GetKlass ()

    xmlSecTransformId xmlSecGnuTLSTransformSha1GetKlass
                                                (void);

SHA-1 digest transform klass.

Returns : | pointer to SHA-1 digest transform klass.