Home
last modified time | relevance | path

Searched refs:XCALLOC (Results 1 – 22 of 22) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_decode_sequence_flexi.c23 *l = XCALLOC(1, sizeof(ltc_asn1_list)); in _new_element()
28 (*l)->next = XCALLOC(1, sizeof(ltc_asn1_list)); in _new_element()
139 l->data = XCALLOC(1, sizeof(int)); in der_decode_sequence_flexi()
182 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
205 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
277 if ((l->data = XCALLOC(sizeof(wchar_t), l->size)) == NULL) { in der_decode_sequence_flexi()
300 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
323 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
346 if ((l->data = XCALLOC(1, l->size)) == NULL) { in der_decode_sequence_flexi()
369 if ((l->data = XCALLOC(1, sizeof(ltc_utctime))) == NULL) { in der_decode_sequence_flexi()
[all …]
A Dder_encode_sequence_multi.c90 list = XCALLOC(sizeof(*list), x); in der_encode_sequence_multi()
A Dder_decode_sequence_multi.c87 list = XCALLOC(sizeof(*list), x); in _der_decode_sequence_va()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/set/
A Dder_encode_setof.c77 buf = XCALLOC(1, *outlen); in der_encode_setof()
89 edges = XCALLOC(inlen, sizeof(*edges)); in der_encode_setof()
A Dder_encode_set.c57 copy = XCALLOC(inlen, sizeof(*copy)); in der_encode_set()
/optee_os/core/lib/libtomcrypt/src/mac/xcbc/
A Dxcbc_memory.c47 xcbc = XCALLOC(1, sizeof(*xcbc)); in xcbc_memory()
A Dxcbc_init.c65 skey = XCALLOC(1, sizeof(*skey)); in xcbc_init()
/optee_os/core/lib/libtomcrypt/src/mac/f9/
A Df9_memory.c47 f9 = XCALLOC(1, sizeof(*f9)); in f9_memory()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_mul2add.c54 tA = XCALLOC(1, ECC_BUF_SIZE); in ltc_ecc_mul2add()
58 tB = XCALLOC(1, ECC_BUF_SIZE); in ltc_ecc_mul2add()
A Dltc_ecc_points.c27 p = XCALLOC(1, sizeof(*p)); in ltc_ecc_new_point()
/optee_os/core/lib/libtomcrypt/src/math/
A Drand_prime.c47 buf = XCALLOC(1, len); in rand_prime()
A Drand_bn.c32 if ((buf = XCALLOC(1, bytes)) == NULL) return CRYPT_MEM; in rand_bn_bits()
A Dltm_desc.c49 *a = XCALLOC(1, sizeof(mp_int)); in init()
378 *b = XCALLOC(1, sizeof(mp_digit)); in montgomery_setup()
A Dtfm_desc.c47 *a = XCALLOC(1, sizeof(fp_int)); in init()
373 *b = XCALLOC(1, sizeof(fp_digit)); in montgomery_setup()
A Dgmp_desc.c23 *a = XCALLOC(1, sizeof(__mpz_struct)); in init()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_subject_public_key_info.c73 tmpbuf = XCALLOC(1, inlen); in x509_decode_subject_public_key_info()
A Dx509_decode_public_key_from_certificate.c53 tmpbuf = XCALLOC(1, tmpbuf_len); in x509_decode_public_key_from_certificate()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_custom.h21 #ifndef XCALLOC
22 #define XCALLOC calloc macro
A Dtomcrypt_cfg.h36 LTC_EXPORT void * LTC_CALL XCALLOC(size_t n, size_t s);
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_import.c45 tmpbuf = XCALLOC(1, tmpbuf_len); in rsa_import()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_import.c100 tmpbuf = XCALLOC(1, tmpbuf_len); in dsa_import()
/optee_os/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c1438 cache_entry = XCALLOC(FP_ENTRIES*(2*(1U<<FP_LUT)+4)+3, sizeof(ltc_asn1_list)); in ltc_ecc_fp_save_state()
1530 if ((asn1_list = XCALLOC(3+num_entries*(4+2*(1<<FP_LUT))+1, sizeof(ltc_asn1_list))) == NULL) { in ltc_ecc_fp_restore_state()
1549 ecc_point *p = XCALLOC(1, sizeof(*p)); in ltc_ecc_fp_restore_state()

Completed in 56 milliseconds