Home
last modified time | relevance | path

Searched refs:MIN (Results 1 – 25 of 70) sorted by relevance

123

/optee_os-3.20.0/core/drivers/crypto/crypto_api/math/
A Dmodulus.c35 min = MIN(data->a.length, data->b.length); in drvcrypt_xor_mod_n()
36 min = MIN(min, data->n.length); in drvcrypt_xor_mod_n()
/optee_os-3.20.0/core/drivers/
A Dversal_sha3_384.c29 len = MIN(src_len, SMALL_PAGE_SIZE); in input_plaintext()
58 memcpy(dst, p.buf, MIN(dst_len, (size_t)TEE_SHA384_HASH_SIZE)); in get_ciphertext()
A Dbcm_hwrng.c63 num_words = MIN(available_words, words_to_read); in bcm_hwrng_read_rng()
A Dsmccc_trng.c103 size_t count = MIN(byte_count, *rem); in read_bytes()
145 size_t burst = MIN(rem, max_burst); in smccc_trng_read()
A Dstm32_rng.c102 req_size = MIN(RNG_FIFO_BYTE_DEPTH, *size); in read_available()
108 size_t sz = MIN(len, sizeof(uint32_t)); in read_available()
A Datmel_trng.c58 len_to_copy = MIN(len, sizeof(uint32_t)); in hw_get_random_bytes()
A Dxiphera_trng.c85 len_to_copy = MIN(len, sizeof(uint32_t)); in hw_get_random_bytes()
/optee_os-3.20.0/core/drivers/crypto/caam/utils/
A Dutils_sgt.c41 op_size = MIN(rem_length, insgt->buf[idx].length); in caam_sgt_cache_op()
89 rlength -= MIN(rlength, from->buf[idx].length - off); in caam_sgt_derive()
92 rlength -= MIN(rlength, from->buf[idx].length); in caam_sgt_derive()
A Dutils_mem.c221 cpy_size = MIN(cpy_size, src->length - offset); in caam_cpy_block_src()
289 MIN(SMALL_PAGE_SIZE - (va & SMALL_PAGE_MASK), len); in caam_mem_get_pa_area()
345 cpy_size = MIN(dst->length, (src->length - offset)); in caam_mem_cpy_ltrim_buf()
/optee_os-3.20.0/core/kernel/
A Ddelay.c52 cycles_to_wait = MIN(cycles, UINT32_MAX); in udelay()
A Dembedded_ts.c156 strm->avail_out = MIN(len, 1024U); in read_compressed()
186 strm->avail_out = MIN(len - total, 1024U); in read_compressed()
/optee_os-3.20.0/core/crypto/
A Dcbc-mac.c83 nblocks = MIN(len / mc->block_len, in crypto_cbc_mac_update()
89 nblocks = MIN(len / mc->block_len, in crypto_cbc_mac_update()
149 memcpy(digest, mc->digest, MIN(digest_len, mc->block_len)); in crypto_cbc_mac_final()
A Drng_fortuna.c178 uint8_t dl = MIN(RING_BUF_DATA_SIZE, dlen); in push_ring_buffer()
213 dlen = MIN(ring_buffer.elem[ring_buffer.end].dlen, RING_BUF_DATA_SIZE); in pop_ring_buffer()
226 size_t dl = MIN(MAX_EVENT_DATA_LEN, dlen); in add_event()
523 n = MIN(blen - offs, SIZE_1M); in crypto_rng_read()
/optee_os-3.20.0/lib/libutils/ext/arch/arm/
A Dmemtag.c98 s = MIN(dcsz - (va & mask), size); in set_tags_dc_helper()
149 s = MIN(dcsz - (va & mask), size); in clear_mem_dc()
/optee_os-3.20.0/core/pta/bcm/
A Delog.c165 sz = MIN(params[0].memref.size, DEFAULT_ELOG_BUFFER_SIZE); in pta_elog_nitro_crash_dump()
201 sz = MIN(params[0].memref.size, DEFAULT_ELOG_BUFFER_SIZE); in pta_elog_dump()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/eax/
A Deax_decrypt_verify_memory.c53 taglen = MIN(taglen, MAXBLOCKSIZE); in eax_decrypt_verify_memory()
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ocb3/
A Docb3_decrypt_verify_memory.c49 taglen = MIN(taglen, MAXBLOCKSIZE); in ocb3_decrypt_verify_memory()
/optee_os-3.20.0/core/drivers/clk/sam/
A Dat91_clk.h41 #define CLK_RANGE(MIN, MAX) {.min = MIN, .max = MAX,} argument
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/omac/
A Domac_process.c69 n = MIN(inlen, (unsigned long)(omac->blklen - omac->buflen)); in omac_process()
/optee_os-3.20.0/lib/libutils/ext/include/
A Dutil.h25 #define MIN(a, b) \ macro
31 #define MIN(a, b) (((a) < (b)) ? (a) : (b)) macro
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/
A Ddh_make_key.c84 key_size = MIN(key_size_p, key_size_q); in dh_make_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/pmac/
A Dpmac_process.c74 n = MIN(inlen, (unsigned long)(pmac->block_len - pmac->buflen)); in pmac_process()
/optee_os-3.20.0/core/drivers/crypto/stm32/
A Dauthenc.c250 size_t len = MIN(dupdate->src.length, dupdate->dst.length); in stm32_ae_update_payload()
275 size_t len = MIN(dfinal->src.length, dfinal->dst.length); in stm32_ae_enc_final()
289 size_t len = MIN(dfinal->src.length, dfinal->dst.length); in stm32_ae_dec_final()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_decrypt_key.c89 y = MIN(y, MAXBLOCKSIZE); in dsa_decrypt_key()
/optee_os-3.20.0/core/lib/libtomcrypt/src/stream/salsa20/
A Dsalsa20_crypt.c62 j = MIN(st->ksleft, inlen); in salsa20_crypt()

Completed in 22 milliseconds

123