D | pkwrite.c | 86 mbedtls_ecp_keypair *ec ) in pk_write_ec_pubkey() argument 92 if( ( ret = mbedtls_ecp_point_write_binary( &ec->grp, &ec->Q, in pk_write_ec_pubkey() 114 mbedtls_ecp_keypair *ec ) in pk_write_ec_param() argument 121 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param() 229 mbedtls_ecp_keypair *ec = mbedtls_pk_ec( *key ); in mbedtls_pk_write_key_der() local 244 MBEDTLS_ASN1_CHK_ADD( pub_len, pk_write_ec_pubkey( &c, buf, ec ) ); in mbedtls_pk_write_key_der() 260 MBEDTLS_ASN1_CHK_ADD( par_len, pk_write_ec_param( &c, buf, ec ) ); in mbedtls_pk_write_key_der() 268 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_mpi( &c, buf, &ec->d ) ); in mbedtls_pk_write_key_der()
|