Bugs: |
|
---|
6242 sha512 is broken in grub
Review Request #100 — Created Oct. 7, 2015 and submitted
Information | |
---|---|
tsoome | |
illumos-gate | |
6242 | |
9267603... | |
Reviewers | |
general | |
6242 sha512 is broken in grub
the root and immediate causes for checksum mismatch are missing type casts and wrong byte order in resulting checksum returned to caller.
However, this update also is addressing the case where last block is not full block - perhaps its not actually issue in zfs; also this code is using explicit 128bit message length setup.
build and boot from previously unaccessible pool with grub; accessing files from loader.
Change Summary:
updated copyright to make git-pbchk happy
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 2 (+36 -10) |
-
It isn't clear to me why we need to byteswap the checksum here, but if it works then I'm happy. It would be great if you can also get Saso to review this since he wrote it originally.
-
Just one minor documentation issue, other than that looks great!
-
usr/src/grub/grub-0.97/stage2/zfs_sha256.c (Diff revision 2) You might want to add a note to this function to make it clear that it's always encoding in big-endian.
Change Summary:
added comment for Encode64()
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+39 -10) |