Home | History | Annotate | Download | only in recovery

Lines Matching refs:eocd

101     // includes all of the EOCD except for the comment length field (2
105 unsigned char* eocd = (unsigned char*)malloc(eocd_size);
106 if (eocd == NULL) {
107 LOGE("malloc for EOCD record failed\n");
111 if (fread(eocd, 1, eocd_size, f) != eocd_size) {
112 LOGE("failed to read eocd from %s (%s)\n", path, strerror(errno));
117 // If this is really is the EOCD record, it will begin with the
119 if (eocd[0] != 0x50 || eocd[1] != 0x4b ||
120 eocd[2] != 0x05 || eocd[3] != 0x06) {
121 LOGE("signature length doesn't match EOCD marker\n");
128 if (eocd[i ] == 0x50 && eocd[i+1] == 0x4b &&
129 eocd[i+2] == 0x05 && eocd[i+3] == 0x06) {
134 LOGE("EOCD marker occurs after start of EOCD\n");
177 if (RSA_verify(pKeys+i, eocd + eocd_size - 6 - RSANUMBYTES,
180 free(eocd);
184 free(eocd);