Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_x509.c36 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6]; in s_ecc_import_x509_with_curve() local
48 LTC_SET_ASN1(seq_ecparams, 0, LTC_ASN1_SHORT_INTEGER, &ecver, 1UL); in s_ecc_import_x509_with_curve()
49 LTC_SET_ASN1(seq_ecparams, 1, LTC_ASN1_SEQUENCE, seq_fieldid, 2UL); in s_ecc_import_x509_with_curve()
50 LTC_SET_ASN1(seq_ecparams, 2, LTC_ASN1_SEQUENCE, seq_curve, 3UL); in s_ecc_import_x509_with_curve()
51 LTC_SET_ASN1(seq_ecparams, 3, LTC_ASN1_OCTET_STRING, bin_g, sizeof(bin_g)); in s_ecc_import_x509_with_curve()
52 LTC_SET_ASN1(seq_ecparams, 4, LTC_ASN1_INTEGER, order, 1UL); in s_ecc_import_x509_with_curve()
53 LTC_SET_ASN1(seq_ecparams, 5, LTC_ASN1_SHORT_INTEGER, &cofactor, 1UL); in s_ecc_import_x509_with_curve()
54 seq_ecparams[5].optional = 1; in s_ecc_import_x509_with_curve()
66 …ect_public_key_info(in, inlen, LTC_OID_EC, bin_xy, &len_xy, LTC_ASN1_SEQUENCE, seq_ecparams, &len); in s_ecc_import_x509_with_curve()
71 len_g = seq_ecparams[3].size; in s_ecc_import_x509_with_curve()
A Decc_import_openssl.c45 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6], seq_priv[4], custom[2]; in s_ecc_import_private_with_curve() local
59 LTC_SET_ASN1(custom, 0, LTC_ASN1_SEQUENCE, seq_ecparams, 6UL); in s_ecc_import_private_with_curve()
66 LTC_SET_ASN1(seq_ecparams, 0, LTC_ASN1_SHORT_INTEGER, &ecver, 1UL); in s_ecc_import_private_with_curve()
67 LTC_SET_ASN1(seq_ecparams, 1, LTC_ASN1_SEQUENCE, seq_fieldid, 2UL); in s_ecc_import_private_with_curve()
68 LTC_SET_ASN1(seq_ecparams, 2, LTC_ASN1_SEQUENCE, seq_curve, 3UL); in s_ecc_import_private_with_curve()
69 LTC_SET_ASN1(seq_ecparams, 3, LTC_ASN1_OCTET_STRING, bin_g, sizeof(bin_g)); in s_ecc_import_private_with_curve()
70 LTC_SET_ASN1(seq_ecparams, 4, LTC_ASN1_INTEGER, order, 1UL); in s_ecc_import_private_with_curve()
71 LTC_SET_ASN1(seq_ecparams, 5, LTC_ASN1_SHORT_INTEGER, &cofactor, 1UL); in s_ecc_import_private_with_curve()
72 seq_ecparams[5].optional = 1; in s_ecc_import_private_with_curve()
87 len_g = seq_ecparams[3].size; in s_ecc_import_private_with_curve()
A Decc_export_openssl.c26 ltc_asn1_list seq_fieldid[2], seq_curve[2], seq_ecparams[6], seq_priv[4], pub_xy, ecparams; in ecc_export_openssl() local
107 LTC_SET_ASN1(seq_ecparams, 0, LTC_ASN1_SHORT_INTEGER, &one, 1UL); in ecc_export_openssl()
108 LTC_SET_ASN1(seq_ecparams, 1, LTC_ASN1_SEQUENCE, seq_fieldid, 2UL); in ecc_export_openssl()
109 LTC_SET_ASN1(seq_ecparams, 2, LTC_ASN1_SEQUENCE, seq_curve, 2UL); in ecc_export_openssl()
110 LTC_SET_ASN1(seq_ecparams, 3, LTC_ASN1_OCTET_STRING, bin_g, len_g); in ecc_export_openssl()
111 LTC_SET_ASN1(seq_ecparams, 4, LTC_ASN1_INTEGER, order, 1UL); in ecc_export_openssl()
112 LTC_SET_ASN1(seq_ecparams, 5, LTC_ASN1_SHORT_INTEGER, &cofactor, 1UL); in ecc_export_openssl()
115 LTC_SET_ASN1(&ecparams, 0, LTC_ASN1_SEQUENCE, seq_ecparams, 6UL); in ecc_export_openssl()

Completed in 3 milliseconds