cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
hardware.h
Go to the documentation of this file.
1 /****************************************************************************
2 * *
3 * cryptlib Generic Crypto HW Header *
4 * Copyright Peter Gutmann 1998-2009 *
5 * *
6 ****************************************************************************/
7 
8 /* The access functions that must be provided by each HAL module */
9 
10 int hwGetCapabilities( const CAPABILITY_INFO **capabilityInfo,
11  int *noCapabilities );
12 int hwGetRandom( void *buffer, const int length );
13 int hwLookupItem( const void *keyID, const int keyIDlength, int *keyHandle );
14 int hwDeleteItem( const int keyHandle );
15 int hwInitialise( void );
16 
17 /* Helper functions in hardware.c that may be used by HAL modules */
18 
19 int setPersonalityMapping( CONTEXT_INFO *contextInfoPtr, const int keyHandle,
20  void *storageID, const int storageIDlength );
22  const int keySizeBits );
24  const CRYPT_ALGO_TYPE cryptAlgo, const void *keyInfo );
25 int setConvInfo( const CRYPT_CONTEXT iCryptContext, const int keySize );