Home
last modified time | relevance | path

Searched full:c (Results 1 – 25 of 2305) sorted by relevance

12345678910>>...93

/optee_os/lib/libmbedtls/
H A Dsub.mk7 SRCS_CRYPTO += aes.c
8 SRCS_CRYPTO += aesce.c
9 SRCS_CRYPTO += aesni.c
10 SRCS_CRYPTO += aria.c
11 SRCS_CRYPTO += asn1parse.c
12 SRCS_CRYPTO += asn1write.c
13 SRCS_CRYPTO += base64.c
14 SRCS_CRYPTO += bignum.c
15 SRCS_CRYPTO += bignum_core.c
16 SRCS_CRYPTO += bignum_mod_raw.c
[all …]
/optee_os/core/drivers/
H A Dsub.mk3 srcs-$(CFG_CDNS_UART) += cdns_uart.c
4 srcs-$(CFG_PL011) += pl011.c
5 srcs-$(CFG_TZC400) += tzc400.c
6 srcs-$(CFG_TZC380) += tzc380.c
7 srcs-$(CFG_GIC) += gic.c
8 srcs-$(CFG_CORE_HAFNIUM_INTC) += hfic.c
9 srcs-$(CFG_PL061) += pl061_gpio.c
10 srcs-$(CFG_PL022) += pl022_spi.c
11 srcs-$(CFG_SP805_WDT) += sp805_wdt.c
12 srcs-$(CFG_8250_UART) += serial8250_uart.c
[all …]
/optee_os/core/lib/libtomcrypt/
H A Dsub.mk18 srcs-y += tomcrypt.c
19 srcs-y += src/misc/burn_stack.c
20 srcs-y += src/misc/error_to_string.c
21 srcs-y += src/misc/mem_neq.c
22 srcs-y += src/misc/zeromem.c
23 srcs-y += src/misc/base64/base64_decode.c
24 srcs-y += src/misc/base64/base64_encode.c
25 srcs-y += src/misc/crypt/crypt.c
26 srcs-y += src/misc/crypt/crypt_cipher_descriptor.c
27 srcs-y += src/misc/crypt/crypt_cipher_is_valid.c
[all …]
H A Dxts.c3 * Copyright (c) 2014-2019, Linaro Limited
42 struct ltc_xts_ctx *c = to_xts_ctx(ctx); in ltc_xts_init() local
47 if (iv_len != sizeof(c->tweak)) in ltc_xts_init()
49 memcpy(c->tweak, iv, sizeof(c->tweak)); in ltc_xts_init()
51 memset(c->tweak, 0, sizeof(c->tweak)); in ltc_xts_init()
54 if ((int)iv_len != cipher_descriptor[c->cipher_idx]->block_length) in ltc_xts_init()
58 c->update = xts_encrypt; in ltc_xts_init()
60 c->update = xts_decrypt; in ltc_xts_init()
63 if (xts_start(c->cipher_idx, key1, key2, key1_len, 0, in ltc_xts_init()
64 &c->state) == CRYPT_OK) in ltc_xts_init()
[all …]
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
H A Dsub.mk10 srcs-y += f32_add.c
11 srcs-y += f32_div.c
12 srcs-y += f32_eq.c
13 srcs-y += f32_le.c
14 srcs-y += f32_lt.c
15 srcs-y += f32_mul.c
16 srcs-y += f32_sub.c
17 srcs-y += f32_to_f64.c
18 srcs-y += f32_to_i32_r_minMag.c
19 srcs-y += f32_to_i64_r_minMag.c
[all …]
/optee_os/core/kernel/
H A Dsub.mk1 srcs-$(CFG_CORE_SANITIZE_KADDRESS) += asan.c
2 cflags-remove-asan.c-y += $(cflags_kasan)
3 cflags-remove-asan.c-y += $(finstrument-functions)
4 srcs-$(CFG_TEE_CORE_DEBUG) += spin_lock_debug.c
5 srcs-y += assert.c
6 srcs-y += console.c
7 srcs-$(CFG_DT) += dt.c
8 srcs-$(CFG_DT) += dt_driver.c
9 srcs-y += boot.c
10 srcs-y += pm.c
[all …]
/optee_os/lib/libutils/isoc/
H A Dsub.mk3 srcs-y += bget_malloc.c
4 cflags-remove-bget_malloc.c-y += -Wold-style-definition -Wredundant-decls
5 cflags-bget_malloc.c-y += -Wno-sign-compare -Wno-cast-align
6 cflags-bget_malloc.c-y += $(call cc-option,-Wno-deprecated-non-prototype)
8 cflags-remove-bget_malloc.c-y += $(cflags_kasan)
10 srcs-y += isdigit.c
11 srcs-y += isxdigit.c
12 srcs-y += qsort.c
13 cflags-qsort.c-y += -Wno-inline
14 cflags-remove-qsort.c-y += -Wcast-align
[all …]
/optee_os/core/drivers/crypto/stm32/
H A Dstm32_hash.c3 * Copyright (c) 2021-2025, STMicroelectronics - All Rights Reserved
222 static void get_save_registers(struct stm32_hash_context *c, size_t *nb_regs, in get_save_registers() argument
226 switch (c->save_mode) { in get_save_registers()
230 if (c->mode == STM32_HMAC_MODE) { in get_save_registers()
239 if (c->mode == STM32_HMAC_MODE) { in get_save_registers()
248 if (c->mode == STM32_HMAC_MODE) { in get_save_registers()
259 static TEE_Result save_context(struct stm32_hash_context *c) in save_context() argument
267 vaddr_t base = c->dev->pdata.base; in save_context()
277 c->imr = io_read32(base + _HASH_IMR); in save_context()
278 c->str = io_read32(base + _HASH_STR); in save_context()
[all …]
H A Dhmac.c3 * Copyright (c) 2021-2025, STMicroelectronics - All Rights Reserved
43 struct stm32_hmac_ctx *c = to_stm32_hmac_ctx(ctx); in do_hmac_init() local
49 if (c->key) in do_hmac_init()
50 free(c->key); in do_hmac_init()
52 c->key = malloc(len); in do_hmac_init()
53 if (!c->key) { in do_hmac_init()
54 c->key_len = 0; in do_hmac_init()
57 memcpy(c->key, key, len); in do_hmac_init()
58 c->key_len = len; in do_hmac_init()
60 return stm32_hash_init(&c->hash, c->key, c->key_len); in do_hmac_init()
[all …]
/optee_os/core/drivers/clk/sam/
H A Dsub.mk3 srcs-y += at91_sckc.c at91_main.c at91_pmc.c
4 srcs-y += at91_utmi.c at91_master.c
5 srcs-y += at91_programmable.c at91_system.c at91_peripheral.c
6 srcs-y += at91_generated.c
7 srcs-y += at91_cpu_opp.c
9 srcs-$(CFG_SAMA5D2) += at91_pll.c at91_plldiv.c
10 srcs-$(CFG_SAMA5D2) += at91_h32mx.c at91_usb.c
11 srcs-$(CFG_SAMA5D2) += at91_i2s_mux.c at91_audio_pll.c
12 srcs-$(CFG_SAMA5D2) += sama5d2_clk.c
14 srcs-$(CFG_SAMA7G5) += clk-sam9x60-pll.c phy-sama7-utmi-clk.c sama7g5_clk.c
/optee_os/lib/libutils/isoc/newlib/
H A Dsub.mk5 srcs-y += abs.c
6 srcs-y += bcmp.c
7 srcs-y += memchr.c
8 srcs-y += memcmp.c
9 srcs-y += memcpy.c
11 cflags-memcpy.c-y += -O2
13 cflags-memcpy.c-y += $(call cc-option,-fno-tree-loop-distribute-patterns)
14 srcs-y += memmove.c
15 cflags-memmove.c-y += $(call cc-option,-fno-tree-loop-distribute-patterns)
16 srcs-y += memset.c
[all …]
/optee_os/ta/pkcs11/src/
H A Dsub.mk1 srcs-y += attributes.c
2 srcs-y += entry.c
3 srcs-y += handle.c
4 srcs-y += object.c
5 srcs-y += persistent_token.c
6 srcs-y += pkcs11_attributes.c
7 srcs-y += pkcs11_helpers.c
8 srcs-y += pkcs11_token.c
9 srcs-y += processing.c
10 srcs-y += processing_aes.c
[all …]
/optee_os/core/arch/arm/kernel/
H A Dsub.mk1 srcs-y += rpc_io_i2c.c
2 srcs-y += idle.c
4 srcs-$(CFG_SECURE_TIME_SOURCE_CNTPCT) += tee_time_arm_cntpct.c
6 srcs-$(CFG_ARM64_core) += generic_timer.c
8 srcs-$(CFG_ARM64_core) += timer_a64.c
17 srcs-$(CFG_PL310) += tee_l2cc_mutex.c
21 srcs-y += thread.c
23 srcs-y += arch_scall.c
28 srcs-y += thread_spmc.c
29 cppflags-thread_spmc.c-y += -DTEE_IMPL_GIT_SHA1=$(TEE_IMPL_GIT_SHA1)
[all …]
/optee_os/core/tee/
H A Dsub.mk20 srcs-y += entry_std.c
21 srcs-y += tee_cryp_utl.c
22 srcs-$(CFG_CRYPTO_HKDF) += tee_cryp_hkdf.c
23 srcs-$(CFG_CRYPTO_CONCAT_KDF) += tee_cryp_concat_kdf.c
25 srcs-$(CFG_CRYPTO_PBKDF2) += tee_cryp_pbkdf2.c
29 srcs-y += tee_obj.c
30 srcs-y += tee_svc.c
31 srcs-y += tee_svc_cryp.c
32 srcs-y += tee_svc_storage.c
33 cppflags-tee_svc.c-y += -DTEE_IMPL_VERSION=$(TEE_IMPL_VERSION)
[all …]
/optee_os/core/crypto/
H A Dsm4-xts.c3 * Copyright (c) 2022 Huawei Technologies Co., Ltd
39 struct sm4_xts_ctx *c = to_sm4_xts_ctx(ctx); in sm4_xts_init() local
41 if (key1_len != 16 || key2_len != 16 || iv_len != sizeof(c->iv)) in sm4_xts_init()
45 memcpy(c->iv, iv, sizeof(c->iv)); in sm4_xts_init()
48 sm4_setkey_enc(&c->state, key1); in sm4_xts_init()
50 sm4_setkey_dec(&c->state, key1); in sm4_xts_init()
52 sm4_setkey_enc(&c->state_ek, key2); in sm4_xts_init()
53 sm4_setkey_dec(&c->state_dk, key2); in sm4_xts_init()
62 struct sm4_xts_ctx *c = to_sm4_xts_ctx(ctx); in sm4_xts_update() local
64 sm4_crypt_xts(&c->state, &c->state_ek, &c->state_dk, in sm4_xts_update()
[all …]
H A Dsub.mk1 srcs-y += crypto.c
4 srcs-y += aes-gcm.c
6 srcs-y += aes-gcm-sw.c
8 srcs-y += aes-gcm-ghash-tbl.c
13 srcs-$(CFG_WITH_USER_TA) += signed_hdr.c
16 srcs-y += rng_fortuna.c
18 srcs-y += rng_hw.c
22 srcs-$(CFG_CRYPTO_CBC_MAC) += cbc-mac.c
25 srcs-$(CFG_CRYPTO_CTS) += aes-cts.c
28 srcs-y += sm2-kdf.c
[all …]
H A Dsm4-cbc.c3 * Copyright (c) 2019 Huawei Technologies Co., Ltd
38 struct sm4_cbc_ctx *c = to_sm4_cbc_ctx(ctx); in sm4_cbc_init() local
40 if (key1_len != 16 || iv_len != sizeof(c->iv)) in sm4_cbc_init()
44 sm4_setkey_enc(&c->state, key1); in sm4_cbc_init()
46 sm4_setkey_dec(&c->state, key1); in sm4_cbc_init()
48 memcpy(c->iv, iv, sizeof(c->iv)); in sm4_cbc_init()
57 struct sm4_cbc_ctx *c = to_sm4_cbc_ctx(ctx); in sm4_cbc_update() local
59 sm4_crypt_cbc(&c->state, len, c->iv, data, dst); in sm4_cbc_update()
66 struct sm4_cbc_ctx *c = to_sm4_cbc_ctx(ctx); in sm4_cbc_final() local
68 memzero_explicit(&c->state, sizeof(c->state)); in sm4_cbc_final()
[all …]
/optee_os/lib/libmbedtls/core/
H A Dsub.mk2 srcs-y += mbed_helpers.c
3 srcs-y += tomcrypt.c
6 CFG_CRYPTO_SHA512) += hash.c
9 srcs-y += aes.c
10 srcs-$(CFG_CRYPTO_ECB) += aes_ecb.c
11 srcs-$(CFG_CRYPTO_CBC) += aes_cbc.c
12 srcs-$(CFG_CRYPTO_CTR) += aes_ctr.c
15 srcs-$(CFG_CRYPTO_ECB) += des_ecb.c
16 srcs-$(CFG_CRYPTO_ECB) += des3_ecb.c
17 srcs-$(CFG_CRYPTO_CBC) += des_cbc.c
[all …]
H A Dcmac.c3 * Copyright (C) 2018, ARM Limited
4 * Copyright (C) 2019, Linaro Limited
5 * Copyright (C) 2021, SumUp Services GmbH
39 struct mbed_cmac_ctx *c = to_cmac_ctx(ctx); in mbed_cmac_init() local
42 cipher_info = mbedtls_cipher_info_from_values(c->cipher_id, in mbed_cmac_init()
48 if (mbedtls_cipher_setup_info(&c->cipher_ctx, cipher_info)) in mbed_cmac_init()
51 if (mbedtls_cipher_cmac_reset(&c->cipher_ctx)) in mbed_cmac_init()
54 if (mbedtls_cipher_cmac_starts(&c->cipher_ctx, key, len * 8)) in mbed_cmac_init()
63 struct mbed_cmac_ctx *c = to_cmac_ctx(ctx); in mbed_cmac_update() local
65 if (mbedtls_cipher_cmac_update(&c->cipher_ctx, data, len)) in mbed_cmac_update()
[all …]
/optee_os/core/drivers/crypto/se050/core/
H A Dctr.c3 * Copyright (C) Foundries Ltd. 2020 - All Rights Reserved
38 struct se050_aes_ctr_ctx *c = to_aes_ctr_ctx(ctx); in se050_aes_ctr_init() local
42 if (c->key_obj.keyId) in se050_aes_ctr_init()
45 memcpy(c->counter, iv, sizeof(c->counter)); in se050_aes_ctr_init()
47 st = sss_se05x_key_object_init(&c->key_obj, se050_kstore); in se050_aes_ctr_init()
55 st = sss_se05x_key_object_allocate_handle(&c->key_obj, oid, in se050_aes_ctr_init()
62 st = sss_se05x_key_store_set_key(se050_kstore, &c->key_obj, in se050_aes_ctr_init()
67 st = sss_se05x_symmetric_context_init(&c->aes_ctx, se050_session, in se050_aes_ctr_init()
68 &c->key_obj, in se050_aes_ctr_init()
74 st = sss_se05x_cipher_init(&c->aes_ctx, (uint8_t *)NULL, 0); in se050_aes_ctr_init()
[all …]
/optee_os/core/lib/libtomcrypt/src/hashes/
H A Dmd5.c7 @file md5.c
38 #define FF(a,b,c,d,M,s,t) \ argument
39 a = (a + F(b,c,d) + M + t); a = ROL(a, s) + b;
41 #define GG(a,b,c,d,M,s,t) \ argument
42 a = (a + G(b,c,d) + M + t); a = ROL(a, s) + b;
44 #define HH(a,b,c,d,M,s,t) \ argument
45 a = (a + H(b,c,d) + M + t); a = ROL(a, s) + b;
47 #define II(a,b,c,d,M,s,t) \ argument
48 a = (a + I(b,c,d) + M + t); a = ROL(a, s) + b;
77 #define FF(a,b,c,d,M,s,t) \ argument
[all …]
H A Dsha3_test.c17 hash_state c; in sha3_224_test()
37 sha3_224_init(&c); in sha3_224_test()
38 sha3_done(&c, hash); in sha3_224_test()
44 sha3_224_init(&c); in sha3_224_test()
45 sha3_process(&c, buf, sizeof(buf) / 2); in sha3_224_test()
46 sha3_process(&c, buf + sizeof(buf) / 2, sizeof(buf) / 2); in sha3_224_test()
47 sha3_done(&c, hash); in sha3_224_test()
54 sha3_224_init(&c); in sha3_224_test()
56 sha3_process(&c, &c1, 1); in sha3_224_test()
58 sha3_done(&c, hash); in sha3_224_test()
[all …]
/optee_os/lib/libutee/
H A Dsub.mk3 srcs-y += abort.c
4 srcs-y += assert.c
5 srcs-y += tee_uuid_from_str.c
6 srcs-y += trace_ext.c
9 srcs-y += tee_api.c
10 srcs-y += tee_api_arith_mpi.c
11 cppflags-tee_api_arith_mpi.c-y += -DMBEDTLS_ALLOW_PRIVATE_ACCESS
12 srcs-y += tee_api_objects.c
13 srcs-y += tee_api_operations.c
14 srcs-y += tee_api_panic.c
[all …]
/optee_os/core/arch/riscv/kernel/
H A Dsub.mk4 srcs-y += idle.c
5 srcs-$(CFG_RISCV_TIME_SOURCE_RDTIME) += tee_time_rdtime.c
6 srcs-$(CFG_RISCV_SBI) += sbi.c
7 srcs-$(CFG_RISCV_SBI_CONSOLE) += sbi_console.c
8 srcs-$(CFG_RISCV_SBI_MPXY) += sbi_mpxy.c
9 srcs-$(CFG_RISCV_SBI_MPXY_RPMI) += sbi_mpxy_rpmi.c
10 srcs-y += boot.c
12 srcs-y += abort.c
14 srcs-y += thread_arch.c
16 srcs-y += arch_scall.c
[all …]
/optee_os/lib/libutils/isoc/include/
H A Dctype.h3 * Copyright (c) 2018, Linaro Limited
8 int isalnum(int c);
9 int isalpha(int c);
10 int iscntrl(int c);
11 int isdigit(int c);
12 int isgraph(int c);
13 int islower(int c);
14 int isprint(int c);
15 int ispunct(int c);
16 int isspace(int c);
[all …]

12345678910>>...93