summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/Security/ServiceProvider/include/sspHash.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/Security/ServiceProvider/include/sspHash.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/Security/ServiceProvider/include/sspHash.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/Security/ServiceProvider/include/sspHash.h b/digital/beacon/src/Bitcloud_stack/Components/Security/ServiceProvider/include/sspHash.h
deleted file mode 100644
index ade0fe31..00000000
--- a/digital/beacon/src/Bitcloud_stack/Components/Security/ServiceProvider/include/sspHash.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/**************************************************************************//**
- \file sspHash.h
-
- \brief Security Hash Processor header file.
-
- \author
- Atmel Corporation: http://www.atmel.com \n
- Support email: avr@atmel.com
-
- Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
- Licensed under Atmel's Limited License Agreement (BitCloudTM).
-
- \internal
- History:
- 01/05/2008 A.Potashov - Created
-******************************************************************************/
-
-#ifndef _SSPHASH_H
-#define _SSPHASH_H
-
-#include <types.h>
-#include <private/sspHashHandler.h>
-
-typedef struct
-{
- //! Service field - for internal needs.
- SSP_Service_t service;
- // Service field - for internal needs.
- SSP_Service_t sspService;
- // There is should be an additional memory before and after text (16 bytes in both cases).
- uint8_t *text/*[SECURITY_KEY_SIZE + textSize + 16]*/;
- // Pointer to key fir Keyed Hash Function.
- uint8_t (*key)/*[SECURITY_KEY_SIZE]*/;
- // Size of the text.
- uint8_t textSize;
- // Buffer for generated hash. Shoul be initialized by the user.
- uint8_t (*hash_i)/*[SECURITY_KEY_SIZE]*/;
- // Confirm handler pointer for internal use
- void (*sspKeyedHashMacConf)(void);
-
- // Confirm handler pointer
- void (*SSP_KeyedHashMacConf)(void);
-} SSP_KeyedHashMacReq_t;
-
-
-void SSP_KeyedHashMacReq(SSP_KeyedHashMacReq_t *req);
-void sspKeyedHashReqHandler(void);
-#ifndef _USE_CERTICOM_HASH_
-/**************************************************************************\\**
- \brief This function computes the AES MMO digest of the data parameter of
- length <tt>sz</tt>, and stores the result in.
-
- \param[out] digest This is an unsigned char buffer to hold the message digest.
- The length of the digest must be AES_MMO_HASH_SIZE bytes.
- \param[in] sz The size in bytes of the message to be hashed.
- \param[in] data This is an unsigned char buffer of data to be hashed.
-
- \return MCE_ERR_NULL_OUTPUT_BUF digest is NULL
- MCE_ERR_NULL_INPUT_BUF data is NULL
- MCE_SUCCESS indicates successful completion.
-
-******************************************************************************/
-int SSP_BcbHash(unsigned char *digest, unsigned long sz, unsigned char *data);
-//int aesMmoHash(unsigned char *digest, unsigned long sz, unsigned char *data);
-#endif // _USE_CERTICOM_HASH_
-
-#endif //#ifndef _SSPHASH_H
-
-//eof sspHash.h