crypto

Home Download News Documentation FAQ Tutorial API reference Examples XML Digital Signature Online Verifier XML Encryption XML Canonicalization Reporting Bugs Mailing list Related
XML Security Library Reference Manual
<<< Previous Page | Home | Up | Next Page >>>
# crypto ## Name crypto -- ## Synopsis
    int         xmlSecNssInit                   (void);
    int         xmlSecNssShutdown               (void);
    int         xmlSecNssKeysMngrInit           (xmlSecKeysMngrPtr mngr);
    int         xmlSecNssGenerateRandom         (xmlSecBufferPtr buffer,
                                                 xmlSecSize size);
    #define     xmlSecNssKeyDataAesId
    xmlSecKeyDataId xmlSecNssKeyDataAesGetKlass (void);
    int         xmlSecNssKeyDataAesSet          (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);
    #define     xmlSecNssTransformAes128CbcId
    xmlSecTransformId xmlSecNssTransformAes128CbcGetKlass
                                                (void);
    #define     xmlSecNssTransformAes192CbcId
    xmlSecTransformId xmlSecNssTransformAes192CbcGetKlass
                                                (void);
    #define     xmlSecNssTransformAes256CbcId
    xmlSecTransformId xmlSecNssTransformAes256CbcGetKlass
                                                (void);
    #define     xmlSecNssKeyDataDesId
    xmlSecKeyDataId xmlSecNssKeyDataDesGetKlass (void);
    int         xmlSecNssKeyDataDesSet          (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);
    #define     xmlSecNssTransformDes3CbcId
    xmlSecTransformId xmlSecNssTransformDes3CbcGetKlass
                                                (void);
    #define     xmlSecNssKeyDataHmacId
    xmlSecKeyDataId xmlSecNssKeyDataHmacGetKlass
                                                (void);
    int         xmlSecNssKeyDataHmacSet         (xmlSecKeyDataPtr data,
                                                 const xmlSecByte *buf,
                                                 xmlSecSize bufSize);
    #define     xmlSecNssTransformHmacSha1Id
    xmlSecTransformId xmlSecNssTransformHmacSha1GetKlass
                                                (void);
    #define     xmlSecNssTransformHmacRipemd160Id
    xmlSecTransformId xmlSecNssTransformHmacRipemd160GetKlass
                                                (void);
    #define     xmlSecNssTransformHmacMd5Id
    xmlSecTransformId xmlSecNssTransformHmacMd5GetKlass
                                                (void);
    #define     xmlSecNssTransformSha1Id
    xmlSecTransformId xmlSecNssTransformSha1GetKlass
                                                (void);
## Description ## Details ### xmlSecNssInit ()
    int         xmlSecNssInit                   (void);
XMLSec library specific crypto engine initialization.
Returns : | 0 on success or a negative value otherwise.
### xmlSecNssShutdown ()
    int         xmlSecNssShutdown               (void);
XMLSec library specific crypto engine shutdown.
Returns : | 0 on success or a negative value otherwise.
### xmlSecNssKeysMngrInit ()
    int         xmlSecNssKeysMngrInit           (xmlSecKeysMngrPtr mngr);
