D | pkwrite.c | 103 mbedtls_ecp_keypair *ec ) in pk_write_ec_pubkey() argument 109 if( ( ret = mbedtls_ecp_point_write_binary( &ec->grp, &ec->Q, in pk_write_ec_pubkey() 131 mbedtls_ecp_keypair *ec ) in pk_write_ec_param() argument 138 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param() 150 mbedtls_ecp_keypair *ec ) in pk_write_ec_private() argument 153 size_t byte_length = ( ec->grp.pbits + 7 ) / 8; in pk_write_ec_private() 156 ret = mbedtls_ecp_write_key( ec, tmp, byte_length ); in pk_write_ec_private() 404 mbedtls_ecp_keypair *ec = mbedtls_pk_ec( *key ); in mbedtls_pk_write_key_der() local 419 MBEDTLS_ASN1_CHK_ADD( pub_len, pk_write_ec_pubkey( &c, buf, ec ) ); in mbedtls_pk_write_key_der() 435 MBEDTLS_ASN1_CHK_ADD( par_len, pk_write_ec_param( &c, buf, ec ) ); in mbedtls_pk_write_key_der() [all …]
|