mbedtls_ecdsa_from_keypair() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_ecdsa_from_keypair() function

This function sets up an ECDSA context from an EC key pair. \see ecp.h

Syntax

int mbedtls_ecdsa_from_keypair( mbedtls_ecdsa_context *ctx,     const mbedtls_ecp_keypair *key );
Implemented in ecdsa.c:819

Arguments

ctx

The ECDSA context to setup. This must be initialized.

key

The EC key to use. This must be initialized and hold a private-public key pair or a public key. In the former case, the ECDSA context may be used for signature creation and verification after this call. In the latter case, it may be used for signature verification.

Return value

\c 0 on success. An \c MBEDTLS_ERR_ECP_XXX code on failure.

References

LocationReferrerText
ecdsa.c:819
int mbedtls_ecdsa_from_keypair( mbedtls_ecdsa_context *ctx, const mbedtls_ecp_keypair *key )
ecdsa.h:502
int mbedtls_ecdsa_from_keypair( mbedtls_ecdsa_context *ctx,
pk_wrap.c:246eckey_verify_wrap()
if( ( ret = mbedtls_ecdsa_from_keypair( &ecdsa, ctx ) ) == 0 )
pk_wrap.c:264eckey_sign_wrap()
if( ( ret = mbedtls_ecdsa_from_keypair( &ecdsa, ctx ) ) == 0 )

Call Tree

Functions calling mbedtls_ecdsa_from_keypair()
Functions called by mbedtls_ecdsa_from_keypair()
mbedtls_ecdsa_from_keypair()
Data read by mbedtls_ecdsa_from_keypair()
Data written by mbedtls_ecdsa_from_keypair()
mbedtls_ecdsa_from_keypair()::ret
all items filtered out
mbedtls_ecdsa_from_keypair()
mbedtls_ecdsa_from_keypair()::ret
all items filtered out