37 #define cx_ecdsa_init_public_key cx_ecfp_init_public_key_no_throw
39 #define cx_ecdsa_init_private_key cx_ecfp_init_private_key_no_throw
83 WARN_UNUSED_RESULT cx_err_t cx_ecdsa_sign_no_throw(
const cx_ecfp_private_key_t *pvkey,
96 DEPRECATED
static inline size_t cx_ecdsa_sign(
const cx_ecfp_private_key_t *pvkey,
99 const unsigned char *hash,
100 unsigned int hash_len,
102 unsigned int sig_len,
105 size_t sig_len_ = sig_len;
107 CX_THROW(cx_ecdsa_sign_no_throw(pvkey, mode, hashID, hash, hash_len, sig, &sig_len_, &info_));
109 *info = (uint32_t) info_;
155 WARN_UNUSED_RESULT cx_err_t cx_ecdsa_sign_rs_no_throw(
const cx_ecfp_private_key_t *key,
183 WARN_UNUSED_RESULT
bool cx_ecdsa_verify_no_throw(
const cx_ecfp_public_key_t *pukey,
193 DEPRECATED
static inline bool cx_ecdsa_verify(
const cx_ecfp_public_key_t *pukey,
196 const unsigned char *hash,
197 unsigned int hash_len,
198 const unsigned char *sig,
199 unsigned int sig_len)
203 return cx_ecdsa_verify_no_throw(pukey, hash, hash_len, sig, sig_len);
Key pair generation based on elliptic curves.