pub fn generate_boot_dat(payload: &[u8]) -> Result<Vec<u8>, Error>
Expand description
generate a boot.dat given a payload
from https://gist.github.com/CTCaer/13c02c05daec9e674ba00ce5ac35f5be
but revisited to match https://sx-boot-dat-creator.herokuapp.com/ which works for me
payload
is a byte array of the payload
ยงErrors
Returns an Error if there are problem hashing or serializing