Home
last modified time | relevance | path

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

12

/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/set/
H 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/core/lib/libtomcrypt/src/pk/ecc/
H 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()
H 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/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_private.h86 ltc_asn1_list *enc_data;
87 ltc_asn1_list *salt;
88 ltc_asn1_list *iv;
277 int pbes1_extract(const ltc_asn1_list *s, pbes_arg *res);
278 int pbes2_extract(const ltc_asn1_list *s, pbes_arg *res);
423 ltc_asn1_list *root,
424 ltc_asn1_list *list, unsigned long outlen, unsigned int flags);
426 int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsigned long *outlen);
427 int der_decode_asn1_identifier(const unsigned char *in, unsigned long *inlen, ltc_asn1_list *id);
428 int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen);
[all …]
H A Dtomcrypt_pk.h551 } ltc_asn1_list; typedef
556 ltc_asn1_list *LTC_TMPVAR(SA_list) = (list); \
570 ltc_asn1_list *LTC_TMPVAR(SAI_list) = (list); \
602 int der_encode_sequence_ex(const ltc_asn1_list *list, unsigned long inlen,
629 ltc_asn1_list *list, unsigned long outlen, unsigned int flags);
634 int der_length_sequence(const ltc_asn1_list *list, unsigned long inlen,
639 int der_encode_custom_type(const ltc_asn1_list *root,
643 ltc_asn1_list *root);
645 int der_length_custom_type(const ltc_asn1_list *root,
652 int der_encode_set(const ltc_asn1_list *list, unsigned long inlen,
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
H 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()
H 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()
H 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/core/lib/libtomcrypt/src/pk/asn1/pkcs8/
H 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/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
H 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()
H 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()
H A Dder_decode_sequence_ex.c23 ltc_asn1_list *list, unsigned long outlen, unsigned int flags) in der_decode_sequence_ex()
H A Dder_sequence_shrink.c17 void der_sequence_shrink(ltc_asn1_list *in) in der_sequence_shrink()
H 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/core/lib/libtomcrypt/src/misc/pbes/
H 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()
H 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/core/lib/libtomcrypt/src/pk/ec25519/
H 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/core/lib/libtomcrypt/src/pk/rsa/
H 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/core/lib/libtomcrypt/src/pk/asn1/der/general/
H A Dder_length_asn1_identifier.c18 int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen) in der_length_asn1_identifier()
H 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()
H 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/core/lib/libtomcrypt/src/pk/asn1/oid/
H 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/core/lib/libtomcrypt/src/pk/asn1/der/custom_type/
H 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()
H 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()
H 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()

12