Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_x509.c43 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6]; in _ecc_import_x509_with_curve() local
55 LTC_SET_ASN1(seq_ecparams, 0, LTC_ASN1_SHORT_INTEGER, &ecver, 1UL); in _ecc_import_x509_with_curve()
56 LTC_SET_ASN1(seq_ecparams, 1, LTC_ASN1_SEQUENCE, seq_fieldid, 2UL); in _ecc_import_x509_with_curve()
57 LTC_SET_ASN1(seq_ecparams, 2, LTC_ASN1_SEQUENCE, seq_curve, 3UL); in _ecc_import_x509_with_curve()
58 LTC_SET_ASN1(seq_ecparams, 3, LTC_ASN1_OCTET_STRING, bin_g, sizeof(bin_g)); in _ecc_import_x509_with_curve()
59 LTC_SET_ASN1(seq_ecparams, 4, LTC_ASN1_INTEGER, order, 1UL); in _ecc_import_x509_with_curve()
60 LTC_SET_ASN1(seq_ecparams, 5, LTC_ASN1_SHORT_INTEGER, &cofactor, 1UL); in _ecc_import_x509_with_curve()
61 seq_ecparams[5].optional = 1; in _ecc_import_x509_with_curve()
73 …subject_public_key_info(in, inlen, PKA_EC, bin_xy, &len_xy, LTC_ASN1_SEQUENCE, seq_ecparams, &len); in _ecc_import_x509_with_curve()
78 len_g = seq_ecparams[3].size; in _ecc_import_x509_with_curve()
A Decc_import_openssl.c52 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6], seq_priv[4], custom[2]; in _ecc_import_private_with_curve() local
66 LTC_SET_ASN1(custom, 0, LTC_ASN1_SEQUENCE, seq_ecparams, 6UL); in _ecc_import_private_with_curve()
73 LTC_SET_ASN1(seq_ecparams, 0, LTC_ASN1_SHORT_INTEGER, &ecver, 1UL); in _ecc_import_private_with_curve()
74 LTC_SET_ASN1(seq_ecparams, 1, LTC_ASN1_SEQUENCE, seq_fieldid, 2UL); in _ecc_import_private_with_curve()
75 LTC_SET_ASN1(seq_ecparams, 2, LTC_ASN1_SEQUENCE, seq_curve, 3UL); in _ecc_import_private_with_curve()
76 LTC_SET_ASN1(seq_ecparams, 3, LTC_ASN1_OCTET_STRING, bin_g, sizeof(bin_g)); in _ecc_import_private_with_curve()
77 LTC_SET_ASN1(seq_ecparams, 4, LTC_ASN1_INTEGER, order, 1UL); in _ecc_import_private_with_curve()
78 LTC_SET_ASN1(seq_ecparams, 5, LTC_ASN1_SHORT_INTEGER, &cofactor, 1UL); in _ecc_import_private_with_curve()
79 seq_ecparams[5].optional = 1; in _ecc_import_private_with_curve()
94 len_g = seq_ecparams[3].size; in _ecc_import_private_with_curve()
A Decc_export_openssl.c33 ltc_asn1_list seq_fieldid[2], seq_curve[2], seq_ecparams[6], seq_priv[4], pub_xy, ecparams; in ecc_export_openssl() local
121 LTC_SET_ASN1(seq_ecparams, 0, LTC_ASN1_SHORT_INTEGER, &one, 1UL); in ecc_export_openssl()
122 LTC_SET_ASN1(seq_ecparams, 1, LTC_ASN1_SEQUENCE, seq_fieldid, 2UL); in ecc_export_openssl()
123 LTC_SET_ASN1(seq_ecparams, 2, LTC_ASN1_SEQUENCE, seq_curve, 2UL); in ecc_export_openssl()
124 LTC_SET_ASN1(seq_ecparams, 3, LTC_ASN1_OCTET_STRING, bin_g, len_g); in ecc_export_openssl()
125 LTC_SET_ASN1(seq_ecparams, 4, LTC_ASN1_INTEGER, order, 1UL); in ecc_export_openssl()
126 LTC_SET_ASN1(seq_ecparams, 5, LTC_ASN1_SHORT_INTEGER, &cofactor, 1UL); in ecc_export_openssl()
129 LTC_SET_ASN1(&ecparams, 0, LTC_ASN1_SEQUENCE, seq_ecparams, 6UL); in ecc_export_openssl()

Completed in 4 milliseconds