From 059a9266b25eb3b5e81cb5fefe6ab03a48fd7cee Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Mon, 25 Sep 2023 12:02:29 +0200 Subject: [PATCH] Deprecate cx_ecdsa_verify --- lib_cxng/include/lcx_ecdsa.h | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/lib_cxng/include/lcx_ecdsa.h b/lib_cxng/include/lcx_ecdsa.h index d8be8e305..e325b41ae 100644 --- a/lib_cxng/include/lcx_ecdsa.h +++ b/lib_cxng/include/lcx_ecdsa.h @@ -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,