NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
Functions
crypto.c File Reference

Cryptographic Accelerator driver source file. More...

#include <string.h>
#include "NUC472_442.h"
Include dependency graph for crypto.c:

Go to the source code of this file.

Functions

void PRNG_Open (uint32_t u32KeySize, uint32_t u32SeedReload, uint32_t u32Seed)
 Open PRNG function. More...
 
void PRNG_Start (void)
 Start to generate one PRNG key. More...
 
void PRNG_Read (uint32_t u32RandKey[])
 Read the PRNG key. More...
 
void AES_Open (uint32_t u32Channel, uint32_t u32EncDec, uint32_t u32OpMode, uint32_t u32KeySize, uint32_t u32SwapType)
 Open AES encrypt/decrypt function. More...
 
void AES_Start (int32_t u32Channel, uint32_t u32DMAMode)
 Start AES encrypt/decrypt. More...
 
void AES_SetKey (uint32_t u32Channel, uint32_t au32Keys[], uint32_t u32KeySize)
 Set AES keys. More...
 
void AES_SetInitVect (uint32_t u32Channel, uint32_t au32IV[])
 Set AES initial vectors. More...
 
void AES_SetDMATransfer (uint32_t u32Channel, uint32_t u32SrcAddr, uint32_t u32DstAddr, uint32_t u32TransCnt)
 Set AES DMA transfer configuration. More...
 
void TDES_Open (uint32_t u32Channel, uint32_t u32EncDec, int32_t Is3DES, int32_t Is3Key, uint32_t u32OpMode, uint32_t u32SwapType)
 Open TDES encrypt/decrypt function. More...
 
void TDES_Start (int32_t u32Channel, uint32_t u32DMAMode)
 Start TDES encrypt/decrypt. More...
 
void TDES_SetKey (uint32_t u32Channel, uint32_t au32Keys[3][2])
 Set TDES keys. More...
 
void TDES_SetInitVect (uint32_t u32Channel, uint32_t u32IVH, uint32_t u32IVL)
 Set TDES initial vectors. More...
 
void TDES_SetDMATransfer (uint32_t u32Channel, uint32_t u32SrcAddr, uint32_t u32DstAddr, uint32_t u32TransCnt)
 Set TDES DMA transfer configuration. More...
 
void SHA_Open (uint32_t u32OpMode, uint32_t u32SwapType)
 Open SHA encrypt function. More...
 
void SHA_Start (uint32_t u32DMAMode)
 Start SHA encrypt. More...
 
void SHA_SetDMATransfer (uint32_t u32SrcAddr, uint32_t u32TransCnt)
 Set SHA DMA transfer. More...
 
void SHA_Read (uint32_t u32Digest[])
 Read the SHA digest. More...
 

Detailed Description

Cryptographic Accelerator driver source file.

Version
V1.10
Revision
12
Date
15/11/06 2:17p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file crypto.c.