![]() |
![]() |
This is the HMAC module header file for the register level HMAC driver. More...
Macros | |
#define | HMAC_ALGO_MD5 (0x00000000U) |
#define | HMAC_ALGO_SHA1 (0x00000002U) |
#define | HMAC_ALGO_SHA224 (0x00000004U) |
#define | HMAC_ALGO_SHA256 (0x00000006U) |
#define | HMAC_MD5_DIGEST_SIZE (16U) |
#define | HMAC_SHA1_DIGEST_SIZE (20U) |
#define | HMAC_SHA224_DIGEST_SIZE (28U) |
#define | HMAC_SHA256_DIGEST_SIZE (32U) |
#define | HMAC_DIGEST_MAX_SIZE HMAC_SHA256_DIGEST_SIZE |
#define | HMAC_DIGEST_MIN_SIZE HMAC_MD5_DIGEST_SIZE |
#define | HMAC_INT_CONTEXT_READY (0x00000008U) |
#define | HMAC_MODE_ALGO_MASK (0x00000007U) |
#define | HMAC_USE_ALGO_CONSTANT_SHIFT (0x00000003U) |
#define | HMAC_SYSCONFIG_PADVANCED (0x00000080U) |
Functions | |
void | HMAC_init (DTHERegs *dtheBaseAddress, SHARegs *hmacBaseAddress) |
void | HMAC_setConfig (SHARegs *hmacBaseAddress, uint32_t cryptoMode, uint8_t useAlgoConstant, uint8_t closeHash, uint8_t useHMACKey, uint8_t HMACOuterHash) |
uint32_t | HMAC_isReady (const SHARegs *hmacBaseAddress, uint32_t flag) |
void | HMAC_setDataLength (SHARegs *hmacBaseAddress, uint32_t dataLength) |
void | HMAC_writeData (SHARegs *hmacBaseAddress, const uint8_t *ptrData) |
uint32_t | HMAC_getDigestSize (uint32_t config) |
void | HMAC_readResult (SHARegs *hmacBaseAddress, uint8_t *ptrData) |
void | HMAC_writeResult (SHARegs *hmacBaseAddress, uint8_t *ptrData) |
uint32_t | HMAC_readDigestCount (SHARegs *hmacBaseAddress) |
void | HMAC_writeDigestCount (SHARegs *hmacBaseAddress, uint32_t digestCount) |
void | HMAC_setHMACKey (SHARegs *hmacBaseAddress, const uint8_t *ptrKey) |
void | HMAC_setHMACPPKey (SHARegs *hmacBaseAddress, const uint8_t *ptrKey) |
void | HMAC_enableInterrupt (DTHERegs *dtheBaseAddress, SHARegs *hmacBaseAddress, uint32_t intFlags) |
void | HMAC_disableInterrupt (DTHERegs *dtheBaseAddress, SHARegs *hmacBaseAddress, uint32_t intFlags) |
void | HMAC_clearInterrupt (DTHERegs *dtheBaseAddress, uint32_t intFlags) |
uint32_t | HMAC_getInterruptStatus (DTHERegs *dtheBaseAddress, SHARegs *hmacBaseAddress, uint8_t masked) |
This is the HMAC module header file for the register level HMAC driver.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.