Skip to content

Commit

Permalink
Deprecate cx_ecdsa_verify
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Sep 25, 2023
1 parent b2ca981 commit 059a926
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions lib_cxng/include/lcx_ecdsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,29 +136,10 @@ bool cx_ecdsa_verify_no_throw(const cx_ecfp_public_key_t *pukey,
size_t sig_len);

/**
* @brief Verifies an ECDSA signature according to ECDSA specification.
*
* @param[in] pukey Public key initialized with #cx_ecfp_init_public_key_no_throw.
*
* @param[in] mode ECDSA mode. This parameter is not used.
*
* @param[in] hashID Message digest algorithm identifier.
* This parameter is not used.
*
* @param[in] hash Digest of the message to be verified.
* The length of *hash* must be smaller than the group order size.
* Otherwise it is truncated.
*
* @param[in] hash_len Length of the digest in octets.
*
* @param[in] sig Pointer to the signature encoded in TLV: **30 || L || 02 || Lr || r || 02 ||
* Ls || s**
*
* @param[in] sig_len Length of the signature in octets.
*
* @return 1 if the signature is verified, 0 otherwise.
* @deprecated
* See #cx_ecdsa_verify_no_throw
*/
static inline bool cx_ecdsa_verify(const cx_ecfp_public_key_t *pukey,
DEPRECATED static inline bool cx_ecdsa_verify(const cx_ecfp_public_key_t *pukey,
int mode,
cx_md_t hashID,
const unsigned char *hash,
Expand Down

0 comments on commit 059a926

Please sign in to comment.