summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--Android.mk119
-rwxr-xr-xREADME.md346
-rw-r--r--boot_control/boot_control_avb.c171
-rw-r--r--libavb/avb_chain_partition_descriptor.c64
-rw-r--r--libavb/avb_chain_partition_descriptor.h72
-rw-r--r--libavb/avb_crc32.c113
-rw-r--r--libavb/avb_crypto.c373
-rw-r--r--libavb/avb_crypto.h165
-rw-r--r--libavb/avb_descriptor.c160
-rw-r--r--libavb/avb_descriptor.h131
-rw-r--r--libavb/avb_footer.c54
-rw-r--r--libavb/avb_footer.h86
-rw-r--r--libavb/avb_hash_descriptor.c61
-rw-r--r--libavb/avb_hash_descriptor.h73
-rw-r--r--libavb/avb_hashtree_descriptor.c69
-rw-r--r--libavb/avb_hashtree_descriptor.h83
-rw-r--r--libavb/avb_kernel_cmdline_descriptor.c58
-rw-r--r--libavb/avb_kernel_cmdline_descriptor.h81
-rw-r--r--libavb/avb_ops.h214
-rw-r--r--libavb/avb_property_descriptor.c185
-rw-r--r--libavb/avb_property_descriptor.h107
-rw-r--r--libavb/avb_rsa.c299
-rw-r--r--libavb/avb_rsa.h73
-rw-r--r--libavb/avb_sha.h90
-rw-r--r--libavb/avb_sha256.c390
-rw-r--r--libavb/avb_sha512.c388
-rw-r--r--libavb/avb_slot_verify.c1187
-rw-r--r--libavb/avb_slot_verify.h257
-rw-r--r--libavb/avb_sysdeps.h118
-rw-r--r--libavb/avb_sysdeps_posix.c84
-rw-r--r--libavb/avb_util.c403
-rw-r--r--libavb/avb_util.h277
-rw-r--r--libavb/avb_vbmeta_image.c308
-rw-r--r--libavb/avb_vbmeta_image.h290
-rw-r--r--libavb/avb_version.c34
-rw-r--r--libavb/avb_version.h63
-rw-r--r--libavb/libavb.h50
-rw-r--r--libavb_ab/avb_ab_flow.c536
-rw-r--r--libavb_ab/avb_ab_flow.h253
-rw-r--r--libavb_ab/avb_ab_ops.h79
-rw-r--r--libavb_ab/libavb_ab.h40
-rw-r--r--libavb_user/avb_ops_user.c253
-rw-r--r--libavb_user/avb_ops_user.h48
-rw-r--r--libavb_user/libavb_user.h39
-rw-r--r--tools/avbctl/avbctl.cc255
45 files changed, 8599 insertions, 0 deletions
diff --git a/libavb/libavb.h b/libavb/libavb.h
new file mode 100644
index 0000000..d511584
--- a/dev/null
+++ b/libavb/libavb.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use, copy,
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */
+
+#ifndef LIBAVB_H_
+#define LIBAVB_H_
+
+/* The AVB_INSIDE_LIBAVB_H preprocessor symbol is used to enforce
+ * library users to include only this file. All public interfaces, and
+ * only public interfaces, must be included here.
+ */
+
+#define AVB_INSIDE_LIBAVB_H
+#include "avb_chain_partition_descriptor.h"
+#include "avb_crypto.h"
+#include "avb_descriptor.h"
+#include "avb_footer.h"
+#include "avb_hash_descriptor.h"
+#include "avb_hashtree_descriptor.h"
+#include "avb_kernel_cmdline_descriptor.h"
+#include "avb_ops.h"
+#include "avb_property_descriptor.h"
+#include "avb_slot_verify.h"
+#include "avb_sysdeps.h"
+#include "avb_util.h"
+#include "avb_vbmeta_image.h"
+#include "avb_version.h"
+#undef AVB_INSIDE_LIBAVB_H
+
+#endif /* LIBAVB_H_ */