Lines Matching refs:eck
723 static int pk_parse_key_sec1_der( mbedtls_ecp_keypair *eck, in pk_parse_key_sec1_der() argument
762 if( ( ret = mbedtls_mpi_read_binary( &eck->d, p, len ) ) != 0 ) in pk_parse_key_sec1_der()
764 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
780 ( ret = pk_use_ecparams( ¶ms, &eck->grp ) ) != 0 ) in pk_parse_key_sec1_der()
782 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
788 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
808 if( ( ret = pk_get_ecpubkey( &p, end2, eck ) ) == 0 ) in pk_parse_key_sec1_der()
822 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
828 ( ret = mbedtls_ecp_mul( &eck->grp, &eck->Q, &eck->d, &eck->grp.G, in pk_parse_key_sec1_der()
831 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()
835 if( ( ret = mbedtls_ecp_check_privkey( &eck->grp, &eck->d ) ) != 0 ) in pk_parse_key_sec1_der()
837 mbedtls_ecp_keypair_free( eck ); in pk_parse_key_sec1_der()