This function frees the components of a key pair.
This function sets up an ECDH context from an EC key. It is used by clients and servers in place of the ServerKeyExchange for static ECDH, and imports ECDH parameters from the EC key information of a certificate. \see ecp.h
Load the contents of a key buffer into an internal ECP representation
This function frees an ECDSA context.
This function initializes an ECDSA context.
This function generates an ECP key.
This function exports an elliptic curve private key.
This function reads and verifies an ECDSA signature. \see ecp.h
This function sets up an ECDSA context from an EC key pair. \see ecp.h
This function reads an elliptic curve private key.
Export an ECP key to export representation
This function computes the ECDSA signature and writes it to a buffer, serialized as defined in RFC-4492: Elliptic Curve Cryptography (ECC) Cipher Suites for Transport Layer Security (TLS). \warning It is not thread-safe to use the same context in multiple threads. \see ecp.h
This function computes the ECDSA signature and writes it to a buffer, in a restartable way. \see \c mbedtls_ecdsa_write_signature()
This function reads and verifies an ECDSA signature, in a restartable way. \see \c mbedtls_ecdsa_read_signature()
This function exports an elliptic curve public key.
This function checks that the keypair objects \p pub and \p prv have the same group and the same public point, and that the private key in \p prv is consistent with the public key.
Load the public part of an internal ECP, if required.
This function generates an ECDSA keypair on the given curve. \see ecp.h
Set the public key in a key pair object.
Calculate the public key from a private key in a key pair.
Query the group that a key pair belongs to.
This function exports generic key-pair parameters. Each of the output parameters can be a null pointer if you do not need that parameter.
This function sets up an x25519 context from an EC key. It is used by clients and servers in place of the ServerKeyEchange for static ECDH, and imports ECDH parameters from the EC key information of a certificate. \see ecp.h
This function sets up an ECDH context from an EC key. It is used by clients and servers in place of the ServerKeyEchange for static ECDH, and imports ECDH parameters from the EC key information of a certificate. \see ecp.h