tfCryptoEngineAddProtocol
Table of Contents >> Optional Protocols >> Cryptography
| #include <trsecapi.h> |
| int tfCryptoEngineAddProtocol | ( |
| ttCryptoEnginePtr cenginePtr, | |
| ttUserS32Bit protocolId | |
| ); |
Function Description
This function adds the supported protocol to the crypto engine. Some crypto engines may support more protocols than others.
Parameters
- cenginePtr
- The pointer to the crypto engine.
- protocolId
- Protocols to add to the given crypto engine (see below).
Possible 'protocolId' Values
| Name | Description |
|---|---|
| TM_CEPROTO_HASH | Supports hashing (non-HMAC and non-CMAC) operations |
| TM_CEPROTO_HMACHASH | Supports HMAC hashing operations |
| TM_CEPROTO_CMACHASH | Supports CMAC hashing operations |
| TM_CEPROTO_IPSEC | Supports IPsec operations |
| TM_CEPROTO_IKE | Supports IKE operations |
| TM_CEPROTO_DH | Supports Diffie-Hellman operations |
| TM_CEPROTO_PKI | Supports Public-key Infrastructure operations |
| TM_CEPROTO_SSL | Supports Secure Socket Layer operations |
| TM_CEPROTO_SNMP | Supports Simple Network Management Protocol (version 3) operations |
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- One of the parameters is invalid.