CryptoSpi::CMacFactory Class Reference
	
	#include 
            
                    <cryptospi/cryptomacapi.h>
                
| class CryptoSpi::CMacFactory | 
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)
				
					
						
							- 
								leave
							
- KErrNone if successful; otherwise, leaves with a system wide error code. 
 
			 
| Parameter | Description | | 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. | 
 
		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)
				
					
						
							- 
								leave
							
- KErrNone if successful; otherwise, leaves with a system wide error code. 
 
			 
| Parameter | Description | | 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. |