Home
last modified time | relevance | path

Searched refs:total (Results 1 – 22 of 22) sorted by relevance

/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/
H A DprimitiveTypes.h63 #define indexWord( total, n ) (n) argument
64 #define indexWordHi( total ) ((total) - 1) argument
65 #define indexWordLo( total ) 0 argument
66 #define indexMultiword( total, m, n ) (n) argument
67 #define indexMultiwordHi( total, n ) ((total) - (n)) argument
68 #define indexMultiwordLo( total, n ) 0 argument
69 #define indexMultiwordHiBut( total, n ) (n) argument
70 #define indexMultiwordLoBut( total, n ) 0 argument
74 #define indexWord( total, n ) ((total) - 1 - (n)) argument
75 #define indexWordHi( total ) 0 argument
[all …]
/optee_os/core/drivers/crypto/aspeed/
H A Dhace_ast2600.c49 uint64_t total[2]; member
158 hctx->total[0] = 0; in ast2600_hace_init()
159 hctx->total[1] = 0; in ast2600_hace_init()
182 left = hctx->total[0] & (blk_size - 1); in ast2600_hace_update()
185 hctx->total[0] += len; in ast2600_hace_update()
186 if (hctx->total[0] < len) in ast2600_hace_update()
187 hctx->total[1]++; in ast2600_hace_update()
234 dbits[0] = (hctx->total[0] << 3); in ast2600_hace_final()
237 dbits[1] = (hctx->total[0] >> 61) | (hctx->total[1] << 3); in ast2600_hace_final()
240 last = hctx->total[0] & (hctx->blk_size - 1); in ast2600_hace_final()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dconstant_time.c151 void mbedtls_ct_memmove_left(void *start, size_t total, size_t offset) in mbedtls_ct_memmove_left() argument
154 for (size_t i = 0; i < total; i++) { in mbedtls_ct_memmove_left()
155 mbedtls_ct_condition_t no_op = mbedtls_ct_uint_gt(total - offset, i); in mbedtls_ct_memmove_left()
159 for (size_t n = 0; n < total - 1; n++) { in mbedtls_ct_memmove_left()
164 buf[total-1] = mbedtls_ct_uint_if_else_0(no_op, buf[total-1]); in mbedtls_ct_memmove_left()
H A Dmd5.c52 ctx->total[0] = 0; in mbedtls_md5_starts()
53 ctx->total[1] = 0; in mbedtls_md5_starts()
215 left = ctx->total[0] & 0x3F; in mbedtls_md5_update()
218 ctx->total[0] += (uint32_t) ilen; in mbedtls_md5_update()
219 ctx->total[0] &= 0xFFFFFFFF; in mbedtls_md5_update()
221 if (ctx->total[0] < (uint32_t) ilen) { in mbedtls_md5_update()
222 ctx->total[1]++; in mbedtls_md5_update()
265 used = ctx->total[0] & 0x3F; in mbedtls_md5_finish()
286 high = (ctx->total[0] >> 29) in mbedtls_md5_finish()
287 | (ctx->total[1] << 3); in mbedtls_md5_finish()
[all …]
H A Dsha1.c52 ctx->total[0] = 0; in mbedtls_sha1_starts()
53 ctx->total[1] = 0; in mbedtls_sha1_starts()
250 left = ctx->total[0] & 0x3F; in mbedtls_sha1_update()
253 ctx->total[0] += (uint32_t) ilen; in mbedtls_sha1_update()
254 ctx->total[0] &= 0xFFFFFFFF; in mbedtls_sha1_update()
256 if (ctx->total[0] < (uint32_t) ilen) { in mbedtls_sha1_update()
257 ctx->total[1]++; in mbedtls_sha1_update()
301 used = ctx->total[0] & 0x3F; in mbedtls_sha1_finish()
322 high = (ctx->total[0] >> 29) in mbedtls_sha1_finish()
323 | (ctx->total[1] << 3); in mbedtls_sha1_finish()
[all …]
H A Dripemd160.c53 ctx->total[0] = 0; in mbedtls_ripemd160_starts()
54 ctx->total[1] = 0; in mbedtls_ripemd160_starts()
278 left = ctx->total[0] & 0x3F; in mbedtls_ripemd160_update()
281 ctx->total[0] += (uint32_t) ilen; in mbedtls_ripemd160_update()
282 ctx->total[0] &= 0xFFFFFFFF; in mbedtls_ripemd160_update()
284 if (ctx->total[0] < (uint32_t) ilen) { in mbedtls_ripemd160_update()
285 ctx->total[1]++; in mbedtls_ripemd160_update()
335 high = (ctx->total[0] >> 29) in mbedtls_ripemd160_finish()
336 | (ctx->total[1] << 3); in mbedtls_ripemd160_finish()
337 low = (ctx->total[0] << 3); in mbedtls_ripemd160_finish()
[all …]
H A Dsha256.c264 ctx->total[0] = 0; in mbedtls_sha256_starts()
265 ctx->total[1] = 0; in mbedtls_sha256_starts()
657 left = ctx->total[0] & 0x3F; in mbedtls_sha256_update()
660 ctx->total[0] += (uint32_t) ilen; in mbedtls_sha256_update()
661 ctx->total[0] &= 0xFFFFFFFF; in mbedtls_sha256_update()
663 if (ctx->total[0] < (uint32_t) ilen) { in mbedtls_sha256_update()
664 ctx->total[1]++; in mbedtls_sha256_update()
711 used = ctx->total[0] & 0x3F; in mbedtls_sha256_finish()
732 high = (ctx->total[0] >> 29) in mbedtls_sha256_finish()
733 | (ctx->total[1] << 3); in mbedtls_sha256_finish()
[all …]
H A Dsha512.c260 ctx->total[0] = 0; in mbedtls_sha512_starts()
261 ctx->total[1] = 0; in mbedtls_sha512_starts()
772 left = (unsigned int) (ctx->total[0] & 0x7F); in mbedtls_sha512_update()
775 ctx->total[0] += (uint64_t) ilen; in mbedtls_sha512_update()
777 if (ctx->total[0] < (uint64_t) ilen) { in mbedtls_sha512_update()
778 ctx->total[1]++; in mbedtls_sha512_update()
825 used = ctx->total[0] & 0x7F; in mbedtls_sha512_finish()
846 high = (ctx->total[0] >> 61) in mbedtls_sha512_finish()
847 | (ctx->total[1] << 3); in mbedtls_sha512_finish()
848 low = (ctx->total[0] << 3); in mbedtls_sha512_finish()
H A Dconstant_time_internal.h466 size_t total,
/optee_os/core/kernel/
H A Dembedded_ts.c147 size_t total = 0; in read_compressed() local
180 memcpy((uint8_t *)data_core + total, bb, out); in read_compressed()
182 res = copy_to_user((uint8_t *)data_user + total, bb, in read_compressed()
187 total += out; in read_compressed()
193 strm->avail_out = MIN(len - total, bb_len); in read_compressed()
194 } while ((st == Z_OK || st == Z_BUF_ERROR) && (total != len)); in read_compressed()
/optee_os/core/crypto/
H A Dsm3.c40 ctx->total[0] = 0; in sm3_init()
41 ctx->total[1] = 0; in sm3_init()
196 left = ctx->total[0] & 0x3F; in sm3_update()
199 ctx->total[0] += ilen; in sm3_update()
201 if (ctx->total[0] < ilen) in sm3_update()
202 ctx->total[1]++; in sm3_update()
234 high = (ctx->total[0] >> 29) | (ctx->total[1] << 3); in sm3_final()
235 low = ctx->total[0] << 3; in sm3_final()
240 last = ctx->total[0] & 0x3F; in sm3_final()
H A Dsm3.h19 uint32_t total[2]; /* number of bytes processed */ member
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dmd5.h40 uint32_t MBEDTLS_PRIVATE(total)[2]; /*!< number of bytes processed */
H A Dripemd160.h31 uint32_t MBEDTLS_PRIVATE(total)[2]; /*!< number of bytes processed */
H A Dsha1.h46 uint32_t MBEDTLS_PRIVATE(total)[2]; /*!< The number of Bytes processed. */
H A Dsha512.h40 uint64_t MBEDTLS_PRIVATE(total)[2]; /*!< The number of Bytes processed. */
H A Dsha256.h42 uint32_t MBEDTLS_PRIVATE(total)[2]; /*!< The number of Bytes processed. */
/optee_os/core/lib/zlib/
H A Dinflate.h94 unsigned long total; /* protected copy of output count */ member
H A Dinflate.c127 strm->total_in = strm->total_out = state->total = 0;
1224 state->total += out;
1247 if ((state->wrap & 4) && hold != (state->total & 0xffffffff)) {
1290 state->total += out;
/optee_os/lib/libutils/isoc/
H A Dbget.doc71 number of separate buffer pools, there is no limit on the total storage
209 specifying the number of bytes (total buffer size, including header
251 pointed to by <curalloc>. The total free space (sum of all free blocks
320 the total free space in the buffer
322 buffer, and the total space
/optee_os/core/arch/arm/dts/
H A Dat91-sama5d2_xplained.dts310 active-semi,total-timeout = <3>;
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog2927 * Enforce that mbedtls_entropy_func() gathers a total of