/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/chacha/ |
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()
|
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()
|
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-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/ |
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()
|
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()
|
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-3.20.0/lib/libmbedtls/core/ |
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-3.20.0/core/drivers/crypto/crypto_api/acipher/ |
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-3.20.0/core/lib/libtomcrypt/src/pk/pkcs1/ |
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-3.20.0/core/drivers/crypto/caam/utils/ |
A D | utils_delay.c | 14 uint32_t counter = time * 500; in caam_udelay() local 17 while (counter--) { in caam_udelay()
|
/optee_os-3.20.0/core/drivers/crypto/se050/core/ |
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-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | chacha20.h | 143 uint32_t counter ); 209 uint32_t counter,
|
A D | ctr_drbg.h | 175 unsigned char counter[16]; /*!< The counter (V). */ member
|
/optee_os-3.20.0/core/crypto/ |
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-3.20.0/core/drivers/imx/dcp/ |
A D | dcp_utils.c | 58 uint32_t counter = time * 500; in dcp_udelay() local 61 while (counter--) { in dcp_udelay()
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | pkcs5.c | 232 unsigned char counter[4]; in mbedtls_pkcs5_pbkdf2_hmac() local 234 memset( counter, 0, 4 ); in mbedtls_pkcs5_pbkdf2_hmac() 235 counter[3] = 1; in mbedtls_pkcs5_pbkdf2_hmac() 251 if( ( ret = mbedtls_md_hmac_update( ctx, counter, 4 ) ) != 0 ) in mbedtls_pkcs5_pbkdf2_hmac() 288 if( ++counter[i - 1] != 0 ) in mbedtls_pkcs5_pbkdf2_hmac()
|
A D | chacha20.c | 219 uint32_t counter ) in mbedtls_chacha20_starts() argument 225 ctx->state[12] = counter; in mbedtls_chacha20_starts() 307 uint32_t counter, in mbedtls_chacha20_crypt() argument 326 ret = mbedtls_chacha20_starts( &ctx, nonce, counter ); in mbedtls_chacha20_crypt()
|
A D | ctr_drbg.c | 269 if( ++ctx->counter[i - 1] != 0 ) in ctr_drbg_update_internal() 276 ctx->counter, p ) ) != 0 ) in ctr_drbg_update_internal() 295 memcpy( ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, in ctr_drbg_update_internal() 558 if( ++ctx->counter[i - 1] != 0 ) in mbedtls_ctr_drbg_random_with_add() 565 ctx->counter, tmp ) ) != 0 ) in mbedtls_ctr_drbg_random_with_add()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
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-3.20.0/core/tee/ |
A D | fs_htree.c | 352 idx = get_idx_from_counter(head[0].counter, head[1].counter); in init_head_from_data() 453 aad_len += TEE_FS_HTREE_HASH_SIZE + sizeof(ht->head.counter); in authenc_init() 479 (void *)&ht->head.counter, in authenc_init() 480 sizeof(ht->head.counter)); in authenc_init() 629 const struct tee_fs_htree_image dummy_head = { .counter = 0 }; in tee_fs_htree_open() 728 vers = !(targ->ht->head.counter & 1); in htree_sync_node_to_storage() 747 ht->head.counter++; in update_root() 783 res = rpc_write_head(ht, ht->head.counter & 1, &ht->head); in tee_fs_htree_sync_to_storage()
|
/optee_os-3.20.0/core/drivers/crypto/caam/acipher/ |
A D | caam_dh.c | 228 int counter = 0; in do_gen_keypair() local 318 for (counter = 0; counter < 10; counter++) { in do_gen_keypair()
|
A D | caam_prime_dsa.c | 538 size_t counter = 0; in run_prime_p() local 543 for (counter = 0; counter < 4 * prime->p->length * 8; counter++) { in run_prime_p() 547 DSA_TRACE("Prime P try: counter=%zu", counter); in run_prime_p()
|
/optee_os-3.20.0/core/include/tee/ |
A D | fs_htree.h | 57 uint32_t counter; member
|
/optee_os-3.20.0/core/arch/arm/dts/ |
A D | stm32mp151.dtsi | 152 counter { 153 compatible = "st,stm32-timer-counter"; 186 counter { 187 compatible = "st,stm32-timer-counter"; 218 counter { 219 compatible = "st,stm32-timer-counter"; 252 counter { 383 counter { 651 counter { 687 counter { [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_cipher.h | 1019 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter); 1020 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter); 1026 const unsigned char *iv, unsigned long ivlen, ulong64 counter, 1042 … salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter); 1048 const unsigned char *iv, unsigned long ivlen, ulong64 counter,
|