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

mbedtls_ecp_copy() function

This function copies the contents of point \p Q into point \p P.

Syntax

int mbedtls_ecp_copy( mbedtls_ecp_point *P,     const mbedtls_ecp_point *Q );
Implemented in ecp.c:642

Arguments

P

The destination point. This must be initialized.

Q

The source point. This must be initialized.

Return value

\c 0 on success. #MBEDTLS_ERR_MPI_ALLOC_FAILED on memory-allocation failure. Another negative error code for other kinds of failure.

References

LocationReferrerText
ecp.c:642
int mbedtls_ecp_copy( mbedtls_ecp_point *P, const mbedtls_ecp_point *Q )
ecp.h:552
int mbedtls_ecp_copy( mbedtls_ecp_point *P, const mbedtls_ecp_point *Q );
ecdh.c:429ecdh_get_params_internal()
return( mbedtls_ecp_copy( &ctx->Qp, &key->Q ) );
ecdh.c:435ecdh_get_params_internal()
if( ( ret = mbedtls_ecp_copy( &ctx->Q, &key->Q ) ) != 0 ||
ecdsa.c:827mbedtls_ecdsa_from_keypair()
( ret = mbedtls_ecp_copy( &ctx->Q, &key->Q ) ) != 0 )
ecp.c:1376ecp_add_mixed()
return( mbedtls_ecp_copy( R, Q ) );
ecp.c:1379ecp_add_mixed()
return( mbedtls_ecp_copy( R, P ) );
ecp.c:1656ecp_precompute_comb()
MBEDTLS_MPI_CHK( mbedtls_ecp_copy( &T[0], P ) );
ecp.c:1673ecp_precompute_comb()
MBEDTLS_MPI_CHK( mbedtls_ecp_copy( cur, T + ( i >> 1 ) ) );
ecp.c:2465mbedtls_ecp_mul_shortcuts()
MBEDTLS_MPI_CHK( mbedtls_ecp_copy( R, P ) );
ecp.c:2469mbedtls_ecp_mul_shortcuts()
MBEDTLS_MPI_CHK( mbedtls_ecp_copy( R, P ) );

Call Tree

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