| /optee_os/core/lib/libtomcrypt/src/stream/chacha/ |
| H A D | chacha_memory.c | 21 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in chacha_memory() argument 27 LTC_ARGCHK(ivlen <= 8 || counter < 4294967296); /* 2**32 */ in chacha_memory() 31 if ((err = chacha_ivctr32(&st, iv, ivlen, (ulong32)counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory() 33 if ((err = chacha_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory()
|
| H A D | chacha_ivctr64.c | 21 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in chacha_ivctr64() argument 28 st->input[12] = (ulong32)(counter & 0xFFFFFFFF); in chacha_ivctr64() 29 st->input[13] = (ulong32)(counter >> 32); in chacha_ivctr64()
|
| H A D | chacha_ivctr32.c | 21 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter) in chacha_ivctr32() argument 28 st->input[12] = counter; in chacha_ivctr32()
|
| /optee_os/core/lib/libtomcrypt/src/stream/salsa20/ |
| H A D | salsa20_test.c | 32 int counter; in salsa20_test() 38 counter = 0; in salsa20_test() 41 …if ((err = salsa20_ivctr64(&st, n, sizeof(n), counter)) != CRYPT_OK) return er… in salsa20_test() 49 counter = 0; in salsa20_test() 52 if ((err = salsa20_ivctr64(&st, n, sizeof(n), counter)) != CRYPT_OK) return err; in salsa20_test() 57 if ((err = salsa20_memory(k, sizeof(k), rounds, n, sizeof(n), counter, in salsa20_test()
|
| H A D | salsa20_ivctr64.c | 22 …t salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in salsa20_ivctr64() argument 31 st->input[8] = (ulong32)(counter & 0xFFFFFFFF); in salsa20_ivctr64() 32 st->input[9] = (ulong32)(counter >> 32); in salsa20_ivctr64()
|
| H A D | salsa20_memory.c | 21 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in salsa20_memory() argument 28 if ((err = salsa20_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in salsa20_memory()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | aes_ctr.c | 25 unsigned char counter[TEE_AES_BLOCK_SIZE]; member 47 if (iv_len != sizeof(c->counter)) in mbed_aes_ctr_init() 49 memcpy(c->counter, iv, sizeof(c->counter)); in mbed_aes_ctr_init() 67 if (mbedtls_aes_crypt_ctr(&c->aes_ctx, len, &c->nc_off, c->counter, in mbed_aes_ctr_update() 93 memcpy(dst->counter, src->counter, sizeof(dst->counter)); in mbed_aes_ctr_copy_state()
|
| /optee_os/core/drivers/crypto/crypto_api/acipher/ |
| H A D | rsamgf.c | 20 uint32_t counter = 0; in drvcrypt_rsa_mgf1() local 48 for (; counter < nbBlock; in drvcrypt_rsa_mgf1() 49 counter++, cur_mask += mgf_data->digest_size) { in drvcrypt_rsa_mgf1() 50 swapcount = TEE_U32_TO_BIG_ENDIAN(counter); in drvcrypt_rsa_mgf1() 74 swapcount = TEE_U32_TO_BIG_ENDIAN(counter); in drvcrypt_rsa_mgf1()
|
| /optee_os/core/lib/libtomcrypt/src/pk/pkcs1/ |
| H A D | pkcs_1_mgf1.c | 26 ulong32 counter; in pkcs_1_mgf1() local 56 counter = 0; in pkcs_1_mgf1() 60 STORE32H(counter, buf); in pkcs_1_mgf1() 61 ++counter; in pkcs_1_mgf1()
|
| /optee_os/core/drivers/crypto/se050/core/ |
| H A D | ctr.c | 21 unsigned char counter[TEE_AES_BLOCK_SIZE]; member 45 memcpy(c->counter, iv, sizeof(c->counter)); in se050_aes_ctr_init() 95 dst_len = sizeof(c->counter); in se050_aes_ctr_update() 98 c->counter, 16, in se050_aes_ctr_update() 104 if (++c->counter[i - 1] != 0) in se050_aes_ctr_update()
|
| /optee_os/core/drivers/crypto/caam/utils/ |
| H A D | utils_delay.c | 13 uint32_t counter = time * 500; in caam_udelay() local 16 while (counter--) { in caam_udelay()
|
| /optee_os/core/crypto/ |
| H A D | rng_fortuna.c | 49 uint64_t counter[2]; member 74 static void inc_counter(uint64_t counter[2]) in inc_counter() 76 counter[0]++; in inc_counter() 77 if (!counter[0]) in inc_counter() 78 counter[1]++; in inc_counter() 137 COMPILE_TIME_ASSERT(sizeof(state.counter) == BLOCK_SIZE); in crypto_rng_init() 167 inc_counter(state.counter); in crypto_rng_init() 323 (void *)state.counter, in generate_blocks() 332 inc_counter(state.counter); in generate_blocks() 471 inc_counter(state.counter); in maybe_reseed()
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | chacha20.h | 117 uint32_t counter); 183 uint32_t counter,
|
| /optee_os/core/tee/ |
| H A D | fs_htree.c | 353 idx = get_idx_from_counter(head[0].counter, head[1].counter); in init_head_from_data() 364 if (ht->head.counter < min_counter) in init_head_from_data() 457 aad_len += sizeof(ht->head.counter); in authenc_init() 498 (void *)&ht->head.counter, in authenc_init() 499 sizeof(ht->head.counter)); in authenc_init() 640 .counter = min_counter, in create_and_sync() 671 return head->counter == 0 && in ht_head_is_partially_done() 782 vers = !(targ->ht->head.counter & 1); in htree_sync_node_to_storage() 801 ht->head.counter++; in update_root() 812 uint8_t *hash, uint32_t *counter) in tee_fs_htree_sync_to_storage() argument [all …]
|
| /optee_os/core/drivers/imx/dcp/ |
| H A D | dcp_utils.c | 58 uint32_t counter = time * 500; in dcp_udelay() local 61 while (counter--) { in dcp_udelay()
|
| /optee_os/core/include/tee/ |
| H A D | fs_dirfile.h | 47 uint32_t *counter); 78 uint8_t *hash, uint32_t *counter);
|
| H A D | fs_htree.h | 57 uint32_t counter; member 145 uint8_t *hash, uint32_t *counter);
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | ctr_drbg.c | 350 mbedtls_ctr_increment_counter(ctx->counter); in ctr_drbg_update_internal() 356 status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter), in ctr_drbg_update_internal() 364 ctx->counter, p)) != 0) { in ctr_drbg_update_internal() 391 memcpy(ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, in ctr_drbg_update_internal() 653 mbedtls_ctr_increment_counter(ctx->counter); in mbedtls_ctr_drbg_random_with_add() 662 status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter), in mbedtls_ctr_drbg_random_with_add() 670 ctx->counter, locals.tmp)) != 0) { in mbedtls_ctr_drbg_random_with_add()
|
| H A D | pkcs5.c | 281 unsigned char counter[4]; in pkcs5_pbkdf2_hmac() local 283 memset(counter, 0, 4); in pkcs5_pbkdf2_hmac() 284 counter[3] = 1; in pkcs5_pbkdf2_hmac() 302 if ((ret = mbedtls_md_hmac_update(ctx, counter, 4)) != 0) { in pkcs5_pbkdf2_hmac() 343 if (++counter[i - 1] != 0) { in pkcs5_pbkdf2_hmac()
|
| H A D | chacha20.c | 183 uint32_t counter) in mbedtls_chacha20_starts() argument 186 ctx->state[12] = counter; in mbedtls_chacha20_starts() 247 uint32_t counter, in mbedtls_chacha20_crypt() argument 262 ret = mbedtls_chacha20_starts(&ctx, nonce, counter); in mbedtls_chacha20_crypt()
|
| /optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
| H A D | dsa_generate_pqg.c | 25 unsigned long L, N, n, outbytes, seedbytes, counter, j, i; in s_dsa_make_params() local 138 for(counter=0; counter < 4*L && !found_p; counter++) { in s_dsa_make_params()
|
| /optee_os/core/drivers/crypto/hisilicon/ |
| H A D | sec_main.h | 135 uint32_t counter; member 319 uint32_t counter; member
|
| /optee_os/core/drivers/counter/ |
| H A D | stm32_stgen.c | 58 static void set_counter_value(uint64_t counter) in set_counter_value() argument 60 io_write64(stgen_d.base + STGENC_CNTCVL, counter); in set_counter_value()
|
| /optee_os/core/drivers/crypto/caam/acipher/ |
| H A D | caam_dh.c | 228 int counter = 0; in do_gen_keypair() local 337 for (counter = 0; counter < 10; counter++) { in do_gen_keypair()
|
| /optee_os/core/arch/arm/dts/ |
| H A D | stm32mp131.dtsi | 63 counter = <&lptimer3 1 1 0 0>; 664 counter { 665 compatible = "st,stm32-timer-counter"; 703 counter { 704 compatible = "st,stm32-timer-counter"; 754 counter { 755 compatible = "st,stm32-lptimer-counter";
|