| 605 | } |
| 606 | |
| 607 | bool SCEDecrypter::LoadHeaders() |
| 608 | { |
| 609 | // Read SCE header. |
| 610 | sce_f.seek(0); |
| 611 | sce_hdr.Load(sce_f); |
| 612 | |
| 613 | // Check SCE magic. |
| 614 | if (!sce_hdr.CheckMagic()) |
| 615 | { |
| 616 | self_log.error("Not a SELF file!"); |
| 617 | return false; |
| 618 | } |
| 619 | |
| 620 | return true; |
| 621 | } |
| 622 | |
| 623 | bool SCEDecrypter::LoadMetadata(const u8 erk[32], const u8 riv[16]) |
| 624 | { |
no test coverage detected