| /OK3568_Linux_fs/external/security/librkcrypto/demo/ |
| H A D | demo_hash.c | 108 uint32_t tmp_len; in demo_hash_virt() local 125 tmp_len = data_len; in demo_hash_virt() 128 while (tmp_len) { in demo_hash_virt() 129 if (tmp_len > data_block) { in demo_hash_virt() 137 data_block = tmp_len; in demo_hash_virt() 138 res = rk_hash_update_virt(hash_hdl, tmp_data, tmp_len); in demo_hash_virt() 145 tmp_len -= data_block; in demo_hash_virt() 233 uint32_t tmp_len; in demo_hmac_virt() local 252 tmp_len = data_len; in demo_hmac_virt() 255 while (tmp_len) { in demo_hmac_virt() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | hmac.c | 98 unsigned int tmp_len = 0; in rk_hmac_64() local 111 res = (*hash)(key, key_length, digest, &tmp_len); in rk_hmac_64() 116 for (i=0;i<tmp_len;i++) in rk_hmac_64() 160 res = (*hash)(step5data, data_length+b, digest, &tmp_len); in rk_hmac_64() 177 for (i=0;i<tmp_len;i++) in rk_hmac_64() 183 res = (*hash)(step8data, b+tmp_len, digest, &tmp_len); in rk_hmac_64() 187 *digest_len = tmp_len; in rk_hmac_64() 208 unsigned int tmp_len = 0; in rk_hmac_128() local 221 res = (*hash)(key, key_length, digest, &tmp_len); in rk_hmac_128() 226 for (i=0;i<tmp_len;i++) in rk_hmac_128() [all …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | lzo.c | 55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_compress() local 58 err = lzo1x_1_compress(src, slen, dst, &tmp_len, ctx); in __lzo_compress() 63 *dlen = tmp_len; in __lzo_compress() 86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_decompress() local 88 err = lzo1x_decompress_safe(src, slen, dst, &tmp_len); in __lzo_decompress() 93 *dlen = tmp_len; in __lzo_decompress()
|
| H A D | lzo-rle.c | 55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_compress() local 58 err = lzorle1x_1_compress(src, slen, dst, &tmp_len, ctx); in __lzorle_compress() 63 *dlen = tmp_len; in __lzorle_compress() 86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_decompress() local 88 err = lzo1x_decompress_safe(src, slen, dst, &tmp_len); in __lzorle_decompress() 93 *dlen = tmp_len; in __lzorle_decompress()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | debug.c | 272 int tmp_len; in rtl_debugfs_set_write_reg() local 279 tmp_len = (count > sizeof(tmp) - 1 ? sizeof(tmp) - 1 : count); in rtl_debugfs_set_write_reg() 281 if (!buffer || copy_from_user(tmp, buffer, tmp_len)) in rtl_debugfs_set_write_reg() 284 tmp[tmp_len] = '\0'; in rtl_debugfs_set_write_reg() 322 int tmp_len; in rtl_debugfs_set_write_h2c() local 330 tmp_len = (count > sizeof(tmp) - 1 ? sizeof(tmp) - 1 : count); in rtl_debugfs_set_write_h2c() 332 if (copy_from_user(tmp, buffer, tmp_len)) in rtl_debugfs_set_write_h2c() 335 tmp[tmp_len] = '\0'; in rtl_debugfs_set_write_h2c() 368 int tmp_len; in rtl_debugfs_set_write_rfreg() local 376 tmp_len = (count > sizeof(tmp) - 1 ? sizeof(tmp) - 1 : count); in rtl_debugfs_set_write_rfreg() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/crypto/rockchip/ |
| H A D | crypto_hash_cache.c | 28 u32 tmp_len = 0; in hash_cache_calc() local 57 tmp_len = HASH_CACHE_SIZE - hash_cache->cache_size; in hash_cache_calc() 59 __func__, __LINE__, tmp_len); in hash_cache_calc() 61 data, tmp_len); in hash_cache_calc() 68 data += tmp_len; in hash_cache_calc() 69 data_len -= tmp_len; in hash_cache_calc()
|
| H A D | crypto_v2.c | 939 u32 reg_ctrl = 0, tmp_len = 0; in hw_cipher_crypt() local 950 tmp_len = (rk_mode == RK_MODE_CTR) ? ROUNDUP(len, AES_BLOCK_SIZE) : len; in hw_cipher_crypt() 956 if (IS_ALIGNED((ulong)in, DATA_ADDR_ALIGN_SIZE) && tmp_len == len) in hw_cipher_crypt() 959 dma_in = align_malloc(tmp_len, DATA_ADDR_ALIGN_SIZE); in hw_cipher_crypt() 965 tmp_len == len) in hw_cipher_crypt() 968 dma_out = align_malloc(tmp_len, DATA_ADDR_ALIGN_SIZE); in hw_cipher_crypt() 971 dst_len = tmp_len; in hw_cipher_crypt() 979 data_desc->src_len = tmp_len; in hw_cipher_crypt() 1033 ccm_compose_aad_iv(aad_tmp, tmp_len, aad_len, tag_len); in hw_cipher_crypt() 1052 set_pc_len_reg(key_chn, tmp_len); in hw_cipher_crypt() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_hash.c | 47 uint32_t out_len, tmp_len; in test_hash_item_virt() local 86 tmp_len = buffer_len; in test_hash_item_virt() 89 while (tmp_len) { in test_hash_item_virt() 90 data_block = tmp_len > data_block ? data_block : tmp_len; in test_hash_item_virt() 96 (unsigned long)(tmp_data - buffer), tmp_len, res); in test_hash_item_virt() 100 tmp_len -= data_block; in test_hash_item_virt()
|
| H A D | test_rsa.c | 263 size_t tmp_len; in openssl_encrypt() local 299 if (EVP_PKEY_encrypt(pkey_ctx, NULL /* out */, &tmp_len, in, in_len) <= 0) { in openssl_encrypt() 303 if (EVP_PKEY_encrypt(pkey_ctx, out, &tmp_len, in, in_len) <= 0) { in openssl_encrypt() 308 *out_len = (uint32_t)tmp_len; in openssl_encrypt() 326 size_t tmp_len; in openssl_decrypt() local 364 if (EVP_PKEY_decrypt(pkey_ctx, NULL /* out */, &tmp_len, in, in_len) <= 0) { in openssl_decrypt() 368 if (EVP_PKEY_decrypt(pkey_ctx, out, &tmp_len, in, in_len) <= 0) { in openssl_decrypt() 373 *out_len = (uint32_t)tmp_len; in openssl_decrypt() 390 size_t tmp_len = *out_len; in openssl_sign() local 432 if (EVP_DigestSignFinal(digest_ctx, NULL, &tmp_len) != 1) { in openssl_sign() [all …]
|
| H A D | test_cipher.c | 97 uint32_t loop_nbytes, tmp_len; in test_cipher_item_virt() local 180 tmp_len = loop_nbytes > MULTI_BLOCKSIZE ? MULTI_BLOCKSIZE : loop_nbytes; in test_cipher_item_virt() 183 tmp_data_out, tmp_len); in test_cipher_item_virt() 190 tmp_data_in += tmp_len; in test_cipher_item_virt() 191 tmp_data_out += tmp_len; in test_cipher_item_virt() 192 loop_nbytes -= tmp_len; in test_cipher_item_virt()
|
| H A D | test_throughput.c | 803 uint32_t tmp_len; in test_hash_item_tp() local 849 tmp_len = data_len; in test_hash_item_tp() 852 while (tmp_len) { in test_hash_item_tp() 853 data_block = tmp_len > data_block ? data_block : tmp_len; in test_hash_item_tp() 859 (unsigned long)(tmp_data - (uint8_t *)input), tmp_len, res); in test_hash_item_tp() 863 tmp_len -= data_block; in test_hash_item_tp()
|
| /OK3568_Linux_fs/external/security/librkcrypto/src/ |
| H A D | rkcrypto_rsa_helper.c | 1084 uint32_t total_len = 0, tmp_len = 0, out_max; in rk_rsa_pubkey_encode() local 1099 asn1_key + total_len, out_max, &tmp_len); in rk_rsa_pubkey_encode() 1105 total_len += tmp_len; in rk_rsa_pubkey_encode() 1106 out_max -= tmp_len; in rk_rsa_pubkey_encode() 1110 asn1_key + total_len, out_max, &tmp_len); in rk_rsa_pubkey_encode() 1115 total_len += tmp_len; in rk_rsa_pubkey_encode() 1116 out_max -= tmp_len; in rk_rsa_pubkey_encode() 1119 res = asn1_compose_len(total_len, tmp_field, &tmp_len); in rk_rsa_pubkey_encode() 1125 if (out_max < tmp_len + 1) { in rk_rsa_pubkey_encode() 1130 memmove(asn1_key + tmp_len + 1, asn1_key, total_len); in rk_rsa_pubkey_encode() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/vdso/ |
| H A D | vdso2c.c | 161 off_t tmp_len; in map_input() local 168 tmp_len = lseek(fd, 0, SEEK_END); in map_input() 169 if (tmp_len == (off_t)-1) in map_input() 171 *len = (size_t)tmp_len; in map_input() 173 *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); in map_input()
|
| /OK3568_Linux_fs/kernel/arch/x86/entry/vdso/ |
| H A D | vdso2c.c | 186 off_t tmp_len; in map_input() local 192 tmp_len = lseek(fd, 0, SEEK_END); in map_input() 193 if (tmp_len == (off_t)-1) in map_input() 195 *len = (size_t)tmp_len; in map_input() 197 *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); in map_input()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/gt1x/ |
| H A D | gt1x_tools.c | 424 s32 tmp_len; in gt1x_tool_read() local 425 tmp_len = strlen(GTP_DRIVER_VERSION); in gt1x_tool_read() 426 memcpy(buffer, GTP_DRIVER_VERSION, tmp_len); in gt1x_tool_read() 427 buffer[tmp_len] = 0; in gt1x_tool_read() 428 *ppos += tmp_len + 1; in gt1x_tool_read() 429 return (tmp_len + 1); in gt1x_tool_read()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/ |
| H A D | sha2_impl.c | 351 unsigned int tmp_len = 0; in sha256_update() local 355 tmp_len = SHA256_BLOCK_SIZE - ctx->len; in sha256_update() 356 rem_len = len < tmp_len ? len : tmp_len; in sha256_update() 462 unsigned int tmp_len = 0; in sha224_update() local 466 tmp_len = SHA224_BLOCK_SIZE - ctx->len; in sha224_update() 467 rem_len = len < tmp_len ? len : tmp_len; in sha224_update()
|
| /OK3568_Linux_fs/u-boot/drivers/rng/ |
| H A D | rockchip_rng.c | 142 u32 reg, tmp_len; in rk_rng_read_regs() local 149 tmp_len = min(size, sizeof(u32)); in rk_rng_read_regs() 150 memcpy(buf, ®, tmp_len); in rk_rng_read_regs() 152 buf += tmp_len; in rk_rng_read_regs() 153 size -= tmp_len; in rk_rng_read_regs()
|
| /OK3568_Linux_fs/kernel/tools/lib/perf/ |
| H A D | cpumap.c | 302 int tmp_len; in perf_cpu_map__merge() local 318 tmp_len = orig->nr + other->nr; in perf_cpu_map__merge() 319 tmp_cpus = malloc(tmp_len * sizeof(int)); in perf_cpu_map__merge() 339 assert(k <= tmp_len); in perf_cpu_map__merge()
|
| /OK3568_Linux_fs/kernel/drivers/md/ |
| H A D | dm-unstripe.c | 41 sector_t tmp_len; in unstripe_ctr() local 91 tmp_len = ti->len; in unstripe_ctr() 92 if (sector_div(tmp_len, uc->chunk_size)) { in unstripe_ctr()
|
| /OK3568_Linux_fs/u-boot/lib/avb/libavb/ |
| H A D | avb_sha512.c | 346 size_t new_len, rem_len, tmp_len; in avb_sha512_update() local 349 tmp_len = AVB_SHA512_BLOCK_SIZE - ctx->len; in avb_sha512_update() 350 rem_len = len < tmp_len ? len : tmp_len; in avb_sha512_update()
|
| H A D | avb_sha256.c | 363 size_t new_len, rem_len, tmp_len; in avb_sha256_update() local 366 tmp_len = AVB_SHA256_BLOCK_SIZE - ctx->len; in avb_sha256_update() 367 rem_len = len < tmp_len ? len : tmp_len; in avb_sha256_update()
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/dec/jpeg/ |
| H A D | jpegd_parser.c | 606 RK_U32 tmp_len = 0; in jpegd_setup_default_dht() local 697 tmp_len = 0; in jpegd_setup_default_dht() 700 tmp_len += ac_ptr->bits[i] = bits_tmp[i]; in jpegd_setup_default_dht() 703 ac_ptr->actual_length = tmp_len; /* set the table length */ in jpegd_setup_default_dht() 704 for (i = 0; i < tmp_len; i++) { in jpegd_setup_default_dht() 716 tmp_len = 0; in jpegd_setup_default_dht() 719 tmp_len += dc_ptr->bits[i] = bits_tmp[i]; in jpegd_setup_default_dht() 722 dc_ptr->actual_length = tmp_len; /* set the table length */ in jpegd_setup_default_dht() 723 for (i = 0; i < tmp_len; i++) { in jpegd_setup_default_dht()
|
| /OK3568_Linux_fs/kernel/drivers/staging/rtl8712/ |
| H A D | rtl8712_recv.c | 977 u16 pkt_cnt, drvinfo_sz, pkt_offset, tmp_len, alloc_sz; in recvbuf2recvframe() local 1020 tmp_len = pkt_len + drvinfo_sz + RXDESC_SIZE; in recvbuf2recvframe() 1021 pkt_offset = (u16)round_up(tmp_len, 128); in recvbuf2recvframe() 1027 alloc_sz = max_t(u16, tmp_len, 1658); in recvbuf2recvframe() 1029 alloc_sz = tmp_len; in recvbuf2recvframe() 1041 memcpy(pkt_copy->data, pbuf, tmp_len); in recvbuf2recvframe() 1046 recvframe_put(precvframe, tmp_len); in recvbuf2recvframe()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 1202 int tmp_len, size; in bdx_rx_receive() local 1231 tmp_len = GET_RXD_BC(rxd_val1) << 3; in bdx_rx_receive() 1232 BDX_ASSERT(tmp_len <= 0); in bdx_rx_receive() 1233 size -= tmp_len; in bdx_rx_receive() 1237 f->m.rptr += tmp_len; in bdx_rx_receive() 1239 tmp_len = f->m.rptr - f->m.memsz; in bdx_rx_receive() 1240 if (unlikely(tmp_len >= 0)) { in bdx_rx_receive() 1241 f->m.rptr = tmp_len; in bdx_rx_receive() 1242 if (tmp_len > 0) { in bdx_rx_receive() 1244 f->m.rptr, tmp_len); in bdx_rx_receive() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/spi/ |
| H A D | cf_spi.c | 127 int tmp_len = len - 1; in cfspi_xfer() local 128 while (tmp_len--) { in cfspi_xfer()
|