Lines Matching refs:pk
97 mbedtls_pk_context pk; member
710 mbedtls_pk_init(&backend->pk);
716 ret = mbedtls_pk_parse_keyfile(&backend->pk, ssl_config->key,
721 ret = mbedtls_pk_parse_keyfile(&backend->pk, ssl_config->key,
742 ret = mbedtls_pk_parse_key(&backend->pk, key_data, ssl_key_blob->len,
748 ret = mbedtls_pk_parse_key(&backend->pk, key_data, ssl_key_blob->len,
761 if(ret == 0 && !(mbedtls_pk_can_do(&backend->pk, MBEDTLS_PK_RSA) ||
762 mbedtls_pk_can_do(&backend->pk, MBEDTLS_PK_ECKEY)))
913 &backend->clicert, &backend->pk);
1078 size = mbedtls_pk_write_pubkey_der(&p->MBEDTLS_PRIVATE(pk), pubkey,
1081 size = mbedtls_pk_write_pubkey_der(&p->pk, pubkey, PUB_DER_MAX_BYTES);
1307 mbedtls_pk_free(&backend->pk);