Use enum value when handling shss
Kota Tsuyuzaki authored 9 years ago
Tushar Gohad committed 9 years ago
561 | 561 |
goto out;
|
562 | 562 |
}
|
563 | 563 |
|
564 | |
if (instance->common.id != 5) {
|
|
564 |
if (instance->common.id != EC_BACKEND_SHSS) {
|
565 | 565 |
/* shss (ntt_backend) must force to decode */
|
566 | 566 |
// TODO: Add a frag and function to handle whether the backend want to decode or not.
|
567 | 567 |
/*
|
642 | 642 |
char *data_ptr = frag + frag_header_size;
|
643 | 643 |
int cmp_size = remaining >= metadata.size ? metadata.size : remaining;
|
644 | 644 |
// shss doesn't keep original data on data fragments
|
645 | |
if (be_id != 5) {
|
|
645 |
if (be_id != EC_BACKEND_SHSS) {
|
646 | 646 |
assert(memcmp(data_ptr, orig_data_ptr, cmp_size) == 0);
|
647 | 647 |
}
|
648 | 648 |
remaining -= cmp_size;
|