Home
last modified time | relevance | path

Searched refs:LTC_SET_ASN1 (Results 1 – 19 of 19) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_openssl.c27 LTC_SET_ASN1(custom, 0, LTC_ASN1_OBJECT_IDENTIFIER, curveoid, 16UL); in _ecc_import_private_with_oid()
29 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); in _ecc_import_private_with_oid()
66 LTC_SET_ASN1(custom, 0, LTC_ASN1_SEQUENCE, seq_ecparams, 6UL); in _ecc_import_private_with_curve()
68 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); 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()
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()
81 LTC_SET_ASN1(seq_fieldid, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, 16UL); in _ecc_import_private_with_curve()
[all …]
A Decc_export_openssl.c114 LTC_SET_ASN1(seq_fieldid, 1, LTC_ASN1_INTEGER, prime, 1UL); in ecc_export_openssl()
117 LTC_SET_ASN1(seq_curve, 0, LTC_ASN1_OCTET_STRING, bin_a, len_a); in ecc_export_openssl()
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()
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()
147 LTC_SET_ASN1(&pub_xy, 0, LTC_ASN1_RAW_BIT_STRING, bin_xy, 8*len_xy); in ecc_export_openssl()
148 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &one, 1); in ecc_export_openssl()
[all …]
A Decc_import_x509.c55 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()
63 LTC_SET_ASN1(seq_fieldid, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, 16UL); in _ecc_import_x509_with_curve()
64 LTC_SET_ASN1(seq_fieldid, 1, LTC_ASN1_INTEGER, prime, 1UL); in _ecc_import_x509_with_curve()
66 LTC_SET_ASN1(seq_curve, 0, LTC_ASN1_OCTET_STRING, bin_a, sizeof(bin_a)); in _ecc_import_x509_with_curve()
67 LTC_SET_ASN1(seq_curve, 1, LTC_ASN1_OCTET_STRING, bin_b, sizeof(bin_b)); in _ecc_import_x509_with_curve()
[all …]
A Decc_decrypt_key.c51 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0])); in ecc_decrypt_key()
80 LTC_SET_ASN1(decode, 1, LTC_ASN1_OCTET_STRING, pub_expt, ECC_BUF_SIZE); in ecc_decrypt_key()
81 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in ecc_decrypt_key()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_import_pkcs8.c94 LTC_SET_ASN1(alg_seq, 0, LTC_ASN1_OBJECT_IDENTIFIER, oid, 16UL); in rsa_import_pkcs8()
95 LTC_SET_ASN1(alg_seq, 1, LTC_ASN1_NULL, NULL, 0UL); in rsa_import_pkcs8()
96 LTC_SET_ASN1(top_seq, 0, LTC_ASN1_INTEGER, zero, 1UL); in rsa_import_pkcs8()
97 LTC_SET_ASN1(top_seq, 1, LTC_ASN1_SEQUENCE, alg_seq, 2UL); in rsa_import_pkcs8()
98 LTC_SET_ASN1(top_seq, 2, LTC_ASN1_OCTET_STRING, buf1, buf1len); in rsa_import_pkcs8()
A Drsa_verify_hash.c141 LTC_SET_ASN1(digestinfo, 0, LTC_ASN1_OBJECT_IDENTIFIER, loid, sizeof(loid)/sizeof(loid[0])); in rsa_verify_hash_ex()
142 LTC_SET_ASN1(digestinfo, 1, LTC_ASN1_NULL, NULL, 0); in rsa_verify_hash_ex()
143 LTC_SET_ASN1(siginfo, 0, LTC_ASN1_SEQUENCE, digestinfo, 2); in rsa_verify_hash_ex()
144LTC_SET_ASN1(siginfo, 1, LTC_ASN1_OCTET_STRING, tmpbuf, siglen); in rsa_verify_hash_ex()
148 LTC_SET_ASN1(siginfo, 0, LTC_ASN1_SEQUENCE, digestinfo, 1); in rsa_verify_hash_ex()
A Drsa_sign_hash.c105LTC_SET_ASN1(digestinfo, 0, LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash_idx]->OID, hash_descr… in rsa_sign_hash_ex()
106 LTC_SET_ASN1(digestinfo, 1, LTC_ASN1_NULL, NULL, 0); in rsa_sign_hash_ex()
107 LTC_SET_ASN1(siginfo, 0, LTC_ASN1_SEQUENCE, digestinfo, 2); in rsa_sign_hash_ex()
108 LTC_SET_ASN1(siginfo, 1, LTC_ASN1_OCTET_STRING, in, inlen); in rsa_sign_hash_ex()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_subject_public_key_info.c80 LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, sizeof(tmpoid)/sizeof(tmpoid[0])); in x509_decode_subject_public_key_info()
84 LTC_SET_ASN1(alg_id, 1, parameters_type, parameters, *_parameters_len); in x509_decode_subject_public_key_info()
91 LTC_SET_ASN1(subject_pubkey, 0, LTC_ASN1_SEQUENCE, alg_id, alg_id_num); in x509_decode_subject_public_key_info()
92 LTC_SET_ASN1(subject_pubkey, 1, LTC_ASN1_RAW_BIT_STRING, tmpbuf, inlen*8U); in x509_decode_subject_public_key_info()
A Dx509_encode_subject_public_key_info.c62 LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, oid, oidlen); in x509_encode_subject_public_key_info()
63 LTC_SET_ASN1(alg_id, 1, parameters_type, parameters, parameters_len); in x509_encode_subject_public_key_info()
/optee_os/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c1445 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_SHORT_INTEGER, &fp_entries, 1); in ltc_ecc_fp_save_state()
1446 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_SHORT_INTEGER, &fp_lut, 1); in ltc_ecc_fp_save_state()
1463 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_INTEGER, fp_cache[i].mu, 1); in ltc_ecc_fp_save_state()
1465 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_EOL, 0, 0); in ltc_ecc_fp_save_state()
1467 LTC_SET_ASN1(cache_entry, 0, LTC_ASN1_SHORT_INTEGER, &num_entries, 1); in ltc_ecc_fp_save_state()
1535 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_SHORT_INTEGER, &num_entries, 1); in ltc_ecc_fp_restore_state()
1536 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_SHORT_INTEGER, &fp_entries, 1); in ltc_ecc_fp_restore_state()
1537 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_SHORT_INTEGER, &fp_lut, 1); in ltc_ecc_fp_restore_state()
1560 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_INTEGER, p->x, 1); in ltc_ecc_fp_restore_state()
1561 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_INTEGER, p->y, 1); in ltc_ecc_fp_restore_state()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c81 LTC_SET_ASN1(int_list, 0, LTC_ASN1_INTEGER, key->p, 1UL); in dsa_export()
82 LTC_SET_ASN1(int_list, 1, LTC_ASN1_INTEGER, key->q, 1UL); in dsa_export()
83 LTC_SET_ASN1(int_list, 2, LTC_ASN1_INTEGER, key->g, 1UL); in dsa_export()
A Ddsa_decrypt_key.c50 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0])); in dsa_decrypt_key()
81 LTC_SET_ASN1(decode, 1, LTC_ASN1_INTEGER, g_pub, 1UL); in dsa_decrypt_key()
82 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in dsa_decrypt_key()
A Ddsa_import.c96 LTC_SET_ASN1(params, 0, LTC_ASN1_INTEGER, key->p, 1UL); in dsa_import()
97 LTC_SET_ASN1(params, 1, LTC_ASN1_INTEGER, key->q, 1UL); in dsa_import()
98 LTC_SET_ASN1(params, 2, LTC_ASN1_INTEGER, key->g, 1UL); in dsa_import()
A Ddsa_verify_hash.c112 LTC_SET_ASN1(sig_seq, 0, LTC_ASN1_INTEGER, r, 1UL); in dsa_verify_hash()
113 LTC_SET_ASN1(sig_seq, 1, LTC_ASN1_INTEGER, s, 1UL); in dsa_verify_hash()
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
A Dec25519_import_pkcs8.c47LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, sizeof(tmpoid) / sizeof(tmpoid[0])); in ec25519_import_pkcs8()
A Dec25519_export.c57 LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, oid, oidlen); in ec25519_export()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_encode_sequence_multi.c124 LTC_SET_ASN1(list, x++, type, data, size); in der_encode_sequence_multi()
A Dder_decode_sequence_multi.c122 LTC_SET_ASN1(list, x++, type, data, size); in _der_decode_sequence_va()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h543 #define LTC_SET_ASN1(list, index, Type, Data, Size) \ macro
570 LTC_SET_ASN1(list, LTC_MACRO_temp##__LINE__, LTC_ASN1_CUSTOM_TYPE, Data, 1); \
577 LTC_SET_ASN1(list, LTC_MACRO_temp##__LINE__, LTC_ASN1_CUSTOM_TYPE, Data, Size); \

Completed in 19 milliseconds