Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_openssl.c20 LTC_SET_ASN1(custom, 0, LTC_ASN1_OBJECT_IDENTIFIER, curveoid, 16UL); in s_ecc_import_private_with_oid()
22 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); in s_ecc_import_private_with_oid()
59 LTC_SET_ASN1(custom, 0, LTC_ASN1_SEQUENCE, seq_ecparams, 6UL); in s_ecc_import_private_with_curve()
61 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &pkver, 1UL); 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()
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()
74 LTC_SET_ASN1(seq_fieldid, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, 16UL); in s_ecc_import_private_with_curve()
[all …]
A Decc_export_openssl.c100 LTC_SET_ASN1(seq_fieldid, 1, LTC_ASN1_INTEGER, prime, 1UL); in ecc_export_openssl()
103 LTC_SET_ASN1(seq_curve, 0, LTC_ASN1_OCTET_STRING, bin_a, len_a); in ecc_export_openssl()
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()
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()
141 LTC_SET_ASN1(&pub_xy, 0, LTC_ASN1_RAW_BIT_STRING, bin_xy, 8*len_xy); in ecc_export_openssl()
142 LTC_SET_ASN1(seq_priv, 0, LTC_ASN1_SHORT_INTEGER, &one, 1); in ecc_export_openssl()
[all …]
A Decc_import_x509.c48 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()
56 LTC_SET_ASN1(seq_fieldid, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, 16UL); in s_ecc_import_x509_with_curve()
57 LTC_SET_ASN1(seq_fieldid, 1, LTC_ASN1_INTEGER, prime, 1UL); in s_ecc_import_x509_with_curve()
59 LTC_SET_ASN1(seq_curve, 0, LTC_ASN1_OCTET_STRING, bin_a, sizeof(bin_a)); in s_ecc_import_x509_with_curve()
60 LTC_SET_ASN1(seq_curve, 1, LTC_ASN1_OCTET_STRING, bin_b, sizeof(bin_b)); in s_ecc_import_x509_with_curve()
[all …]
A Decc_decrypt_key.c44 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0])); in ecc_decrypt_key()
73 LTC_SET_ASN1(decode, 1, LTC_ASN1_OCTET_STRING, pub_expt, ECC_BUF_SIZE); in ecc_decrypt_key()
74 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in ecc_decrypt_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_import_pkcs8.c85 LTC_SET_ASN1(alg_seq, 0, LTC_ASN1_OBJECT_IDENTIFIER, oid, 16UL); in rsa_import_pkcs8()
86 LTC_SET_ASN1(alg_seq, 1, LTC_ASN1_NULL, NULL, 0UL); in rsa_import_pkcs8()
87 LTC_SET_ASN1(top_seq, 0, LTC_ASN1_SHORT_INTEGER, &version, 1UL); in rsa_import_pkcs8()
88 LTC_SET_ASN1(top_seq, 1, LTC_ASN1_SEQUENCE, alg_seq, 2UL); in rsa_import_pkcs8()
89 LTC_SET_ASN1(top_seq, 2, LTC_ASN1_OCTET_STRING, buf1, buf1len); in rsa_import_pkcs8()
A Drsa_sign_hash.c98LTC_SET_ASN1(digestinfo, 0, LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash_idx]->OID, hash_descr… in rsa_sign_hash_ex()
99 LTC_SET_ASN1(digestinfo, 1, LTC_ASN1_NULL, NULL, 0); in rsa_sign_hash_ex()
100 LTC_SET_ASN1(siginfo, 0, LTC_ASN1_SEQUENCE, digestinfo, 2); in rsa_sign_hash_ex()
101 LTC_SET_ASN1(siginfo, 1, LTC_ASN1_OCTET_STRING, in, inlen); in rsa_sign_hash_ex()
A Drsa_verify_hash.c144 LTC_SET_ASN1(digestinfo, 0, LTC_ASN1_OBJECT_IDENTIFIER, loid, sizeof(loid)/sizeof(loid[0])); in rsa_verify_hash_ex()
145 LTC_SET_ASN1(digestinfo, 1, LTC_ASN1_NULL, NULL, 0); in rsa_verify_hash_ex()
146 LTC_SET_ASN1(siginfo, 0, LTC_ASN1_SEQUENCE, digestinfo, 2); in rsa_verify_hash_ex()
147LTC_SET_ASN1(siginfo, 1, LTC_ASN1_OCTET_STRING, tmpbuf, siglen); in rsa_verify_hash_ex()
151 LTC_SET_ASN1(siginfo, 0, LTC_ASN1_SEQUENCE, digestinfo, 1); in rsa_verify_hash_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_subject_public_key_info.c73 LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, sizeof(tmpoid)/sizeof(tmpoid[0])); in x509_decode_subject_public_key_info()
77 LTC_SET_ASN1(alg_id, 1, parameters_type, parameters, *_parameters_len); in x509_decode_subject_public_key_info()
84 LTC_SET_ASN1(subject_pubkey, 0, LTC_ASN1_SEQUENCE, alg_id, alg_id_num); in x509_decode_subject_public_key_info()
85 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.c55 LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, oid, oidlen); in x509_encode_subject_public_key_info()
56 LTC_SET_ASN1(alg_id, 1, parameters_type, parameters, parameters_len); in x509_encode_subject_public_key_info()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c74 LTC_SET_ASN1(int_list, 0, LTC_ASN1_INTEGER, key->p, 1UL); in dsa_export()
75 LTC_SET_ASN1(int_list, 1, LTC_ASN1_INTEGER, key->q, 1UL); in dsa_export()
76 LTC_SET_ASN1(int_list, 2, LTC_ASN1_INTEGER, key->g, 1UL); in dsa_export()
A Ddsa_decrypt_key.c43 LTC_SET_ASN1(decode, 0, LTC_ASN1_OBJECT_IDENTIFIER, hashOID, sizeof(hashOID)/sizeof(hashOID[0])); in dsa_decrypt_key()
74 LTC_SET_ASN1(decode, 1, LTC_ASN1_INTEGER, g_pub, 1UL); in dsa_decrypt_key()
75 LTC_SET_ASN1(decode, 2, LTC_ASN1_OCTET_STRING, skey, MAXBLOCKSIZE); in dsa_decrypt_key()
A Ddsa_import.c89 LTC_SET_ASN1(params, 0, LTC_ASN1_INTEGER, key->p, 1UL); in dsa_import()
90 LTC_SET_ASN1(params, 1, LTC_ASN1_INTEGER, key->q, 1UL); in dsa_import()
91 LTC_SET_ASN1(params, 2, LTC_ASN1_INTEGER, key->g, 1UL); in dsa_import()
A Ddsa_verify_hash.c105 LTC_SET_ASN1(sig_seq, 0, LTC_ASN1_INTEGER, r, 1UL); in dsa_verify_hash()
106 LTC_SET_ASN1(sig_seq, 1, LTC_ASN1_INTEGER, s, 1UL); in dsa_verify_hash()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c1438 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_SHORT_INTEGER, &fp_entries, 1); in ltc_ecc_fp_save_state()
1439 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_SHORT_INTEGER, &fp_lut, 1); in ltc_ecc_fp_save_state()
1456 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_INTEGER, fp_cache[i].mu, 1); in ltc_ecc_fp_save_state()
1458 LTC_SET_ASN1(cache_entry, j++, LTC_ASN1_EOL, 0, 0); in ltc_ecc_fp_save_state()
1460 LTC_SET_ASN1(cache_entry, 0, LTC_ASN1_SHORT_INTEGER, &num_entries, 1); in ltc_ecc_fp_save_state()
1528 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_SHORT_INTEGER, &num_entries, 1); in ltc_ecc_fp_restore_state()
1529 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_SHORT_INTEGER, &fp_entries, 1); in ltc_ecc_fp_restore_state()
1530 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_SHORT_INTEGER, &fp_lut, 1); in ltc_ecc_fp_restore_state()
1553 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_INTEGER, p->x, 1); in ltc_ecc_fp_restore_state()
1554 LTC_SET_ASN1(asn1_list, j++, LTC_ASN1_INTEGER, p->y, 1); in ltc_ecc_fp_restore_state()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
A Dec25519_import_pkcs8.c40LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, tmpoid, sizeof(tmpoid) / sizeof(tmpoid[0])); in ec25519_import_pkcs8()
A Dec25519_export.c50 LTC_SET_ASN1(alg_id, 0, LTC_ASN1_OBJECT_IDENTIFIER, oid, oidlen); in ec25519_export()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_encode_sequence_multi.c119 LTC_SET_ASN1(list, x++, type, data, size); in der_encode_sequence_multi()
A Dder_decode_sequence_multi.c116 LTC_SET_ASN1(list, x++, type, data, size); in s_der_decode_sequence_va()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_pk.h551 #define LTC_SET_ASN1(list, index, Type, Data, Size) \ macro
578 LTC_SET_ASN1(list, LTC_MACRO_temp##__LINE__, LTC_ASN1_CUSTOM_TYPE, Data, 1); \
585 LTC_SET_ASN1(list, LTC_MACRO_temp##__LINE__, LTC_ASN1_CUSTOM_TYPE, Data, Size); \

Completed in 22 milliseconds