mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-22 04:38:39 +00:00
[update][lhal] update lhal
* update lhal api comments * add cam driver * add efuse driver * add iso11898 driver
This commit is contained in:
parent
185805cbbe
commit
a77b0dc866
60 changed files with 8782 additions and 429 deletions
|
@ -3,6 +3,14 @@
|
|||
|
||||
#include "bflb_core.h"
|
||||
|
||||
/** @addtogroup LHAL
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @addtogroup SEC_DSA
|
||||
* @{
|
||||
*/
|
||||
|
||||
struct bflb_dsa_crt_s {
|
||||
uint32_t *dP;
|
||||
uint32_t *dQ;
|
||||
|
@ -28,12 +36,47 @@ struct bflb_dsa_s {
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param [in] handle
|
||||
* @param [in] size
|
||||
* @return int
|
||||
*/
|
||||
int bflb_sec_dsa_init(struct bflb_dsa_s *handle, uint32_t size);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param [in] handle
|
||||
* @param [in] hash
|
||||
* @param [in] hashLenInWord
|
||||
* @param [in] s
|
||||
* @return int
|
||||
*/
|
||||
int bflb_sec_dsa_sign(struct bflb_dsa_s *handle, const uint32_t *hash, uint32_t hashLenInWord, uint32_t *s);
|
||||
|
||||
/**
|
||||
* @brief
|
||||
*
|
||||
* @param [in] handle
|
||||
* @param [in] hash
|
||||
* @param [in] hashLenInWord
|
||||
* @param [in] s
|
||||
* @return int
|
||||
*/
|
||||
int bflb_sec_dsa_verify(struct bflb_dsa_s *handle, const uint32_t *hash, uint32_t hashLenInWord, const uint32_t *s);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue