Lines Matching refs:pk
98 mbedtls_pk_context pk; member
711 mbedtls_pk_init(&backend->pk);
717 ret = mbedtls_pk_parse_keyfile(&backend->pk, ssl_config->key,
722 ret = mbedtls_pk_parse_keyfile(&backend->pk, ssl_config->key,
743 ret = mbedtls_pk_parse_key(&backend->pk, key_data, ssl_key_blob->len,
749 ret = mbedtls_pk_parse_key(&backend->pk, key_data, ssl_key_blob->len,
762 if(ret == 0 && !(mbedtls_pk_can_do(&backend->pk, MBEDTLS_PK_RSA) ||
763 mbedtls_pk_can_do(&backend->pk, MBEDTLS_PK_ECKEY)))
915 &backend->clicert, &backend->pk);
1080 size = mbedtls_pk_write_pubkey_der(&p->MBEDTLS_PRIVATE(pk), pubkey,
1083 size = mbedtls_pk_write_pubkey_der(&p->pk, pubkey, PUB_DER_MAX_BYTES);
1314 mbedtls_pk_free(&backend->pk);