Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 25 of 39) sorted by relevance

12

/optee_os/lib/libmbedtls/core/
A Daes_ctr.c25 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/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_test.c39 int counter; in salsa20_test()
45 counter = 0; in salsa20_test()
48 …if ((err = salsa20_ivctr64(&st, n, sizeof(n), counter)) != CRYPT_OK) return er… in salsa20_test()
56 counter = 0; in salsa20_test()
59 if ((err = salsa20_ivctr64(&st, n, sizeof(n), counter)) != CRYPT_OK) return err; in salsa20_test()
64 if ((err = salsa20_memory(k, sizeof(k), rounds, n, sizeof(n), counter, in salsa20_test()
A Dsalsa20_ivctr64.c29 …t salsa20_ivctr64(salsa20_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in salsa20_ivctr64() argument
38 st->input[8] = (ulong32)(counter & 0xFFFFFFFF); in salsa20_ivctr64()
39 st->input[9] = (ulong32)(counter >> 32); in salsa20_ivctr64()
A Dsalsa20_memory.c28 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in salsa20_memory() argument
35 if ((err = salsa20_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in salsa20_memory()
/optee_os/core/lib/libtomcrypt/src/stream/chacha/
A Dchacha_memory.c28 const unsigned char *iv, unsigned long ivlen, ulong64 counter, in chacha_memory() argument
34 LTC_ARGCHK(ivlen <= 8 || counter < 4294967296); /* 2**32 */ in chacha_memory()
38 if ((err = chacha_ivctr32(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory()
40 if ((err = chacha_ivctr64(&st, iv, ivlen, counter)) != CRYPT_OK) goto WIPE_KEY; in chacha_memory()
A Dchacha_ivctr64.c28 int chacha_ivctr64(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong64 counter) in chacha_ivctr64() argument
35 st->input[12] = (ulong32)(counter & 0xFFFFFFFF); in chacha_ivctr64()
36 st->input[13] = (ulong32)(counter >> 32); in chacha_ivctr64()
A Dchacha_ivctr32.c28 int chacha_ivctr32(chacha_state *st, const unsigned char *iv, unsigned long ivlen, ulong32 counter) in chacha_ivctr32() argument
35 st->input[12] = counter; in chacha_ivctr32()
/optee_os/core/drivers/crypto/crypto_api/acipher/
A Drsamgf.c20 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/
A Dpkcs_1_mgf1.c33 ulong32 counter; in pkcs_1_mgf1() local
63 counter = 0; in pkcs_1_mgf1()
67 STORE32H(counter, buf); in pkcs_1_mgf1()
68 ++counter; in pkcs_1_mgf1()
/optee_os/core/drivers/crypto/se050/core/
A Dctr.c21 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/crypto/
A Drng_fortuna.c49 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/core/drivers/crypto/caam/utils/
A Dutils_delay.c14 uint32_t counter = time * 500; in caam_udelay() local
17 while (counter--) { in caam_udelay()
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dchacha20.h140 uint32_t counter );
206 uint32_t counter,
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dchacha20.h140 uint32_t counter );
206 uint32_t counter,
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dchacha20.h140 uint32_t counter );
206 uint32_t counter,
/optee_os/out/arm/export-ta_arm64/host_include/mbedtls/
A Dchacha20.h140 uint32_t counter );
206 uint32_t counter,
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dchacha20.h140 uint32_t counter );
206 uint32_t counter,
/optee_os/lib/libmbedtls/mbedtls/library/
A Dpkcs5.c232 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 Dchacha20.c229 uint32_t counter ) in mbedtls_chacha20_starts() argument
235 ctx->state[12] = counter; in mbedtls_chacha20_starts()
317 uint32_t counter, in mbedtls_chacha20_crypt() argument
336 ret = mbedtls_chacha20_starts( &ctx, nonce, counter ); in mbedtls_chacha20_crypt()
A Dctr_drbg.c272 if( ++ctx->counter[i - 1] != 0 ) in ctr_drbg_update_internal()
279 ctx->counter, p ) ) != 0 ) in ctr_drbg_update_internal()
298 memcpy( ctx->counter, tmp + MBEDTLS_CTR_DRBG_KEYSIZE, in ctr_drbg_update_internal()
561 if( ++ctx->counter[i - 1] != 0 ) in mbedtls_ctr_drbg_random_with_add()
568 ctx->counter, tmp ) ) != 0 ) in mbedtls_ctr_drbg_random_with_add()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c32 unsigned long L, N, n, outbytes, seedbytes, counter, j, i; in _dsa_make_params() local
145 for(counter=0; counter < 4*L && !found_p; counter++) { in _dsa_make_params()
/optee_os/core/drivers/imx/dcp/
A Ddcp_utils.c92 uint32_t counter = time * 500; in dcp_udelay() local
95 while (counter--) { in dcp_udelay()
/optee_os/core/tee/
A Dfs_htree.c352 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/core/drivers/crypto/caam/acipher/
A Dcaam_dh.c228 int counter = 0; in do_gen_keypair() local
318 for (counter = 0; counter < 10; counter++) { in do_gen_keypair()
/optee_os/core/arch/arm/dts/
A Dstm32mp151.dtsi144 counter {
145 compatible = "st,stm32-timer-counter";
178 counter {
179 compatible = "st,stm32-timer-counter";
210 counter {
211 compatible = "st,stm32-timer-counter";
244 counter {
373 counter {
605 counter {
641 counter {
[all …]

Completed in 37 milliseconds

12