Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/
A Dkasumi.c95 u16 left, right; in FO() local
98 left = (u16)(in>>16); in FO()
103 left = FI( left, key->kasumi.KIi1[round_no] ); in FO()
104 left ^= right; in FO()
108 right ^= left; in FO()
111 left = FI( left, key->kasumi.KIi3[round_no] ); in FO()
112 left ^= right; in FO()
142 LOAD32H(left, pt); in kasumi_ecb_encrypt()
151 left ^= temp; in kasumi_ecb_encrypt()
169 LOAD32H(left, ct); in kasumi_ecb_decrypt()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_find_curve.c193 static int s_name_match(const char *left, const char *right) in s_name_match() argument
197 while ((*left != '\0') && (*right != '\0')) { in s_name_match()
198 while ((*left == ' ') || (*left == '-') || (*left == '_')) left++; in s_name_match()
200 if (*left == '\0' || *right == '\0') break; in s_name_match()
202 lc_l = *left; in s_name_match()
206 left++; in s_name_match()
210 if ((*left == '\0') && (*right == '\0')) return 1; in s_name_match()
/optee_os-3.20.0/core/lib/zlib/
A Dinftrees.c47 int left; /* number of prefix codes available */ local
132 left = 1;
134 left <<= 1;
135 left -= count[len];
136 if (left < 0) return -1; /* over-subscribed */
138 if (left > 0 && (type == CODES || max != 1))
269 left = (int)(1 << curr);
271 left -= count[curr + drop];
272 if (left <= 0) break;
274 left <<= 1;
A Dinflate.c481 left = strm->avail_out; \
655 out = left;
921 if (copy > left) copy = left;
926 left -= copy;
1170 copy = out - left;
1183 if (copy > left) copy = left;
1205 if (copy > left) copy = left;
1206 left -= copy;
1216 left--;
1222 out -= left;
[all …]
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dmd2.c104 ctx->left = 0; in mbedtls_md2_starts_ret()
176 if( ilen > 16 - ctx->left ) in mbedtls_md2_update_ret()
177 fill = 16 - ctx->left; in mbedtls_md2_update_ret()
181 memcpy( ctx->buffer + ctx->left, input, fill ); in mbedtls_md2_update_ret()
183 ctx->left += fill; in mbedtls_md2_update_ret()
187 if( ctx->left == 16 ) in mbedtls_md2_update_ret()
189 ctx->left = 0; in mbedtls_md2_update_ret()
217 x = (unsigned char)( 16 - ctx->left ); in mbedtls_md2_finish_ret()
219 for( i = ctx->left; i < 16; i++ ) in mbedtls_md2_finish_ret()
A Dhmac_drbg.c335 size_t left = out_len; in mbedtls_hmac_drbg_random_with_add() local
366 while( left != 0 ) in mbedtls_hmac_drbg_random_with_add()
368 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add()
380 left -= use_len; in mbedtls_hmac_drbg_random_with_add()
A Dsha512.c320 unsigned int left; in mbedtls_sha512_update_ret() local
328 left = (unsigned int) (ctx->total[0] & 0x7F); in mbedtls_sha512_update_ret()
329 fill = 128 - left; in mbedtls_sha512_update_ret()
336 if( left && ilen >= fill ) in mbedtls_sha512_update_ret()
338 memcpy( (void *) (ctx->buffer + left), input, fill ); in mbedtls_sha512_update_ret()
345 left = 0; in mbedtls_sha512_update_ret()
358 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_sha512_update_ret()
A Dmd4.c236 uint32_t left; in mbedtls_md4_update_ret() local
241 left = ctx->total[0] & 0x3F; in mbedtls_md4_update_ret()
242 fill = 64 - left; in mbedtls_md4_update_ret()
250 if( left && ilen >= fill ) in mbedtls_md4_update_ret()
252 memcpy( (void *) (ctx->buffer + left), in mbedtls_md4_update_ret()
260 left = 0; in mbedtls_md4_update_ret()
274 memcpy( (void *) (ctx->buffer + left), in mbedtls_md4_update_ret()
A Dsha256.c279 uint32_t left; in mbedtls_sha256_update_ret() local
287 left = ctx->total[0] & 0x3F; in mbedtls_sha256_update_ret()
288 fill = 64 - left; in mbedtls_sha256_update_ret()
296 if( left && ilen >= fill ) in mbedtls_sha256_update_ret()
298 memcpy( (void *) (ctx->buffer + left), input, fill ); in mbedtls_sha256_update_ret()
305 left = 0; in mbedtls_sha256_update_ret()
318 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_sha256_update_ret()
A Dmd5.c242 uint32_t left; in mbedtls_md5_update_ret() local
247 left = ctx->total[0] & 0x3F; in mbedtls_md5_update_ret()
248 fill = 64 - left; in mbedtls_md5_update_ret()
256 if( left && ilen >= fill ) in mbedtls_md5_update_ret()
258 memcpy( (void *) (ctx->buffer + left), input, fill ); in mbedtls_md5_update_ret()
264 left = 0; in mbedtls_md5_update_ret()
278 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_md5_update_ret()
A Dripemd160.c305 uint32_t left; in mbedtls_ripemd160_update_ret() local
310 left = ctx->total[0] & 0x3F; in mbedtls_ripemd160_update_ret()
311 fill = 64 - left; in mbedtls_ripemd160_update_ret()
319 if( left && ilen >= fill ) in mbedtls_ripemd160_update_ret()
321 memcpy( (void *) (ctx->buffer + left), input, fill ); in mbedtls_ripemd160_update_ret()
328 left = 0; in mbedtls_ripemd160_update_ret()
342 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_ripemd160_update_ret()
A Dsha1.c292 uint32_t left; in mbedtls_sha1_update_ret() local
300 left = ctx->total[0] & 0x3F; in mbedtls_sha1_update_ret()
301 fill = 64 - left; in mbedtls_sha1_update_ret()
309 if( left && ilen >= fill ) in mbedtls_sha1_update_ret()
311 memcpy( (void *) (ctx->buffer + left), input, fill ); in mbedtls_sha1_update_ret()
318 left = 0; in mbedtls_sha1_update_ret()
331 memcpy( (void *) (ctx->buffer + left), input, ilen ); in mbedtls_sha1_update_ret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/pkcs5/
A Dpkcs_5_2.c30 unsigned long stored, left, x, y; in pkcs_5_alg2() local
62 left = *outlen; in pkcs_5_alg2()
65 while (left != 0) { in pkcs_5_alg2()
100 for (y = 0; y < x && left != 0; ++y) { in pkcs_5_alg2()
102 --left; in pkcs_5_alg2()
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/bcrypt/
A Dbcrypt.c82 unsigned long left, itts, x, y, hashed_pass_len, step_size, steps, dest, used_rounds; in bcrypt_pbkdf_openbsd() local
128 left = *outlen; in bcrypt_pbkdf_openbsd()
130 while (left != 0) { in bcrypt_pbkdf_openbsd()
167 steps = MIN(steps, left); in bcrypt_pbkdf_openbsd()
174 left -= y; in bcrypt_pbkdf_openbsd()
/optee_os-3.20.0/lib/libutils/ext/
A Dtrace.c212 int left; in append() local
218 left = sizeof(sbuf->buf) - (sbuf->ptr - sbuf->buf); in append()
220 len = vsnprintk(sbuf->ptr, left, fmt, ap); in append()
226 if (len >= left) { in append()
230 sbuf->ptr += MIN(left, len); in append()
/optee_os-3.20.0/core/drivers/crypto/aspeed/
A Dhace_ast2600.c170 uint32_t left = 0; in ast2600_hace_update() local
182 left = hctx->total[0] & (blk_size - 1); in ast2600_hace_update()
183 fill = blk_size - left; in ast2600_hace_update()
189 if (left && len >= fill) { in ast2600_hace_update()
190 memcpy(hctx->buf + left, data, fill); in ast2600_hace_update()
197 left = 0; in ast2600_hace_update()
211 memcpy(hctx->buf + left, data, len); in ast2600_hace_update()
/optee_os-3.20.0/core/crypto/
A Dsm3.c180 size_t left = 0; in sm3_update() local
185 left = ctx->total[0] & 0x3F; in sm3_update()
186 fill = 64 - left; in sm3_update()
193 if (left && ilen >= fill) { in sm3_update()
194 memcpy(ctx->buffer + left, input, fill); in sm3_update()
198 left = 0; in sm3_update()
207 memcpy(ctx->buffer + left, input, ilen); in sm3_update()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Dmd2.h63 size_t left; /*!< amount of data in buffer */ member
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dblake2b.c377 unsigned long left = md->blake2b.curlen; in blake2b_process() local
378 unsigned long fill = BLAKE2B_BLOCKBYTES - left; in blake2b_process()
381 XMEMCPY(md->blake2b.buf + (left % sizeof(md->blake2b.buf)), in, fill); /* Fill buffer */ in blake2b_process()
A Dblake2s.c366 unsigned long left = md->blake2s.curlen; in blake2s_process() local
367 unsigned long fill = BLAKE2S_BLOCKBYTES - left; in blake2s_process()
370 XMEMCPY(md->blake2s.buf + (left % sizeof(md->blake2s.buf)), in, fill); /* Fill buffer */ in blake2s_process()
/optee_os-3.20.0/ta/pkcs11/src/
A Dpkcs11_token.c1572 size_t left = 0; in entry_ck_generate_random() local
1598 left = out->memref.size; in entry_ck_generate_random()
1600 while (left) { in entry_ck_generate_random()
1601 size_t count = MIN(left, buffer_size); in entry_ck_generate_random()
1607 left -= count; in entry_ck_generate_random()
/optee_os-3.20.0/core/arch/arm/dts/
A Dat91-sama5d2_xplained.dts455 * to pull-down or left floating according to

Completed in 27 milliseconds