1 #ifndef _BFLB_SEC_ECDSA_H 2 #define _BFLB_SEC_ECDSA_H 14 #define ECP_SECP256R1 0 15 #define ECP_SECP256K1 1 int bflb_sec_ecdh_get_public_key(struct bflb_ecdh_s *handle, const uint32_t *private_key, const uint32_t *pRx, const uint32_t *pRy)
int bflb_sec_ecdsa_init(struct bflb_ecdsa_s *handle, uint8_t id)
int bflb_sec_ecdh_deinit(struct bflb_ecdh_s *handle)
int bflb_sec_ecdsa_get_public_key(struct bflb_ecdsa_s *handle, const uint32_t *private_key, const uint32_t *pRx, const uint32_t *pRy)
int bflb_sec_ecdsa_deinit(struct bflb_ecdsa_s *handle)
int bflb_sec_ecdsa_get_private_key(struct bflb_ecdsa_s *handle, uint32_t *private_key)
int bflb_sec_ecdh_get_encrypt_key(struct bflb_ecdh_s *handle, const uint32_t *pkX, const uint32_t *pkY, const uint32_t *private_key, const uint32_t *pRx, const uint32_t *pRy)
int bflb_sec_ecdsa_verify(struct bflb_ecdsa_s *handle, const uint32_t *hash, uint32_t hashLen, const uint32_t *r, const uint32_t *s)
int bflb_sec_ecdsa_sign(struct bflb_ecdsa_s *handle, const uint32_t *random_k, const uint32_t *hash, uint32_t hashLenInWord, uint32_t *r, uint32_t *s)
int bflb_sec_ecc_get_random_value(uint32_t *data, uint32_t *max_ref, uint32_t size)
int bflb_sec_ecdh_init(struct bflb_ecdh_s *handle, uint8_t id)