/system/core/libmincrypt/ |
H A D | rsa.c | 32 const int len, 37 const int len, 42 const int len, 46 return RSA_e_3_verify(key, signature, len, sha); 49 return RSA_e_f4_verify(key, signature, len, sha); 40 RSA_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *sha) argument
|
H A D | rsa_e_3.c | 35 for (i = 0; i < key->len; ++i) { 45 for (i = key->len; i;) { 63 for (i = 1; i < key->len; ++i) { 84 for (i = 0; i < key->len; ++i) { 87 for (i = 0; i < key->len; ++i) { 104 for (i = 0; i < key->len; ++i) { 106 (inout[((key->len - 1 - i) * 4) + 0] << 24) | 107 (inout[((key->len - 1 - i) * 4) + 1] << 16) | 108 (inout[((key->len - 1 - i) * 4) + 2] << 8) | 109 (inout[((key->len 162 RSA_e_3_verify(const RSAPublicKey *key, const uint8_t *signature, const int len, const uint8_t *sha) argument [all...] |
H A D | rsa_e_f4.c | 36 for (i = 0; i < key->len; ++i) { 47 for (i = key->len; i;) { 65 for (i = 1; i < key->len; ++i) { 86 for (i = 0; i < key->len; ++i) { 89 for (i = 0; i < key->len; ++i) { 105 for (i = 0; i < key->len; ++i) { 107 (inout[((key->len - 1 - i) * 4) + 0] << 24) | 108 (inout[((key->len - 1 - i) * 4) + 1] << 16) | 109 (inout[((key->len - 1 - i) * 4) + 2] << 8) | 110 (inout[((key->len 155 RSA_e_f4_verify(const RSAPublicKey* key, const uint8_t* signature, const int len, const uint8_t* sha) argument [all...] |
H A D | sha.c | 147 void SHA_update(SHA_CTX* ctx, const void* data, int len) { argument 151 ctx->count += len; 153 while (len > sizeof(ctx->buf) - i) { 155 len -= sizeof(ctx->buf) - i; 161 while (len--) { 245 void SHA_update(SHA_CTX *ctx, const void *data, int len) { argument 249 ctx->count += len; 251 while (len--) { 296 const uint8_t* SHA(const void *data, int len, uint8_t *digest) { argument 301 SHA_update(&ctx, data, len); [all...] |
/system/core/libnetutils/ |
H A D | dhcpclient.c | 166 int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info) argument 173 if (len < (DHCP_MSG_FIXED_SIZE + 4)) return -1; 175 len -= (DHCP_MSG_FIXED_SIZE + 4); 184 while (len > 2) { 187 len--; 194 len -= 2; 195 if (optlen > len) { 229 len -= optlen; 239 static void hex2str(char *buf, const unsigned char *array, int len) argument 244 for (i = 0; i < len; 249 dump_dhcp_msg(dhcp_msg *msg, int len) argument [all...] |
H A D | ifc_utils.c | 249 int ifindex, s, len, ret; local 320 len = recv(s, buf, sizeof(buf), 0); 322 if (len < 0) { 328 if (!NLMSG_OK(nh, (unsigned) len) || nh->nlmsg_type != NLMSG_ERROR) {
|
/system/core/libnl_2/ |
H A D | attr.c | 123 int len, struct nla_policy *policy) 131 nla_for_each_attr(pos, head, len, rem) { 122 nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, struct nla_policy *policy) argument
|
H A D | msg.c | 108 int len = nlmsg_len(nlh); local 110 len = NLMSG_ALIGN(len); 112 len <= *remaining && 113 len >= (int) sizeof(struct nlmsghdr)) { 114 next_nlh = (struct nlmsghdr *)((char *)nlh + len); 115 *remaining -= len;
|
/system/core/libpixelflinger/codeflinger/ |
H A D | MIPSAssembler.cpp | 1292 int len = 99; local 1295 while (*s && len-- > 0) { 1299 for ( ; i>0; i--) {*t++ = ' '; len--; } 1312 int len = strlen(s); local 1313 s += len; 1314 for (int i = padded_len - len; i > 0; --i) {
|
/system/core/libpixelflinger/ |
H A D | scanline.cpp | 617 GGLcolor ADJUST_COLOR_ITERATOR(GGLcolor v, GGLcolor dvdx, int len) argument 619 const int32_t end = dvdx * (len-1) + v;
|
/system/core/libsparse/ |
H A D | backed_block.c | 28 unsigned int len; member in struct:backed_block 67 return bb->len; 209 block_len = a->len / bbl->block_size; /* rounds down */ 225 a->file.offset + a->len != b->file.offset) { 231 a->fd.offset + a->len != b->fd.offset) { 239 a->len += b->len; 289 unsigned int len, unsigned int block) 297 bb->len = len; 288 backed_block_add_fill(struct backed_block_list *bbl, unsigned int fill_val, unsigned int len, unsigned int block) argument 306 backed_block_add_data(struct backed_block_list *bbl, void *data, unsigned int len, unsigned int block) argument 324 backed_block_add_file(struct backed_block_list *bbl, const char *filename, int64_t offset, unsigned int len, unsigned int block) argument 343 backed_block_add_fd(struct backed_block_list *bbl, int fd, int64_t offset, unsigned int len, unsigned int block) argument [all...] |
H A D | img2simg.c | 54 off64_t len; local 90 len = lseek64(in, 0, SEEK_END); 93 s = sparse_file_new(block_size, len);
|
H A D | output_file.c | 78 int (*write_data_chunk)(struct output_file *out, unsigned int len, 80 int (*write_fill_chunk)(struct output_file *out, unsigned int len, 82 int (*write_skip_chunk)(struct output_file *out, int64_t len); 94 int64_t len; member in struct:output_file 119 int (*write)(void *priv, const void *buf, int len); 146 static int file_pad(struct output_file *out, int64_t len) argument 151 ret = ftruncate64(outn->fd, len); 159 static int file_write(struct output_file *out, void *data, int len) argument 164 ret = write(outn->fd, data, len); 168 } else if (ret < len) { 218 gz_file_pad(struct output_file *out, int64_t len) argument 242 gz_file_write(struct output_file *out, void *data, int len) argument 298 callback_file_pad(struct output_file *out, int64_t len) argument 303 callback_file_write(struct output_file *out, void *data, int len) argument 326 read_all(int fd, void *buf, size_t len) argument 374 write_sparse_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 410 write_sparse_data_chunk(struct output_file *out, unsigned int len, void *data) argument 484 write_normal_data_chunk(struct output_file *out, unsigned int len, void *data) argument 502 write_normal_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 527 write_normal_skip_chunk(struct output_file *out, int64_t len) argument 552 output_file_init(struct output_file *out, int block_size, int64_t len, bool sparse, int chunks, bool crc) argument 641 output_file_open_callback(int (*write)(void *, const void *, int), void *priv, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument 667 output_file_open_fd(int fd, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument 691 write_data_chunk(struct output_file *out, unsigned int len, void *data) argument 697 write_fill_chunk(struct output_file *out, unsigned int len, uint32_t fill_val) argument 703 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument 752 write_file_chunk(struct output_file *out, unsigned int len, const char *file, int64_t offset) argument 769 write_skip_chunk(struct output_file *out, int64_t len) argument [all...] |
H A D | sparse.c | 29 struct sparse_file *sparse_file_new(unsigned int block_size, int64_t len) argument 43 s->len = len; 55 void *data, unsigned int len, unsigned int block) 57 return backed_block_add_data(s->backed_block_list, data, len, block); 61 uint32_t fill_val, unsigned int len, unsigned int block) 63 return backed_block_add_fill(s->backed_block_list, fill_val, len, block); 67 const char *filename, int64_t file_offset, unsigned int len, 71 len, block); 75 int fd, int64_t file_offset, unsigned int len, unsigne 54 sparse_file_add_data(struct sparse_file *s, void *data, unsigned int len, unsigned int block) argument 60 sparse_file_add_fill(struct sparse_file *s, uint32_t fill_val, unsigned int len, unsigned int block) argument 66 sparse_file_add_file(struct sparse_file *s, const char *filename, int64_t file_offset, unsigned int len, unsigned int block) argument 74 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument 171 sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, int len), void *priv) argument 192 out_counter_write(void *priv, const void *data, int len) argument 223 move_chunks_up_to_len(struct sparse_file *from, struct sparse_file *to, unsigned int len) argument [all...] |
H A D | sparse_file.h | 24 int64_t len; member in struct:sparse_file
|
H A D | sparse_read.c | 104 unsigned int len = blocks * s->block_size; local 114 ret = sparse_file_add_fd(s, fd, offset, len, block); 120 while (len) { 121 chunk = min(len, COPY_BUF_SIZE); 127 len -= chunk; 130 lseek64(fd, len, SEEK_CUR); 141 int64_t len = (int64_t)blocks * s->block_size; local 155 ret = sparse_file_add_fill(s, fill_val, len, block); 167 while (len) { 168 chunk = min(len, COPY_BUF_SIZ 182 int64_t len = (int64_t)blocks * s->block_size; local 427 int64_t len; local 482 int64_t len; local [all...] |
/system/core/libsysutils/src/ |
H A D | FrameworkListener.cpp | 47 int len; local 49 len = TEMP_FAILURE_RETRY(read(c->getSocket(), buffer, sizeof(buffer))); 50 if (len < 0) { 53 } else if (!len) 59 for (i = 0; i < len; i++) {
|
H A D | NetlinkEvent.cpp | 82 int len = nh->nlmsg_len - sizeof(*nh); local 85 if (sizeof(*ifi) > (size_t) len) { 97 len = NLMSG_PAYLOAD(nh, sizeof(*ifi)); 99 while(RTA_OK(rta, len)) { 112 rta = RTA_NEXT(rta, len); 118 size_t len = nh->nlmsg_len - sizeof(*nh); local 119 if (sizeof(*pm) > len) { 219 size_t len = strlen(paramName); local 221 const char *ptr = mParams[i] + len; 222 if (!strncmp(mParams[i], paramName, len) [all...] |
H A D | SocketClient.cpp | 83 int SocketClient::sendBinaryMsg(int code, const void *data, int len) { argument 85 /* 4 bytes for the code & null + 4 bytes for the len */ 89 /* Write the len */ 90 uint32_t tmp = htonl(len); 95 if (result == 0 && len > 0) { 96 result = sendDataLocked(data, len); 111 int len = strlen(arg); local 112 char *result = (char *)malloc(len * 2 + 3); 114 const char *end = arg + len; 142 int SocketClient::sendData(const void *data, int len) { argument 151 sendDataLocked(const void *data, int len) argument [all...] |
/system/core/libzipfile/ |
H A D | centraldir.c | 9 EOCD_LEN = 22, // EndOfCentralDir len, excl. comment
15 ENTRY_LEN = 46, // CentralDirEnt len, excl. var fields
34 read_central_dir_values(Zipfile* file, const unsigned char* buf, int len)
argument 36 if (len < EOCD_LEN) {
39 EOCD_LEN, len);
52 if (EOCD_LEN + file->commentLen > len) {
53 fprintf(stderr, "EOCD(%d) + comment(%d) exceeds len (%d)\n",
54 EOCD_LEN, file->commentLen, len);
65 const unsigned char** buf, ssize_t* len)
90 if (*len < ENTRY_LE 64 read_central_directory_entry(Zipfile* file, Zipentry* entry, const unsigned char** buf, ssize_t* len) argument 190 ssize_t len; local [all...] |
/system/core/logcat/ |
H A D | logcat.cpp | 152 size_t size = sizeof(logger_entry) + buf->len; 170 //printf(">>> pri=%d len=%d msg='%s'\n", 299 else if (entry->entry.len != ret - sizeof(struct logger_entry)) { 301 entry->entry.len, ret - sizeof(struct logger_entry)); 305 entry->entry.msg[entry->entry.len] = '\0'; 632 int len; local 635 len = q - p; 637 len = strlen(p); 639 len = snprintf( devname, sizeof(devname), "/dev/%.*s", len, [all...] |
/system/core/sdcard/ |
H A D | fuse.h | 537 __u32 len; member in struct:fuse_in_header 548 __u32 len; member in struct:fuse_out_header 569 __s64 len; member in struct:fuse_notify_inval_inode_out
|
H A D | sdcard.c | 440 hdr.len = sizeof(hdr); 446 static void fuse_reply(struct fuse *fuse, __u64 unique, void *data, int len) argument 452 hdr.len = len + sizeof(hdr); 459 vec[1].iov_len = len; 1162 ssize_t len = read(fuse->fd, local 1164 if (len < 0) { 1171 if ((size_t)len < sizeof(struct fuse_in_header)) { 1172 ERROR("[%d] request too short: len=%zu\n", handler->token, (size_t)len); [all...] |
/system/core/sh/ |
H A D | alias.c | 104 int len = strlen(val); local 105 ap->val = ckmalloc(len + 2); 106 memcpy(ap->val, val, len); 107 ap->val[len] = ' '; /* fluff */ 108 ap->val[len+1] = '\0';
|
H A D | eval.c | 617 size_t len; local 618 if (sysctl(mib, 2, 0, &len, 0, 0) != -1 && 619 (sys_path = ckmalloc(len + 5)) != NULL && 620 sysctl(mib, 2, sys_path + 5, &len, 0, 0) != -1) {
|