| /optee_os/core/lib/libtomcrypt/src/ciphers/ |
| H A D | kasumi.c | 95 u16 left, right; in FO() local 98 left = (u16)(in>>16); in FO() 102 left ^= key->kasumi.KOi1[round_no]; in FO() 103 left = FI( left, key->kasumi.KIi1[round_no] ); in FO() 104 left ^= right; in FO() 108 right ^= left; in FO() 110 left ^= key->kasumi.KOi3[round_no]; in FO() 111 left = FI( left, key->kasumi.KIi3[round_no] ); in FO() 112 left ^= right; in FO() 114 return (((ulong32)right)<<16)+left; in FO() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_find_curve.c | 193 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/core/lib/zlib/ |
| H A D | inftrees.c | 47 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;
|
| H A D | inflate.c | 481 left = strm->avail_out; \ 492 strm->avail_out = left; \ 631 unsigned have, left; /* available input and output */ local 655 out = left; 921 if (copy > left) copy = left; 926 left -= copy; 1063 if (have >= 6 && left >= 258) { 1169 if (left == 0) goto inf_leave; 1170 copy = out - left; 1183 if (copy > left) copy = left; [all …]
|
| /optee_os/core/lib/libtomcrypt/src/misc/pkcs5/ |
| H A D | pkcs_5_2.c | 30 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/core/lib/libtomcrypt/src/misc/bcrypt/ |
| H A D | bcrypt.c | 82 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/lib/libutils/ext/ |
| H A D | trace.c | 234 int left; in append() local 240 left = sizeof(sbuf->buf) - (sbuf->ptr - sbuf->buf); in append() 242 len = vsnprintk(sbuf->ptr, left, fmt, ap); in append() 248 if (len >= left) { in append() 252 sbuf->ptr += MIN(left, len); in append()
|
| /optee_os/core/drivers/crypto/aspeed/ |
| H A D | hace_ast2600.c | 170 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/core/crypto/ |
| H A D | sm3.c | 191 size_t left = 0; in sm3_update() local 196 left = ctx->total[0] & 0x3F; in sm3_update() 197 fill = 64 - left; in sm3_update() 204 if (left && ilen >= fill) { in sm3_update() 205 memcpy(ctx->buffer + left, input, fill); in sm3_update() 209 left = 0; in sm3_update() 218 memcpy(ctx->buffer + left, input, ilen); in sm3_update()
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | hmac_drbg.c | 313 size_t left = out_len; in mbedtls_hmac_drbg_random_with_add() local 346 while (left != 0) { in mbedtls_hmac_drbg_random_with_add() 347 size_t use_len = left > md_len ? md_len : left; in mbedtls_hmac_drbg_random_with_add() 362 left -= use_len; in mbedtls_hmac_drbg_random_with_add()
|
| H A D | md5.c | 209 uint32_t left; in mbedtls_md5_update() local 215 left = ctx->total[0] & 0x3F; in mbedtls_md5_update() 216 fill = 64 - left; in mbedtls_md5_update() 225 if (left && ilen >= fill) { in mbedtls_md5_update() 226 memcpy((void *) (ctx->buffer + left), input, fill); in mbedtls_md5_update() 233 left = 0; in mbedtls_md5_update() 246 memcpy((void *) (ctx->buffer + left), input, ilen); in mbedtls_md5_update()
|
| H A D | sha1.c | 244 uint32_t left; in mbedtls_sha1_update() local 250 left = ctx->total[0] & 0x3F; in mbedtls_sha1_update() 251 fill = 64 - left; in mbedtls_sha1_update() 260 if (left && ilen >= fill) { in mbedtls_sha1_update() 261 memcpy((void *) (ctx->buffer + left), input, fill); in mbedtls_sha1_update() 269 left = 0; in mbedtls_sha1_update() 282 memcpy((void *) (ctx->buffer + left), input, ilen); in mbedtls_sha1_update()
|
| H A D | ripemd160.c | 272 uint32_t left; in mbedtls_ripemd160_update() local 278 left = ctx->total[0] & 0x3F; in mbedtls_ripemd160_update() 279 fill = 64 - left; in mbedtls_ripemd160_update() 288 if (left && ilen >= fill) { in mbedtls_ripemd160_update() 289 memcpy((void *) (ctx->buffer + left), input, fill); in mbedtls_ripemd160_update() 297 left = 0; in mbedtls_ripemd160_update() 310 memcpy((void *) (ctx->buffer + left), input, ilen); in mbedtls_ripemd160_update()
|
| H A D | sha256.c | 651 uint32_t left; in mbedtls_sha256_update() local 657 left = ctx->total[0] & 0x3F; in mbedtls_sha256_update() 658 fill = SHA256_BLOCK_SIZE - left; in mbedtls_sha256_update() 667 if (left && ilen >= fill) { in mbedtls_sha256_update() 668 memcpy((void *) (ctx->buffer + left), input, fill); in mbedtls_sha256_update() 676 left = 0; in mbedtls_sha256_update() 691 memcpy((void *) (ctx->buffer + left), input, ilen); in mbedtls_sha256_update()
|
| H A D | sha512.c | 766 unsigned int left; in mbedtls_sha512_update() local 772 left = (unsigned int) (ctx->total[0] & 0x7F); in mbedtls_sha512_update() 773 fill = SHA512_BLOCK_SIZE - left; in mbedtls_sha512_update() 781 if (left && ilen >= fill) { in mbedtls_sha512_update() 782 memcpy((void *) (ctx->buffer + left), input, fill); in mbedtls_sha512_update() 790 left = 0; in mbedtls_sha512_update() 805 memcpy((void *) (ctx->buffer + left), input, ilen); in mbedtls_sha512_update()
|
| /optee_os/core/lib/libtomcrypt/src/hashes/ |
| H A D | blake2s.c | 366 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()
|
| H A D | blake2b.c | 377 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()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_token.c | 1628 size_t left = 0; in entry_ck_generate_random() local 1654 left = out->memref.size; in entry_ck_generate_random() 1656 while (left) { in entry_ck_generate_random() 1657 size_t count = MIN(left, buffer_size); in entry_ck_generate_random() 1663 left -= count; in entry_ck_generate_random()
|
| /optee_os/core/arch/arm/dts/ |
| H A D | at91-sama5d2_xplained.dts | 455 * to pull-down or left floating according to
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 1369 when both operands are 0 and the left operand is represented with 0 limbs. 1518 potentially left in memory after file operations. Reported by
|