For example, add the following to the r_phase_items.c sample:
R_PKEY *pk = NULL;
R_ITEM pkX, pkY;
R_ITEM p1;
...
// after R_CR_key_exchange_phase_1(obj2, p1_buf2, &p1_len2)
if ((ret = r_phase_items_create_params(bio_err, pkey_ctx, R_PKEY_TYPE_ECC,
&pk)) != R_ERROR_NONE)
{
BIO_printf(bio_err, "Unable to create parameters\n");
goto end;
}
p1.data = p1_buf1;
p1.len = p1_len1;
if ((ret = R_PKEY_set_info(pk, R_PKEY_INFO_ID_EC_PUB_KEY, &p1)) != R_ERROR_NONE)
{
BIO_printf(bio_err, "Unable to set public key\n");
goto end;
}
if ((ret = R_PKEY_get_info(pk, R_PKEY_INFO_ID_EC_PUB_KEY_X, &pkX)) != R_ERROR_NONE)
{
BIO_printf(bio_err, "Unable to get X-ordinate\n");
goto end;
}
BIO_printf(bio_out, "OBJECT 1 X-ORDINATE:\n");
BIO_dump(bio_out, pkX.data, pkX.len);
if ((ret = R_PKEY_get_info(pk, R_PKEY_INFO_ID_EC_PUB_KEY_Y, &pkY)) != R_ERROR_NONE)
{
BIO_printf(bio_err, "Unable to get Y-ordinate\n");
goto end;
}
BIO_printf(bio_out, "OBJECT 1 Y-ORDINATE:\n");
BIO_dump(bio_out, pkY.data, pkY.len);
Related Articles
RSA Smart Card Middleware 3.6 PKCS 11 Developer Guide 19Number of Views How to configure backups if the remote backup folder is secured? 193Number of Views OpenSSL Vulnerability in RSA Authentication Manager 8.1 & 7.1 CVE-2015-3197 and CVE-2016-0701 - False Positive 44Number of Views Form used in manual fulfillment node does not reflect the changes done in the CR created in RSA Identity Governance & Life… 18Number of Views Account Template for Role Causes Invalid Account Name in CR for RSA Identity Governance & Lifecycle 34Number of Views
Trending Articles
Unable to login to RSA Authentication Manager Security Console as super admin Authentication Manager Administration Server with operations console service Fails to Start with "No config.xml Was Found"… Authentication Manager Security Console and Operations Console Inaccessible After Certificate Update RSA Authentication Manager Upgrade Process Authentication Manager How to Retrieve the LDAPS Certificate and Configure an External Identity Source to Use LDAPS