Home
last modified time | relevance | path

Searched refs:ltc_asn1_list (Results 1 – 25 of 42) sorted by relevance

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/set/
A Dder_encode_set.c21 ltc_asn1_list *A = (ltc_asn1_list *)a, *B = (ltc_asn1_list *)b; in s_qsort_helper()
42 int der_encode_set(const ltc_asn1_list *list, unsigned long inlen, in der_encode_set()
45 ltc_asn1_list *copy; in der_encode_set()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_import_pkcs8.c10 ltc_asn1_list **pp;
20 static int s_der_flexi_sequence_cmp(const ltc_asn1_list *flexi, der_flexi_check *check) in s_der_flexi_sequence_cmp()
22 const ltc_asn1_list *cur; in s_der_flexi_sequence_cmp()
31 if (check->pp != NULL) *check->pp = (ltc_asn1_list*)cur; in s_der_flexi_sequence_cmp()
50 ltc_asn1_list *p = NULL, *l = NULL; in ecc_import_pkcs8()
52 ltc_asn1_list *seq, *priv_key; in ecc_import_pkcs8()
78 ltc_asn1_list *version, *field, *point, *point_g, *order, *p_cofactor; in ecc_import_pkcs8()
99 ltc_asn1_list *curve_oid = seq->child->next; in ecc_import_pkcs8()
135 ltc_asn1_list *prime = field->child->next; in ecc_import_pkcs8()
161 ltc_asn1_list *lk = p->child->next; in ecc_import_pkcs8()
A Decc_import_openssl.c10 ltc_asn1_list seq_priv[4], custom[2]; in s_ecc_import_private_with_oid()
45 ltc_asn1_list seq_fieldid[2], seq_curve[3], seq_ecparams[6], seq_priv[4], custom[2]; in s_ecc_import_private_with_curve()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_subject_public_key_info.c36 ltc_asn1_type parameters_type, ltc_asn1_list* parameters, unsigned long *parameters_len) in x509_decode_subject_public_key_info()
44 ltc_asn1_list alg_id[2]; in x509_decode_subject_public_key_info()
45 ltc_asn1_list subject_pubkey[2]; in x509_decode_subject_public_key_info()
A Dx509_encode_subject_public_key_info.c36 ltc_asn1_type parameters_type, ltc_asn1_list* parameters, unsigned long parameters_len) in x509_encode_subject_public_key_info()
39 ltc_asn1_list alg_id[2]; in x509_encode_subject_public_key_info()
A Dx509_decode_public_key_from_certificate.c34ltc_asn1_list* parameters, unsigned long *parameters_len, in x509_decode_public_key_from_certificate()
40 ltc_asn1_list *decoded_list = NULL, *l; in x509_decode_public_key_from_certificate()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h65 ltc_asn1_list *enc_data;
66 ltc_asn1_list *salt;
67 ltc_asn1_list *iv;
252 int pbes1_extract(const ltc_asn1_list *s, pbes_arg *res);
253 int pbes2_extract(const ltc_asn1_list *s, pbes_arg *res);
398 ltc_asn1_list *root,
399 ltc_asn1_list *list, unsigned long outlen, unsigned int flags);
403 int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen);
409 int der_length_sequence_ex(const ltc_asn1_list *list, unsigned long inlen,
443 int pk_oid_cmp_with_asn1(const char *o1, const ltc_asn1_list *o2);
[all …]
A Dtomcrypt_pk.h549 } ltc_asn1_list; typedef
554 ltc_asn1_list *LTC_MACRO_list = (list); \
568 ltc_asn1_list *LTC_MACRO_list = (list); \
632 int der_length_sequence(const ltc_asn1_list *list, unsigned long inlen,
637 int der_encode_custom_type(const ltc_asn1_list *root,
641 ltc_asn1_list *root);
643 int der_length_custom_type(const ltc_asn1_list *root,
650 int der_encode_set(const ltc_asn1_list *list, unsigned long inlen,
653 int der_encode_setof(const ltc_asn1_list *list, unsigned long inlen,
663 void der_sequence_free(ltc_asn1_list *in);
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/pkcs8/
A Dpkcs8_decode_flexi.c19 ltc_asn1_list **decoded_list) in pkcs8_decode_flexi()
24 ltc_asn1_list *l = NULL; in pkcs8_decode_flexi()
46 ltc_asn1_list *lalgoid = l->child->child; in pkcs8_decode_flexi()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_sequence_free.c16 void der_sequence_free(ltc_asn1_list *in) in der_sequence_free()
18 ltc_asn1_list *l; in der_sequence_free()
A Dder_decode_sequence_ex.c23 ltc_asn1_list *list, unsigned long outlen, unsigned int flags) in der_decode_sequence_ex()
A Dder_sequence_shrink.c17 void der_sequence_shrink(ltc_asn1_list *in) in der_sequence_shrink()
A Dder_decode_sequence_flexi.c12 static int s_new_element(ltc_asn1_list **l) in s_new_element()
16 *l = XCALLOC(1, sizeof(ltc_asn1_list)); in s_new_element()
21 (*l)->next = XCALLOC(1, sizeof(ltc_asn1_list)); in s_new_element()
39 static int s_der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list in s_der_decode_sequence_flexi()
41 ltc_asn1_list *l; in s_der_decode_sequence_flexi()
535 int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out) in der_decode_sequence_flexi()
A Dder_length_sequence.c19 int der_length_sequence(const ltc_asn1_list *list, unsigned long inlen, in der_length_sequence()
25 int der_length_sequence_ex(const ltc_asn1_list *list, unsigned long inlen, in der_length_sequence_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pbes/
A Dpbes2.c48 static int s_pbes2_from_oid(const ltc_asn1_list *cipher_oid, const ltc_asn1_list *hmac_oid, pbes_pr… in s_pbes2_from_oid()
78 int pbes2_extract(const ltc_asn1_list *s, pbes_arg *res) in pbes2_extract()
81 ltc_asn1_list *lkdf, *lenc, *loptseq, *liter, *lhmac; in pbes2_extract()
A Dpbes1.c69 static int s_pbes1_from_oid(const ltc_asn1_list *oid, pbes_properties *res) in s_pbes1_from_oid()
88 int pbes1_extract(const ltc_asn1_list *s, pbes_arg *res) in pbes1_extract()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/general/
A Dder_length_asn1_identifier.c18 int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen) in der_length_asn1_identifier()
A Dder_encode_asn1_identifier.c18 int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsigned long *outlen) in der_encode_asn1_identifier()
A Dder_decode_asn1_identifier.c59 int der_decode_asn1_identifier(const unsigned char *in, unsigned long *inlen, ltc_asn1_list *id) in der_decode_asn1_identifier()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
A Dec25519_import_pkcs8.c27 ltc_asn1_list *l = NULL; in ec25519_import_pkcs8()
29 ltc_asn1_list alg_id[1]; in ec25519_import_pkcs8()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_import_pkcs8.c53 ltc_asn1_list alg_seq[2], top_seq[3]; in rsa_import_pkcs8()
54 ltc_asn1_list *l = NULL; in rsa_import_pkcs8()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/oid/
A Dpk_oid_cmp.c35 int pk_oid_cmp_with_asn1(const char *o1, const ltc_asn1_list *o2) in pk_oid_cmp_with_asn1()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/
A Dder_length_custom_type.c23 int der_length_custom_type(const ltc_asn1_list *root, unsigned long *outlen, unsigned long *payload… in der_length_custom_type()
26 const ltc_asn1_list *list; in der_length_custom_type()
A Dder_decode_custom_type.c21 ltc_asn1_list *root) in der_decode_custom_type()
43 ltc_asn1_list *root, in der_decode_custom_type_ex()
44 ltc_asn1_list *list, unsigned long outlen, in der_decode_custom_type_ex()
49 ltc_asn1_list ident; in der_decode_custom_type_ex()
A Dder_encode_custom_type.c24 int der_encode_custom_type(const ltc_asn1_list *root, in der_encode_custom_type()
29 const ltc_asn1_list *list; in der_encode_custom_type()

Completed in 19 milliseconds

12