Home
last modified time | relevance | path

Searched refs:bin_xy (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_x509.c16 unsigned char bin_xy[2*ECC_MAXSIZE+2]; in _ecc_import_x509_with_oid() local
23 len_xy = sizeof(bin_xy); in _ecc_import_x509_with_oid()
25 err = x509_decode_subject_public_key_info(in, inlen, PKA_EC, bin_xy, &len_xy, in _ecc_import_x509_with_oid()
34 err = ecc_set_key(bin_xy, len_xy, PK_PUBLIC, key); in _ecc_import_x509_with_oid()
45 unsigned char bin_g[2*ECC_MAXSIZE+1], bin_xy[2*ECC_MAXSIZE+2], bin_seed[128]; in _ecc_import_x509_with_curve() local
71 len_xy = sizeof(bin_xy); in _ecc_import_x509_with_curve()
73 …err = x509_decode_subject_public_key_info(in, inlen, PKA_EC, bin_xy, &len_xy, LTC_ASN1_SEQUENCE, s… in _ecc_import_x509_with_curve()
86 err = ecc_set_key(bin_xy, len_xy, PK_PUBLIC, key); in _ecc_import_x509_with_curve()
A Decc_import_openssl.c18 unsigned char bin_xy[2*ECC_MAXSIZE+2], bin_k[ECC_MAXSIZE]; in _ecc_import_private_with_oid() local
28 LTC_SET_ASN1(custom, 1, LTC_ASN1_RAW_BIT_STRING, bin_xy, 8UL*sizeof(bin_xy)); in _ecc_import_private_with_oid()
54 unsigned char bin_g[2*ECC_MAXSIZE+1], bin_xy[2*ECC_MAXSIZE+2], bin_seed[128]; in _ecc_import_private_with_curve() local
67 LTC_SET_ASN1(custom, 1, LTC_ASN1_RAW_BIT_STRING, bin_xy, 8UL*sizeof(bin_xy)); in _ecc_import_private_with_curve()
A Decc_export_openssl.c28 unsigned char bin_a[256], bin_b[256], bin_k[256], bin_g[512], bin_xy[512]; in ecc_export_openssl() local
69 len_xy = sizeof(bin_xy); in ecc_export_openssl()
70 … err = ltc_ecc_export_point(bin_xy, &len_xy, key->pubkey.x, key->pubkey.y, key->dp.size, flag_com); in ecc_export_openssl()
147 LTC_SET_ASN1(&pub_xy, 0, LTC_ASN1_RAW_BIT_STRING, bin_xy, 8*len_xy); in ecc_export_openssl()
165 err = x509_encode_subject_public_key_info( out, outlen, PKA_EC, bin_xy, len_xy, in ecc_export_openssl()

Completed in 4 milliseconds