Adds NSS specific key data stores in keys manager.
`mngr` : | the pointer to keys manager.
Returns : | 0 on success or a negative value otherwise.
### xmlSecNssGenerateRandom ()
    int         xmlSecNssGenerateRandom         (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.
### xmlSecNssKeyDataAesId
    #define     xmlSecNssKeyDataAesId
The AES key data klass. ### xmlSecNssKeyDataAesGetKlass ()
    xmlSecKeyDataId xmlSecNssKeyDataAesGetKlass (void);
The AES key data klass.
Returns : | AES key data klass.
### xmlSecNssKeyDataAesSet ()
    int         xmlSecNssKeyDataAesSet          (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.
### xmlSecNssTransformAes128CbcId
    #define     xmlSecNssTransformAes128CbcId
The AES128 CBC cipher transform klass. ### xmlSecNssTransformAes128CbcGetKlass ()
    xmlSecTransformId xmlSecNssTransformAes128CbcGetKlass
                                                (void);
AES 128 CBC encryption transform klass.
Returns : | pointer to AES 128 CBC encryption transform.
### xmlSecNssTransformAes192CbcId
    #define     xmlSecNssTransformAes192CbcId
The AES192 CBC cipher transform klass. ### xmlSecNssTransformAes192CbcGetKlass ()
    xmlSecTransformId xmlSecNssTransformAes192CbcGetKlass
                                                (void);
AES 192 CBC encryption transform klass.
Returns : | pointer to AES 192 CBC encryption transform.
### xmlSecNssTransformAes256CbcId
    #define     xmlSecNssTransformAes256CbcId
The AES256 CBC cipher transform klass. ### xmlSecNssTransformAes256CbcGetKlass ()
    xmlSecTransformId xmlSecNssTransformAes256CbcGetKlass
                                                (void);
AES 256 CBC encryption transform klass.
Returns : | pointer to AES 256 CBC encryption transform.
### xmlSecNssKeyDataDesId
    #define     xmlSecNssKeyDataDesId
The DES key data klass. ### xmlSecNssKeyDataDesGetKlass ()
    xmlSecKeyDataId xmlSecNssKeyDataDesGetKlass (void);
The DES key data klass.
Returns : | DES key data klass.
### xmlSecNssKeyDataDesSet ()
    int         xmlSecNssKeyDataDesSet          (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.
### xmlSecNssTransformDes3CbcId
    #define     xmlSecNssTransformDes3CbcId
The Triple DES CBC cipher transform klass. ### xmlSecNssTransformDes3CbcGetKlass ()
    xmlSecTransformId xmlSecNssTransformDes3CbcGetKlass
                                                (void);
Triple DES CBC encryption transform klass.
Returns : | pointer to Triple DES encryption transform.
### xmlSecNssKeyDataHmacId
    #define     xmlSecNssKeyDataHmacId
The DHMAC key data klass. ### xmlSecNssKeyDataHmacGetKlass ()
    xmlSecKeyDataId xmlSecNssKeyDataHmacGetKlass
                                                (void);
The HMAC key data klass.
Returns : | HMAC key data klass.
### xmlSecNssKeyDataHmacSet ()
    int         xmlSecNssKeyDataHmacSet         (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.
### xmlSecNssTransformHmacSha1Id
    #define     xmlSecNssTransformHmacSha1Id
The HMAC with SHA1 signature transform klass. ### xmlSecNssTransformHmacSha1GetKlass ()
    xmlSecTransformId xmlSecNssTransformHmacSha1GetKlass
                                                (void);
The HMAC-SHA1 transform klass.
Returns : | the HMAC-SHA1 transform klass.
### xmlSecNssTransformHmacRipemd160Id
    #define     xmlSecNssTransformHmacRipemd160Id
The HMAC with RipeMD160 signature transform klass. ### xmlSecNssTransformHmacRipemd160GetKlass ()
    xmlSecTransformId xmlSecNssTransformHmacRipemd160GetKlass
                                                (void);
The HMAC-RIPEMD160 transform klass.
Returns : | the HMAC-RIPEMD160 transform klass.
### xmlSecNssTransformHmacMd5Id
    #define     xmlSecNssTransformHmacMd5Id
The HMAC with MD5 signature transform klass. ### xmlSecNssTransformHmacMd5GetKlass ()
    xmlSecTransformId xmlSecNssTransformHmacMd5GetKlass
                                                (void);
The HMAC-MD5 transform klass.
Returns : | the HMAC-MD5 transform klass.
### xmlSecNssTransformSha1Id
    #define     xmlSecNssTransformSha1Id
The SHA1 digest transform klass. ### xmlSecNssTransformSha1GetKlass ()
    xmlSecTransformId xmlSecNssTransformSha1GetKlass
                                                (void);
SHA-1 digest transform klass.
Returns : | pointer to SHA-1 digest transform klass.
<<< Previous Page | Home | Up | Next Page >>>
app | XML Security Library Reference Index
Aleksey Sanin