Lines Matching +full:for +full:- +full:context
7 * <em>Standards for Efficient Cryptography Group (SECG):
9 * The use of ECDSA for TLS is defined in <em>RFC-4492: Elliptic Curve
10 * Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS)</em>.
15 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
28 * \brief Maximum ECDSA signature size for a given curve bit size
33 * \note This macro returns a compile-time constant if its argument
37 * Ecdsa-Sig-Value ::= SEQUENCE {
42 * For each of r and s, the value (V) may include an extra initial "0" bit.
57 * \brief The ECDSA context structure.
60 * ECDSA context is not supported; objects of this type
64 * to "ecp_keypair" (see for example structure
66 * are used also for EC key)
73 * \brief Internal restart context for ecdsa_verify()
80 * \brief Internal restart context for ecdsa_sign()
88 * \brief Internal restart context for ecdsa_sign_det()
96 * \brief General context for resuming ECDSA operations
99 mbedtls_ecp_restart_ctx MBEDTLS_PRIVATE(ecp); /*!< base context for ECP restart and
101 mbedtls_ecdsa_restart_ver_ctx *MBEDTLS_PRIVATE(ver); /*!< ecdsa_verify() sub-context */
102 mbedtls_ecdsa_restart_sig_ctx *MBEDTLS_PRIVATE(sig); /*!< ecdsa_sign() sub-context */
104 mbedtls_ecdsa_restart_det_ctx *MBEDTLS_PRIVATE(det); /*!< ecdsa_sign_det() sub-context */
117 * for ECDSA.
127 * previously-hashed message.
134 * as defined in <em>Standards for Efficient Cryptography Group
140 * \param grp The context for the elliptic curve to use.
142 * set, for example through mbedtls_ecp_group_load().
143 * \param r The MPI context in which to store the first part
145 * \param s The MPI context in which to store the second part
154 * \param p_rng The RNG context to be passed to \p f_rng. This may be
155 * \c NULL if \p f_rng doesn't need a context parameter.
168 * previously-hashed message, deterministic version.
170 * For more information, see <em>RFC-6979: Deterministic
176 * defined in <em>Standards for Efficient Cryptography Group
182 * \param grp The context for the elliptic curve to use.
184 * set, for example through mbedtls_ecp_group_load().
185 * \param r The MPI context in which to store the first part
187 * \param s The MPI context in which to store the second part
190 * and setup, for example through mbedtls_ecp_gen_privkey().
196 * \param f_rng_blind The RNG function used for blinding. This must not be
198 * \param p_rng_blind The RNG context to be passed to \p f_rng_blind. This
199 * may be \c NULL if \p f_rng_blind doesn't need a context
217 * previously-hashed message, in a restartable way.
230 * hash is truncated as defined in <em>Standards for
236 * \param grp The context for the elliptic curve to use.
238 * set, for example through mbedtls_ecp_group_load().
239 * \param r The MPI context in which to store the first part
241 * \param s The MPI context in which to store the second part
244 * and setup, for example through
251 * \param p_rng The RNG context to be passed to \p f_rng. This may be
252 * \c NULL if \p f_rng doesn't need a context parameter.
253 * \param f_rng_blind The RNG function used for blinding. This must not be
255 * \param p_rng_blind The RNG context to be passed to \p f_rng. This may be
256 * \c NULL if \p f_rng doesn't need a context parameter.
257 * \param rs_ctx The restart context to use. This may be \c NULL
259 * must point to an initialized restart context.
286 * previously-hashed message, in a restartable way.
295 * hash is truncated as defined in <em>Standards for
301 * \param grp The context for the elliptic curve to use.
303 * set, for example through mbedtls_ecp_group_load().
304 * \param r The MPI context in which to store the first part
306 * \param s The MPI context in which to store the second part
309 * and setup, for example through
316 * \param f_rng_blind The RNG function used for blinding. This must not be
318 * \param p_rng_blind The RNG context to be passed to \p f_rng_blind. This may be
319 * \c NULL if \p f_rng_blind doesn't need a context parameter.
320 * \param rs_ctx The restart context to use. This may be \c NULL
322 * must point to an initialized restart context.
345 * previously-hashed message.
349 * defined in <em>Standards for Efficient Cryptography Group
357 * set, for example through mbedtls_ecp_group_load().
362 * \param Q The public key to use for verification. This must be
381 * previously-hashed message, in a restartable manner
385 * defined in <em>Standards for Efficient Cryptography Group
393 * set, for example through mbedtls_ecp_group_load().
398 * \param Q The public key to use for verification. This must be
404 * \param rs_ctx The restart context to use. This may be \c NULL to disable
406 * initialized restart context.
425 * to a buffer, serialized as defined in <em>RFC-4492:
426 * Elliptic Curve Cryptography (ECC) Cipher Suites for
429 * \warning It is not thread-safe to use the same context in
433 * #MBEDTLS_ECDSA_DETERMINISTIC is defined. For more
434 * information, see <em>RFC-6979: Deterministic Usage
440 * defined in <em>Standards for Efficient Cryptography Group
446 * \param ctx The ECDSA context to use. This must be initialized
447 * and have a group and private key bound to it, for example
455 * size of the curve used, plus 9. For example, 73 Bytes if
456 * a 256-bit curve is used. A buffer length of
463 * it is used only for blinding and may be set to \c NULL, but
465 * \param p_rng The RNG context to be passed to \p f_rng. This may be
466 * \c NULL if \p f_rng is \c NULL or doesn't use a context.
489 * \param ctx The ECDSA context to use. This must be initialized
490 * and have a group and private key bound to it, for example
498 * size of the curve used, plus 9. For example, 73 Bytes if
499 * a 256-bit curve is used. A buffer length of
507 * \param p_rng The RNG context to be passed to \p f_rng. This may be
508 * \c NULL if \p f_rng is \c NULL or doesn't use a context.
509 * \param rs_ctx The restart context to use. This may be \c NULL to disable
511 * initialized restart context.
532 * defined in <em>Standards for Efficient Cryptography Group
538 * \param ctx The ECDSA context to use. This must be initialized
552 * error code on failure for any other reason.
568 * \param ctx The ECDSA context to use. This must be initialized
576 * \param rs_ctx The restart context to use. This may be \c NULL to disable
578 * initialized restart context.
587 * error code on failure for any other reason.
599 * \param ctx The ECDSA context to store the keypair in.
604 * \param p_rng The RNG context to be passed to \p f_rng. This may be
605 * \c NULL if \p f_rng doesn't need a context argument.
614 * \brief This function sets up an ECDSA context from an EC key pair.
618 * \param ctx The ECDSA context to setup. This must be initialized.
620 * a private-public key pair or a public key. In the former
621 * case, the ECDSA context may be used for signature creation
623 * may be used for signature verification.
632 * \brief This function initializes an ECDSA context.
634 * \param ctx The ECDSA context to initialize.
640 * \brief This function frees an ECDSA context.
642 * \param ctx The ECDSA context to free. This may be \c NULL,
650 * \brief Initialize a restart context.
652 * \param ctx The restart context to initialize.
658 * \brief Free the components of a restart context.
660 * \param ctx The restart context to free. This may be \c NULL,