CryptoSpi::CMacFactory Class Reference
#include
<cryptospi/cryptomacapi.h>
class CryptoSpi::CMacFactory |
Public Member Functions |
---|
IMPORT_C void | CreateAsyncMacL(CAsyncMac *&, const TUid, const CKey &, const CCryptoParams *) |
IMPORT_C void | CreateMacL(CMac *&, const TUid, const CKey &, const CCryptoParams *) |
Detailed Description
The Factory to create synchronous and asynchronous Mac instances
Member Function Documentation
CreateAsyncMacL ( CAsyncMac *&, const TUid, const CKey &, const CCryptoParams * )
IMPORT_C void | CreateAsyncMacL | ( | CAsyncMac *& | aMac, |
| const TUid | aAlgorithmUid, |
| const CKey & | aKey, |
| const CCryptoParams * | aAlgorithmParams |
| ) | [static] |
Create a CAsyncMac instance (for hardware based MAC plug-in dll implementation)
Parameters |
---|
aMac | The pointer to CMac. This will be initialised with the plug-in implementation of the desired MAC algorithm. |
aAlgorithmUid | The specific MAC algorithm desired for evaluation of MAC value. e.g. MD2, SHA1 or AES-XCBC-MAC-96, AES-XCBC-PRF-128 |
aKey | Symmetric key for calculating message authentication code value. |
aAlgorithmParams | The parameters those are specific to a particular MAC algorithm. This is for extendibility and will normally be null. |
Leave Codes |
---|
KErrNone | if successful; otherwise, leaves with a system wide error code. |
CreateMacL ( CMac *&, const TUid, const CKey &, const CCryptoParams * )
IMPORT_C void | CreateMacL | ( | CMac *& | aMac, |
| const TUid | aAlgorithmUid, |
| const CKey & | aKey, |
| const CCryptoParams * | aAlgorithmParams |
| ) | [static] |
Create a CMac instance (for software based MAC plug-in dll implementation)
Parameters |
---|
aMac | The pointer to CMac. This will be initialised with the plug-in implementation of the desired MAC algorithm. |
aAlgorithmUid | The specific MAC algorithm desired for evaluation of MAC value. e.g. MD2, SHA1 or AES-XCBC-MAC-96, AES-XCBC-PRF-128 |
aKey | Symmetric key for calculating message authentication code value. |
aAlgorithmParams | The parameters those are specific to a particular MAC algorithm. This is for extendibility and will normally be null. |
Leave Codes |
---|
KErrNone | if successful; otherwise, leaves with a system wide error code. |