Lines Matching refs:eck
861 static int pk_parse_key_sec1_der( mbedtls_ecp_keypair *eck, in pk_parse_key_sec1_der() argument
900 if( ( ret = mbedtls_mpi_read_binary( &eck->d, p, len ) ) != 0 ) in pk_parse_key_sec1_der()
902 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
918 ( ret = pk_use_ecparams( ¶ms, &eck->grp ) ) != 0 ) in pk_parse_key_sec1_der()
920 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
926 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
949 if( ( ret = pk_get_ecpubkey( &p, end2, eck ) ) == 0 ) in pk_parse_key_sec1_der()
963 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
969 ( ret = mbedtls_ecp_mul( &eck->grp, &eck->Q, &eck->d, &eck->grp.G, in pk_parse_key_sec1_der()
972 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
976 if( ( ret = mbedtls_ecp_check_privkey( &eck->grp, &eck->d ) ) != 0 ) in pk_parse_key_sec1_der()
978 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()