Codebase list liberasurecode / d57a686
Use enum value when handling shss Kota Tsuyuzaki authored 9 years ago Tushar Gohad committed 9 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
561561 goto out;
562562 }
563563
564 if (instance->common.id != 5) {
564 if (instance->common.id != EC_BACKEND_SHSS) {
565565 /* shss (ntt_backend) must force to decode */
566566 // TODO: Add a frag and function to handle whether the backend want to decode or not.
567567 /*
642642 char *data_ptr = frag + frag_header_size;
643643 int cmp_size = remaining >= metadata.size ? metadata.size : remaining;
644644 // shss doesn't keep original data on data fragments
645 if (be_id != 5) {
645 if (be_id != EC_BACKEND_SHSS) {
646646 assert(memcmp(data_ptr, orig_data_ptr, cmp_size) == 0);
647647 }
648648 remaining -= cmp_size;