summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-10Remove code since it has been moved to external/bvb.HEADmastermainDavid Zeuthen
BUG=29099910 Change-Id: Iec09d1348310a94989111e3f18de8eecdc7517cf
2016-04-27bvb_refimpl: fix pointer-to-int-cast compiler errorDzmitry Yatsushkevich
Error: .../brillo/system/bvb/refimpl/bvb_verify.c:168:27: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] if (!bvb_safe_add(NULL, (uint64_t) data, length)) { ^ The error means that converting a pointer to unsigned int can be dangerous. We converts a pointer to 64bit unsigned int which is safe (at least till we are not going to run this code on 128bit system for example) We can make compiler happy by useing uintptr_t as a temp variable. uintptr_t is guaranteed to be wide enough that converting a pointer to uintptr_t and back again will yield the original pointer value. Change-Id: Id94e83942bd2f63fdbd9f8da04d2d4a5892e26c2 Signed-off-by: Dzmitry Yatsushkevich <dmitryya@nestlabs.com>
2016-03-29bvb_refimpl: Add script to check symbols.David Zeuthen
This change introduces a script to verify only symbols starting with bvb_ are used in the reference implementation. This is to catch mistakes where the standard C library (e.g. malloc() or printf()) is used by mistake. TEST=Manually tested by using malloc() in bvb_verify(). BUG=None Change-Id: I54bc1bf30d7081cf60c49720b5f8d82e563ffa21
2016-03-23bvb_refimpl: Move library code to refimpl/ sub-directory.David Zeuthen
This makes it easier to see exactly which files belong to the reference implementation. BUG=None TEST=Code builds and unit tests pass. Change-Id: Iebcc603985847c2f0af9df76396da138438edbef
2016-03-23bvb_refimpl: Remove unused internal header file.David Zeuthen
This file was errornously introduced in the previous commit. BUG=None TEST=Code builds and unit tests pass. Change-Id: Iaf4d431b3c73ee9031957d26e8549607a98463ea
2016-03-22bvb_refimpl: Hide SHA and RSA code from application code.David Zeuthen
This hides the code implementing the few RSA and SHA bits we're using from the application, enabling us to change to another crypto implementation in the future if we so desire. Since we have limited control over the build system used, this is best-effort by playing C preprocessor games. The approach used is similar to how other C libraries do this (GLib, GTK+, D-Bus). BUG=None TEST=Manually tested. Change-Id: Icd3092d44d1b38419b657839c39f27b051bdcebe
2016-03-09Initial commit of Brillo Verified Boot.David Zeuthen
This directory contains - The specification for the Brillo Verified Boot boot image format; and - A reference implementation (intended for use in boot loaders); and - tooling for generating and signing boot images; and - tooling for using dm-verity on the rootfs; and - unit tests for the above code. See the README file for more details. The code in the files bvb_rsa.[ch], bvb_sha*.[ch], bvb_sysdeps*.[ch] is based on code from the ChromiumOS vboot_reference project. BUG=26184998 BUG=26186855 TEST=Unit tests pass. Change-Id: Ie7fa495238e422d71e49e890eb8c58d99cf038b8
2016-03-01Initial empty repositoryXin Li