plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
vb20_verify_fw
.c
platform/external/vboot_reference/tests/vb20_verify_fw.c
4,127
utf_8
fa470b958e4c38b14f2911be3a08efda
* * Routines for verifying a firmware image's signature. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "2sysincludes.h" #include "2api.h" const char *gbb_fname; const char *vblock_fname; const char *body_fname; /** * Local implementation which reads resources from individual files. Could b...
google
android
stateful_util_tests
.c
platform/external/vboot_reference/tests/stateful_util_tests.c
11,694
utf_8
42d05d9ed51728d92e7d05602dc43a3e
* * Tests for statful_util functions. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define _STUB_IMPLEMENTATION_ /* So we can use memset() ourselves */ #include "stateful_util.h" #include "test_common.h" #include "utility.h" #include "vboot_common.h" /* Test StatefulInit */ stat...
google
android
vboot_api_init_tests
.c
platform/external/vboot_reference/tests/vboot_api_init_tests.c
26,379
utf_8
ed0fb829b107fd52f397a4d0360a64f3
* * Tests for vboot_api_init */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "gbb_header.h" #include "host_common.h" #include "rollback_index.h" #include "test_common.h" #include "vboot_common.h" #include "vboot_nvstorage.h" #include "vboot_struct.h" /* Mock data */ static VbCommonParams cpara...
google
android
vboot_api_firmware_tests
.c
platform/external/vboot_reference/tests/vboot_api_firmware_tests.c
8,676
utf_8
05f043314cf50287e96602a4f53fcd60
* * Tests for vboot_api_firmware */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "gbb_header.h" #include "host_common.h" #include "rollback_index.h" #include "test_common.h" #include "vboot_common.h" #include "vboot_nvstorage.h" #include "vboot_struct.h" /* Flags for mock_*_got_flags variables...
google
android
vb21_host_fw_preamble_tests
.c
platform/external/vboot_reference/tests/vb21_host_fw_preamble_tests.c
3,583
utf_8
63725ab428283119acd01374332f7448
* * Tests for host library vboot2 preamble functions */ #include <stdio.h> #include <unistd.h> #include "2sysincludes.h" #include "2common.h" #include "2rsa.h" #include "vb2_common.h" #include "host_common.h" #include "host_fw_preamble2.h" #include "host_key2.h" #include "host_signature2.h" #include "test_common.h" ...
google
android
vb2_rsa_utility_tests
.c
platform/external/vboot_reference/tests/vb2_rsa_utility_tests.c
3,898
utf_8
e02c7ab16ed437057044274ab0a1c5a7
*/ #include <stdint.h> #include <stdio.h> #define _STUB_IMPLEMENTATION_ #include "cryptolib.h" #include "file_keys.h" #include "rsa_padding_test.h" #include "test_common.h" #include "utility.h" #include "vboot_api.h" #include "2common.h" #include "2rsa.h" /* * Internal functions from 2rsa.c that have error conditions...
google
android
verify_kernel
.c
platform/external/vboot_reference/tests/verify_kernel.c
3,627
utf_8
1d00e4ffb78b5e4e99793100aa1aac98
* * Routines for verifying a kernel or disk image */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "host_common.h" #include "util_misc.h" #include "vboot_common.h" #include "vboot_api.h" #include "vboot_kernel.h" static uint8_t *diskbuf; static uint8_t shared_data[VB_SHARED_DATA_MIN_SIZE]; stat...
google
android
vb2_api_tests
.c
platform/external/vboot_reference/tests/vb2_api_tests.c
6,520
utf_8
aff92a3cc968bc89afd2d03aa16dedf8
* * Tests for misc library */ #include <stdio.h> #include "2sysincludes.h" #include "2api.h" #include "2common.h" #include "2misc.h" #include "2nvstorage.h" #include "2rsa.h" #include "2secdata.h" #include "test_common.h" /* Common context for tests */ static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] __attribut...
google
android
vboot_audio_tests
.c
platform/external/vboot_reference/tests/vboot_audio_tests.c
6,235
utf_8
96f37a888997b81cf8d0a7784d44286a
* * Tests for vboot_audio */ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "crc32.h" #include "gbb_header.h" #include "host_common.h" #include "load_kernel_fw.h" #include "rollback_index.h" #include "test_common.h" #include "vboot_audio.h" #include "vboot_audio_private.h" #i...
google
android
rsa_utility_tests
.c
platform/external/vboot_reference/tests/rsa_utility_tests.c
7,455
utf_8
45f57946fd4564b76af85033ae7f952b
*/ #include <stdint.h> #include <stdio.h> #define _STUB_IMPLEMENTATION_ #include "cryptolib.h" #include "file_keys.h" #include "rsa_padding_test.h" #include "test_common.h" #include "utility.h" #include "vboot_api.h" /* Data for mock functions */ static int mock_rsaverify_retval; /* Mock functions */ uint8_t* DigestBu...
google
android
vb20_common_tests
.c
platform/external/vboot_reference/tests/vb20_common_tests.c
5,401
utf_8
83c2ba1125320b3e04a2c28c3ff7b3ad
* * Tests for firmware 2common.c */ #include "2sysincludes.h" #include "vb2_common.h" #include "vboot_struct.h" /* For old struct sizes */ #include "test_common.h" /* * Test struct packing for vboot_struct.h structs which are passed between * firmware and OS, or passed between different phases of firmware. */ st...
google
android
vb21_misc_tests
.c
platform/external/vboot_reference/tests/vb21_misc_tests.c
11,099
utf_8
9b211081243453e081858cce0df67932
* * Tests for misc library, new-style structs */ #include <stdio.h> #include "2sysincludes.h" #include "2api.h" #include "2common.h" #include "2misc.h" #include "2nvstorage.h" #include "2secdata.h" #include "vb2_common.h" #include "test_common.h" /* Common context for tests */ static uint8_t workbuf[VB2_WORKBUF_RECO...
google
android
vboot_api_kernel3_tests
.c
platform/external/vboot_reference/tests/vboot_api_kernel3_tests.c
9,460
utf_8
369af475814fe908dff3c11394bcb9b2
*/ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "gbb_header.h" #include "host_common.h" #include "load_kernel_fw.h" #include "rollback_index.h" #include "test_common.h" #include "vboot_audio.h" #include "vboot_common.h" #include "vboot_kernel.h" #include "vboot_nvstorage.h" #include "vboot_struc...
google
android
utility_tests
.c
platform/external/vboot_reference/tests/utility_tests.c
2,220
utf_8
c8e6e52ae7e9da620b9a727bea7da4b4
* * Tests for utility functions */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define _STUB_IMPLEMENTATION_ /* So we can use memset() ourselves */ #include "test_common.h" #include "utility.h" #include "vboot_common.h" /* Test utility.h and sysincludes.h macros */ static void Mac...
google
android
vb21_host_key_tests
.c
platform/external/vboot_reference/tests/vb21_host_key_tests.c
10,286
utf_8
0226b7b6171ac0a89de2e7f40017feba
* * Tests for host library vboot2 key functions */ #include <stdio.h> #include <unistd.h> #include "2sysincludes.h" #include "2common.h" #include "2rsa.h" #include "vb2_common.h" #include "host_common.h" #include "host_key2.h" #include "test_common.h" /* Test only the algorithms we use */ struct alg_combo { const c...
google
android
vb20_common2_tests
.c
platform/external/vboot_reference/tests/vb20_common2_tests.c
5,822
utf_8
ef032386b8fb5592a14d8f0d3d546557
* * Tests for firmware image library. */ #include <stdint.h> #include <stdio.h> #include <string.h> #include "2sysincludes.h" #include "2rsa.h" #include "file_keys.h" #include "host_common.h" #include "vb2_common.h" #include "vboot_common.h" #include "test_common.h" static const uint8_t test_data[] = "This is some t...
google
android
vboot_common_tests
.c
platform/external/vboot_reference/tests/vboot_common_tests.c
7,922
utf_8
4e1b6176a63541b4fb1b880c25059013
* * Tests for firmware vboot_common.c */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "test_common.h" #include "utility.h" #include "vboot_common.h" /* * Test struct packing for vboot_struct.h structs which are passed between * firmware and OS, or passed between different phases of firmware....
google
android
vb20_rsa_padding_tests
.c
platform/external/vboot_reference/tests/vb20_rsa_padding_tests.c
4,371
utf_8
f81754da02959fb7c993248de946c541
*/ #include <stdint.h> #include <stdio.h> #include "cryptolib.h" #include "file_keys.h" #include "rsa_padding_test.h" #include "test_common.h" #include "utility.h" #include "2sysincludes.h" #include "2rsa.h" #include "vb2_common.h" /** * Convert an old-style RSA public key struct to a new one. * * The new one does ...
google
android
test_common
.c
platform/external/vboot_reference/tests/test_common.c
3,871
utf_8
444ed1161a9b0845c4534b382e596deb
* * Common functions used by tests. */ #include "test_common.h" #include <stdint.h> #include <stdio.h> #include <string.h> #include "cryptolib.h" #include "file_keys.h" #include "utility.h" /* Global test success flag. */ int gTestSuccess = 1; int TEST_EQ(int result, int expected_result, const char* testname) { if...
google
android
cgptlib_test
.c
platform/external/vboot_reference/tests/cgptlib_test.c
49,067
utf_8
d6ae4b65ebbb8e94019c847e8de2871a
*/ #include <errno.h> #include <string.h> #include "../cgpt/cgpt.h" #include "cgptlib_internal.h" #include "cgptlib_test.h" #include "crc32.h" #include "crc32_test.h" #include "gpt.h" #include "test_common.h" #define _STUB_IMPLEMENTATION_ #include "utility.h" /* * Testing partition layout (sector_bytes=512) * * ...
google
android
rsa_verify_benchmark
.c
platform/external/vboot_reference/tests/rsa_verify_benchmark.c
2,750
utf_8
0e24574552a709ad87d480fc8455fa0a
*/ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "cryptolib.h" #include "file_keys.h" #include "host_common.h" #include "timer_utils.h" #define FILE_NAME_SIZE 128 #define NUM_OPERATIONS 100 /* Number of signature operations to time. */ int SpeedTestAlgorithm(int algorithm) { int i, key_size; ...
google
android
vb20_misc_tests
.c
platform/external/vboot_reference/tests/vb20_misc_tests.c
10,723
utf_8
35ed4d0055cdf9c4de247e825385a087
* * Tests for misc library */ #include <stdio.h> #include "2sysincludes.h" #include "2api.h" #include "2common.h" #include "2misc.h" #include "2nvstorage.h" #include "2secdata.h" #include "vb2_common.h" #include "test_common.h" /* Common context for tests */ static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] __at...
google
android
timer_utils
.c
platform/external/vboot_reference/tests/timer_utils.c
859
utf_8
1db648ffdfa6d45bf5a13897923d7145
*/ #include "timer_utils.h" void StartTimer(ClockTimerState* ct) { clock_gettime(CLOCK_REALTIME, &ct->start_time); } void StopTimer(ClockTimerState* ct) { clock_gettime(CLOCK_REALTIME, &ct->end_time); } uint32_t GetDurationMsecs(ClockTimerState* ct) { uint64_t start = ((uint64_t) ct->start_time.tv_sec * 10000000...
google
android
vboot_firmware_tests
.c
platform/external/vboot_reference/tests/vboot_firmware_tests.c
18,297
utf_8
6c45d47c4ed755112eda396858458baa
* * Tests for vboot_firmware library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "gbb_header.h" #include "host_common.h" #include "load_firmware_fw.h" #include "test_common.h" #include "vboot_common.h" #include "vboot_nvstorage.h" #include "vboot_struct.h" /* Mock data...
google
android
vboot_kernel_tests
.c
platform/external/vboot_reference/tests/vboot_kernel_tests.c
23,244
utf_8
3836e9403cfce8b80e849300d17b52c4
* * Tests for vboot_kernel.c */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cgptlib.h" #include "cgptlib_internal.h" #include "gbb_header.h" #include "gpt.h" #include "host_common.h" #include "load_kernel_fw.h" #include "test_common.h" #include "vboot_api.h" #include "vbo...
google
android
vb2_misc_tests
.c
platform/external/vboot_reference/tests/vb2_misc_tests.c
15,818
utf_8
e4acf978fc93878da5c5ab2562025bf5
* * Tests for misc library */ #include "2sysincludes.h" #include "2api.h" #include "2common.h" #include "2misc.h" #include "2nvstorage.h" #include "2secdata.h" #include "test_common.h" /* Common context for tests */ static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] __attribute__ ((aligned (VB2_WORKBUF_ALIGN))); ...
google
android
rollback_index3_tests
.c
platform/external/vboot_reference/tests/rollback_index3_tests.c
1,200
utf_8
0e754831994529e6cc3665c99daf12fa
* * Tests for do-nothing rollback_index functions with disabled TPM */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define _STUB_IMPLEMENTATION_ /* So we can use memset() ourselves */ #include "rollback_index.h" #include "test_common.h" int main(int argc, char* argv[]) { int is_v...
google
android
vb21_host_sig_tests
.c
platform/external/vboot_reference/tests/vb21_host_sig_tests.c
5,928
utf_8
93a80d6d161b8d91bcbcb26001826cc1
* * Tests for host library vboot2 key functions */ #include <stdio.h> #include <unistd.h> #include "2sysincludes.h" #include "2common.h" #include "2rsa.h" #include "vb2_common.h" #include "host_common.h" #include "host_key2.h" #include "host_signature2.h" #include "test_common.h" /* Test only the algorithms we use *...
google
android
rollback_index2_tests
.c
platform/external/vboot_reference/tests/rollback_index2_tests.c
30,674
utf_8
cba503da45db1a36458b4468b1530a94
* * Tests for rollback_index functions */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define _STUB_IMPLEMENTATION_ /* So we can use memset() ourselves */ #include "crc8.h" #include "rollback_index.h" #include "test_common.h" #include "tlcl.h" #include "utility.h" #include "vboot_...
google
android
utility_string_tests
.c
platform/external/vboot_reference/tests/utility_string_tests.c
3,556
utf_8
6ec441632fd2f963d37e1c35cb41ae96
* * Tests for string utility functions. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "test_common.h" #include "utility.h" #include "vboot_common.h" /* Test string concatenation */ static void StrncatTest(void) { char dest[128]; /* Null inputs */ TEST_EQ(0, StrnAppe...
google
android
vb2_common_tests
.c
platform/external/vboot_reference/tests/vb2_common_tests.c
3,135
utf_8
02b05bdc813b6f00909f75a8f9e400fe
* * Tests for firmware 2common.c */ #include "2sysincludes.h" #include "2common.h" #include "test_common.h" /** * Test memory compare functions */ static void test_memcmp(void) { TEST_EQ(vb2_safe_memcmp("foo", "foo", 3), 0, "memcmp equal"); TEST_NEQ(vb2_safe_memcmp("foo1", "foo2", 4), 0, "memcmp different"); TE...
google
android
tlcl_tests
.c
platform/external/vboot_reference/tests/tlcl_tests.c
8,589
utf_8
9be99ab41390f193712d1e5ab228b97d
* * Tests for TPM lite library */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <tss/tcs.h> /* Don't use the vboot constants, since they conflict with the TCS lib */ #define VBOOT_REFERENCE_TSS_CONSTANTS_H_ #include "host_common.h" #include "test_common.h" #include "tlcl.h" ...
google
android
vb21_host_keyblock_tests
.c
platform/external/vboot_reference/tests/vb21_host_keyblock_tests.c
4,359
utf_8
ef01b3f4ca76fe6b6b81d4814502a1d2
* * Tests for host library vboot2 keyblock functions */ #include <stdio.h> #include <unistd.h> #include "2sysincludes.h" #include "2common.h" #include "2rsa.h" #include "vb2_common.h" #include "host_common.h" #include "host_key2.h" #include "host_keyblock2.h" #include "test_common.h" static void keyblock_tests(const...
google
android
vboot_api_kernel_tests
.c
platform/external/vboot_reference/tests/vboot_api_kernel_tests.c
9,113
utf_8
bdb0e1e90104877871cab3933ed7ca06
* * Tests for VbTryLoadKernel() */ #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "gbb_header.h" #include "load_kernel_fw.h" #include "rollback_index.h" #include "test_common.h" #include "utility.h" #include "vboot_api.h" #include "vboot_kernel.h" #define MAX_TEST_DISKS 10 #d...
google
android
vb20_api_tests
.c
platform/external/vboot_reference/tests/vb20_api_tests.c
11,648
utf_8
92d731890564925a980bee5754e12ce7
* * Tests for misc library */ #include <stdio.h> #include "2sysincludes.h" #include "2api.h" #include "2misc.h" #include "2nvstorage.h" #include "2rsa.h" #include "2secdata.h" #include "vb2_common.h" #include "test_common.h" /* Common context for tests */ static uint8_t workbuf[VB2_WORKBUF_RECOMMENDED_SIZE] __attri...
google
android
vboot_common2_tests
.c
platform/external/vboot_reference/tests/vboot_common2_tests.c
7,850
utf_8
852f6c81a2a72f11097dde02a03640ae
* * Tests for firmware image library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cryptolib.h" #include "file_keys.h" #include "host_common.h" #include "test_common.h" #include "vboot_common.h" static void VerifyPublicKeyToRSA(const VbPublicKey *orig_key) { RSAPublicK...
google
android
sha_tests
.c
platform/external/vboot_reference/tests/sha_tests.c
2,655
utf_8
d4fa58241eeeca69a655a8c806729c78
*/ /* FIPS 180-2 Tests for message digest functions. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cryptolib.h" #include "sha_test_vectors.h" int SHA1_tests(void) { int i, success = 1; uint8_t sha1_digest[SHA1_DIGEST_SIZE]; uint8_t* test_inputs[3]; test_inputs[0] =...
google
android
vb20_common3_tests
.c
platform/external/vboot_reference/tests/vb20_common3_tests.c
12,089
utf_8
244ba3a89ba57f0e15bdae3d0aee3092
* * Tests for firmware image library. */ #include <stdio.h> #include "2sysincludes.h" #include "2rsa.h" #include "file_keys.h" #include "host_common.h" #include "host_key.h" #include "host_keyblock.h" #include "host_signature.h" #include "vb2_common.h" #include "vboot_common.h" #include "test_common.h" static void r...
google
android
vboot_display_tests
.c
platform/external/vboot_reference/tests/vboot_display_tests.c
7,433
utf_8
72ce521c44dc637f31f56bf41116d8e9
* * Tests for firmware display library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "bmpblk_font.h" #include "gbb_header.h" #include "host_common.h" #include "region.h" #include "test_common.h" #include "vboot_common.h" #include "vboot_display.h" #include "vboot_kernel....
google
android
vboot_region_tests
.c
platform/external/vboot_reference/tests/vboot_region_tests.c
6,396
utf_8
f72cd7a5a64f112547287b8e66b8af7f
* * Tests for vboot region API */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "bmpblk_font.h" #include "gbb_header.h" #include "host_common.h" #include "rollback_index.h" #include "test_common.h" #include "vboot_common.h" #include "vboot_nvstorage.h" #include "vboot_struct...
google
android
vboot_nvstorage_test
.c
platform/external/vboot_reference/tests/vboot_nvstorage_test.c
7,621
utf_8
d51fb984481be90395e2452986fbc475
* * Tests for firmware NV storage library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "test_common.h" #include "vboot_common.h" #include "vboot_nvstorage.h" /* Single NV storage field to test */ typedef struct VbNvField { VbNvParam param; /* Parameter index ...
google
android
vb2_secdata_tests
.c
platform/external/vboot_reference/tests/vb2_secdata_tests.c
3,704
utf_8
1c9955c91afcb432e9d5be775f104666
* * Tests for firmware secure storage library. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "test_common.h" #include "vboot_common.h" #include "2common.h" #include "2api.h" #include "2misc.h" #include "2secdata.h" static void test_changed(struct vb2_context *ctx, int cha...
google
android
vb21_host_misc_tests
.c
platform/external/vboot_reference/tests/vb21_host_misc_tests.c
2,326
utf_8
d14410f1a6e0a69b260c5acb9d0849d6
* * Tests for host misc library vboot2 functions */ #include <unistd.h> #include "2sysincludes.h" #include "2common.h" #include "vb2_common.h" #include "host_common.h" #include "host_misc.h" #include "test_common.h" static void misc_tests(void) { TEST_EQ(roundup32(0), 0, "roundup32(0)"); TEST_EQ(roundup32(15), 16,...
google
android
vboot_api_kernel4_tests
.c
platform/external/vboot_reference/tests/vboot_api_kernel4_tests.c
5,976
utf_8
1e4a7833467e85b74655bf0a7d182822
* * Tests for vboot_api_kernel, part 4 - select and load kernel */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "gbb_header.h" #include "host_common.h" #include "load_kernel_fw.h" #include "rollback_index.h" #include "test_common.h" #include "vboot_audio.h" #include "vboot_common.h" #include "...
google
android
vb2_sha_tests
.c
platform/external/vboot_reference/tests/vb2_sha_tests.c
4,423
utf_8
225a126737fcc29e07c5d4cbe3c09f45
*/ /* FIPS 180-2 Tests for message digest functions. */ #include "2sysincludes.h" #include "2rsa.h" #include "2sha.h" #include "2return_codes.h" #include "sha_test_vectors.h" #include "test_common.h" static int vb2_digest(const uint8_t *buf, uint32_t size, enum vb2_hash_algorithm hash_alg, uint...
google
android
tpmtest_spaceperm
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_spaceperm.c
856
utf_8
7c47cb6785ba9938678bc6fe60d54bf5
*/ /* Test of space permissions retrieval. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "host_common.h" #include "tlcl.h" #include "tlcl_tests.h" #define PERMPPGL (TPM_NV_PER_PPWRITE | TPM_NV_PER_GLOBALLOCK) #define PERMPP TPM_NV_PER_PPWRITE int main(int argc, char** argv) { uint32_t perm;...
google
android
tpmtest_earlyextend
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_earlyextend.c
579
utf_8
33e329b515fefed8e2c3cf8ad4d06bee
*/ /* Test of early use of TPM_Extend. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "tlcl.h" #include "tlcl_tests.h" int main(int argc, char** argv) { uint8_t value_in[20]; uint8_t value_out[20]; TlclLibInit(); TPM_CHECK(TlclStartup()); TPM_CHECK(TlclContinueSelfTest()); TPM_CHEC...
google
android
tpmtest_writelimit
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_writelimit.c
1,358
utf_8
41378e76bff0f5e14030e79c9c659205
*/ /* Test of recovery when we hit the NVRAM write limit for an unowned TPM. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "host_common.h" #include "tlcl.h" #include "tlcl_tests.h" #define TPM_MAX_NV_WRITES_NOOWNER 64 int main(int argc, char** argv) { int i; uint32_t result; TlclLibInit...
google
android
startup
.c
platform/external/vboot_reference/tests/tpm_lite/startup.c
785
utf_8
1de16508d1f72ac8903b81ba95373732
*/ /* Only perform a TPM_Startup command. */ #include <stdio.h> #include "tlcl.h" int main(int argc, char** argv) { uint32_t result; TlclLibInit(); result = TlclStartup(); if (result != 0) { printf("tpm startup failed with 0x%x\n", result); } result = TlclGetFlags(NULL, NULL, NULL); if (result != 0)...
google
android
tpmtest_enable
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_enable.c
995
utf_8
b6d7bbe6e2981fd6abf7fc4559b268dc
*/ /* Testing: ownership testing code, ForceClear, and nvram write limit. */ #include <stdio.h> #include "host_common.h" #include "tlcl.h" #include "tlcl_tests.h" int main(int argc, char** argv) { uint8_t disable, deactivated; TlclLibInit(); TPM_CHECK(TlclStartupIfNeeded()); TPM_CHECK(TlclSelfTestFull()); T...
google
android
lock
.c
platform/external/vboot_reference/tests/tpm_lite/lock.c
533
utf_8
6f41bba23fdaea345676e2f511a396da
*/ /* Test of locking, to see if locks count as writes. (They should.) */ #include <stdio.h> #include <stdlib.h> #include "tlcl.h" #define INDEX0 0xda70 int main(int argc, char** argv) { TlclLibInit(); TlclStartup(); TlclSelfTestFull(); TlclAssertPhysicalPresence(); TlclWriteLock(INDEX0); printf("Locked ...
google
android
tpmtest_redefine_unowned
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_redefine_unowned.c
1,841
utf_8
22ac96d06aaa0e642549a616c7b1ce57
*/ /* Test of protection from space redefinition when an owner is NOT present. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "host_common.h" #include "tlcl.h" #include "tlcl_tests.h" int main(int argc, char** argv) { uint32_t perm; uint32_t x; TlclLibInit(); TPM_CHECK(TlclStartupIfNee...
google
android
readonly
.c
platform/external/vboot_reference/tests/tpm_lite/readonly.c
3,234
utf_8
0b5d2434c95383661f03b6f272211221
*/ /* This program mimicks the TPM usage from read-only firmware. It exercises * the TPM functionality needed in the read-only firmware. It is meant to be * integrated with the rest of the read-only firmware. It is also provided as * a test. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include...
google
android
tpmtest_globallock
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_globallock.c
1,555
utf_8
3e657615f8a1f04dc9f0043bcbc55919
*/ /* Test of two-stage locking using bGlobalLock and PP. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "host_common.h" #include "tlcl.h" #include "tlcl_tests.h" int main(int argc, char** argv) { uint32_t zero = 0; uint32_t x; TlclLibInit(); TPM_CHECK(TlclStartupIfNeeded()); TPM_CHE...
google
android
tpmtest_timing
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_timing.c
2,704
utf_8
b7014d48573b0508fbdf28274014fcac
*/ /* Timing test for various TPM operations. This is mostly a sanity check to * make sure the part doesn't have ridicolously bad timing on simple * operations. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <sys/time.h> #include <time.h> #include "tlcl.h" #include "tlcl_tests.h" #include "...
google
android
tpmtest_earlynvram2
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_earlynvram2.c
621
utf_8
131a26e8f8a666efa48a1724be28a183
*/ /* Test of early writing to the NVRAM. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "tlcl.h" #include "tlcl_tests.h" #include "utility.h" int main(int argc, char** argv) { uint32_t x; TlclLibInit(); TPM_CHECK(TlclStartup()); TPM_CHECK(TlclContinueSelfTest()); TPM_CHECK(TlclAsser...
google
android
tlcl_tests
.c
platform/external/vboot_reference/tests/tpm_lite/tlcl_tests.c
774
utf_8
c9bf73b54c9adc4278f3d531e1b2001b
*/ /* Shared code for tests. */ #include "sysincludes.h" #include "tlcl.h" #include "tlcl_tests.h" const char* resilient_startup = NULL; uint32_t TlclStartupIfNeeded(void) { static char* null_getenv = "some string"; /* just a unique address */ uint32_t result = TlclStartup(); if (resilient_startup == NULL) { ...
google
android
tpmtest_fastenable
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_fastenable.c
1,608
utf_8
d7c8756fbb10e271302f0f485161bc24
*/ /* Testing: ForceClear and behavior of disable and permanent deactivated flags. * * ForceClear sets the permanent disable and deactivated flags to their default * value of TRUE. The specs say nothing about STCLEAR flags, so they should be * left alone. This test checks that both flags may be reset without a r...
google
android
tpmtest_testsetup
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_testsetup.c
1,131
utf_8
e8ef036f206647a6fd4c4cf63320f916
*/ /* Create two spaces for uses in tests. OK if they already exist. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "tlcl.h" #include "tlcl_tests.h" #include "utility.h" int main(int argc, char** argv) { uint32_t perm; uint32_t result; uint32_t x; TlclLibInit(); TPM_CHECK(TlclStartu...
google
android
tpmtest_earlynvram
.c
platform/external/vboot_reference/tests/tpm_lite/tpmtest_earlynvram.c
643
utf_8
6525d43625d767b7eac607200b8f78ea
*/ /* Test of early writing to the NVRAM. */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include "tlcl.h" #include "tlcl_tests.h" #include "utility.h" #define INDEX0 0xcafe int main(int argc, char** argv) { uint32_t x; TlclLibInit(); TPM_CHECK(TlclStartup()); TPM_CHECK(TlclContinueSelfTest());...
google
android
test_not_really
.c
platform/external/vboot_reference/tests/futility/test_not_really.c
441
utf_8
84ee693c8a23dabbd8810d37a669c366
/* */ #include <stdio.h> #include "gbb_header.h" #include "test_common.h" int main(int argc, char *argv[]) { TEST_EQ(sizeof(GoogleBinaryBlockHeader), GBB_HEADER_SIZE, "sizeof(GoogleBinaryBlockHeader)"); TEST_EQ(0, 0, "Not Really A"); return !gTestSuccess; }
google
android
binary_editor
.c
platform/external/vboot_reference/tests/futility/binary_editor.c
932
utf_8
a5c426caca8ba77be898384bb620c0f9
/* * offset with the specified 8-bit values. * * There is NO conversion checking of the arguments. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { uint32_t offset, curpos, curarg; int c; if (argc < 3) { fprintf(stderr, "Need two or more args: OFFSET VAL [VAL......
google
android
bmpblk_font
.c
platform/external/vboot_reference/utility/bmpblk_font.c
5,656
utf_8
83c59ea20c5e7be6cbb7751abff9bb8f
#include <errno.h> #include <fcntl.h> #include <getopt.h> #include <limits.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "bmpblk_font.h" #include "image_types.h" #inclu...
google
android
signature_digest_utility
.c
platform/external/vboot_reference/utility/signature_digest_utility.c
1,473
utf_8
6590caa8b59e9b26f6e2d768ebfe752b
* * Utility that outputs the cryptographic digest of a contents of a * file in a format that can be directly used to generate PKCS#1 v1.5 * signatures via the "openssl" command line utility. */ #include <stdio.h> #include <stdlib.h> #include "file_keys.h" #include "host_common.h" #include "padding.h" #include "sig...
google
android
bmpblk_util
.c
platform/external/vboot_reference/utility/bmpblk_util.c
12,864
utf_8
3f3a2936c2eedfd650c673cb523a9386
#include <errno.h> #include <fcntl.h> #include <limits.h> #include <lzma.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "bmpblk_util.h" #include "eficompress.h" #include "vboot_api.h" // Re...
google
android
tlcl_generator
.c
platform/external/vboot_reference/utility/tlcl_generator.c
18,297
utf_8
02526d420809ac825d96f1513b7c6ac7
*/ /* This program generates partially filled TPM datagrams and other compile-time * constants (e.g. structure sizes and offsets). Compile this file---and ONLY * this file---with -fpack-struct. We take advantage of the fact that the * (packed) TPM structures layout (mostly) match the TPM request and response * d...
google
android
tpmc
.c
platform/external/vboot_reference/utility/tpmc.c
13,243
utf_8
c0317c108b78d6062e639ef989b1237a
* * TPM command utility. Runs simple TPM commands. Mostly useful when physical * presence has not been locked. * * The exit code is 0 for success, the TPM error code for TPM errors, and 255 * for other errors. */ #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <syslog.h>...
google
android
verify_data
.c
platform/external/vboot_reference/utility/verify_data.c
2,511
utf_8
c97d226b93de8512d9560d270b8715c3
*/ /* Routines for verifying a file's signature. Useful in testing the core * RSA verification implementation. */ #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "cryptolib.h" #include "file_keys.h" #include "veri...
google
android
dumpRSAPublicKey
.c
platform/external/vboot_reference/utility/dumpRSAPublicKey.c
4,699
utf_8
950a59cea582e1a6dbe3d10ee384a24e
*/ /* C port of DumpPublicKey.java from the Android Open source project with * support for additional RSA key sizes. (platform/system/core,git/libmincrypt * /tools/DumpPublicKey.java). Uses the OpenSSL X509 and BIGNUM library. */ #include <openssl/pem.h> #include <stdint.h> #include <string.h> #include <unistd.h> /...
google
android
efidecompress
.c
platform/external/vboot_reference/utility/efidecompress.c
23,149
utf_8
a4356274a6f5b3254f27cd647d103697
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: Decompress.c Abstract: Decompressor. Algorithm Ported from OPSD code (Decomp.asm) --*/ #include <errno.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/sta...
google
android
eficompress
.c
platform/external/vboot_reference/utility/eficompress.c
27,629
utf_8
86539955e83c7440534f3fe63232737d
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: EfiCompress.c Abstract: Compression routine. The compression algorithm is a mixture of LZ77 and Huffman coding. LZ77 transforms the source data into a sequence of Original Characters and Pointers to repeated strings. Th...
google
android
pad_digest_utility
.c
platform/external/vboot_reference/utility/pad_digest_utility.c
1,360
utf_8
80078503143e31aeb4e904d6266705a1
* * Utility for to generate a padded hash suitable for generating * PKCS#1.5 signatures. */ #include <stdio.h> #include <stdlib.h> #include "file_keys.h" #include "host_common.h" #include "padding.h" #include "signature_digest.h" int main(int argc, char* argv[]) { int algorithm = -1; int error_code = 0; uint8...
google
android
tpm_init_temp_fix
.c
platform/external/vboot_reference/utility/tpm_init_temp_fix.c
2,408
utf_8
659ef6d16c02c4f50e8e3604f4598eb4
* * Temporary fix for running the TPM selftest and other essential * intializations that we forgot to put in the BIOS. * * This works in a very specific situation: we assume TPM_Startup has been * executed, but we don't know if the self test has run. On a ST TPM version * 1.2.7.0, GetCapabilities fails before t...
google
android
crossystem
.c
platform/external/vboot_reference/utility/crossystem.c
10,440
utf_8
57809c2f07a96c946e680ed07adb054a
* * Chrome OS firmware/system interface utility */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "crossystem.h" /* * Call arch specific init, if provided, otherwise use the 'weak' stub. */ int __VbArchInit(void) { return 0; } int VbArchInit(void) __attribute__((weak, alias("__VbArchInit"))); ...
google
android
load_kernel_test
.c
platform/external/vboot_reference/utility/load_kernel_test.c
7,742
utf_8
5fe715d91a1a4264af8796395680d4f8
*/ /* Routines for verifying a file's signature. Useful in testing the core * RSA verification implementation. */ #include <inttypes.h> /* For PRIu64 macro */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include "gbb_header.h" #include "host_common.h" #inclu...
google
android
image_types
.c
platform/external/vboot_reference/utility/image_types.c
2,121
utf_8
96d24d2eab5404647e74fe644b82a651
#include <stdint.h> #include <string.h> #include "bmpblk_header.h" #include "bmpblk_font.h" #include "image_types.h" /* BMP header, used to validate image requirements * See http://en.wikipedia.org/wiki/BMP_file_format */ typedef struct { uint8_t CharB; // must be 'B' uint8_t CharM;...
google
android
cgpt_legacy
.c
platform/external/vboot_reference/cgpt/cgpt_legacy.c
1,422
utf_8
09d293528d695508360301450aa781ac
#include <string.h> #include "cgpt.h" #include "cgptlib_internal.h" #include "vboot_host.h" int CgptLegacy(CgptLegacyParams *params) { struct drive drive; GptHeader *h1, *h2; if (params == NULL) return CGPT_FAILED; if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR, param...
google
android
cgpt_find
.c
platform/external/vboot_reference/cgpt/cgpt_find.c
8,054
utf_8
1b5d16007e45b51f1742bd9184ee7629
#include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "cgpt.h" #include "cgpt_nor.h" #include "cgptlib_internal.h" #include "vboot_host.h" #define BUFSIZE 1024 // FIXME: currently we only support 512-byte sectors. #define LBA_SIZE 512 // fill comparebuf with the data to be examin...
google
android
cgpt_prioritize
.c
platform/external/vboot_reference/cgpt/cgpt_prioritize.c
5,928
utf_8
db5a115a2684423dce60e1688b852411
#include <string.h> #include "cgpt.h" #include "cgptlib_internal.h" #include "vboot_host.h" ////////////////////////////////////////////////////////////////////////////// // We need a sorted list of priority groups, where each element in the list // contains an unordered list of GPT partition numbers. #define MAX_GROUP...
google
android
cgpt_create
.c
platform/external/vboot_reference/cgpt/cgpt_create.c
4,359
utf_8
a19a0a2db2843bd5411d19aaaf09f6ae
#include <string.h> #include "cgpt.h" #include "cgptlib_internal.h" #include "vboot_host.h" static void AllocAndClear(uint8_t **buf, uint64_t size) { if (*buf) { memset(*buf, 0, size); } else { *buf = calloc(1, size); if (!*buf) { Error("Cannot allocate %lu bytes.\n", size); abort(); } ...
google
android
cmd_prioritize
.c
platform/external/vboot_reference/cgpt/cmd_prioritize.c
3,448
utf_8
633b199a0715b2f81232f70569207641
#include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <uuid/uuid.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s prioritize [OPTIONS] DRIVE\n\n" "Reorder the priority of all active ChromeOS Kernel partit...
google
android
cgpt_wrapper
.c
platform/external/vboot_reference/cgpt/cgpt_wrapper.c
4,549
utf_8
0f1b46ad4a86d11fa6a55ccb6f78ce21
* * This utility wraps around "cgpt" execution to work with NAND. If the target * device is an MTD device, this utility will read the GPT structures from * FMAP, invokes "cgpt" on that, and writes the result back to NOR flash. */ #include <err.h> #include <errno.h> #include <fcntl.h> #include <inttypes.h> #include ...
google
android
cgpt_repair
.c
platform/external/vboot_reference/cgpt/cgpt_repair.c
1,123
utf_8
788631cf80c3010a869c023746ddec15
#include <string.h> #include "cgpt.h" #include "cgptlib_internal.h" #include "vboot_host.h" int CgptRepair(CgptRepairParams *params) { struct drive drive; if (params == NULL) return CGPT_FAILED; if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR, params->drive_size)) re...
google
android
cmd_boot
.c
platform/external/vboot_reference/cgpt/cmd_boot.c
2,267
utf_8
f82621121f9e007fbdf722fa50df6dde
#include <getopt.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s boot [OPTIONS] DRIVE\n\n" "Edit the PMBR sector for legacy BIOSes\n\n" "Options:\n" " -D NUM Size (in bytes) of the disk where ...
google
android
cgpt_common
.c
platform/external/vboot_reference/cgpt/cgpt_common.c
33,340
utf_8
16ae06cfe6fc1ea352ae14ed8fbb61eb
* * Utility for ChromeOS-specific GPT partitions, Please see corresponding .c * files for more details. */ #include <errno.h> #include <fcntl.h> #include <getopt.h> #ifndef HAVE_MACOS #include <linux/major.h> #include <mtd/mtd-user.h> #endif #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdli...
google
android
cmd_repair
.c
platform/external/vboot_reference/cgpt/cmd_repair.c
1,670
utf_8
47bed46abc89ba0dbb318fd556849969
#include <getopt.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s repair [OPTIONS] DRIVE\n\n" "Repair damaged GPT headers and tables.\n\n" "Options:\n" " -D NUM Size (in bytes) of the disk wher...
google
android
cmd_create
.c
platform/external/vboot_reference/cgpt/cmd_create.c
2,123
utf_8
06975acba8dc09a4044084e8e9b6ea3a
#include <getopt.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s create [OPTIONS] DRIVE\n\n" "Create or reset an empty GPT.\n\n" "Options:\n" " -D NUM Size (in bytes) of the disk where partiti...
google
android
cgpt_add
.c
platform/external/vboot_reference/cgpt/cgpt_add.c
9,250
utf_8
2ff1aadfcf725ae4160bb12e935912de
#include <string.h> #define _STUB_IMPLEMENTATION_ #include "cgpt.h" #include "cgpt_params.h" #include "cgptlib_internal.h" #include "utility.h" #include "vboot_host.h" static const char* DumpCgptAddParams(const CgptAddParams *params) { static char buf[256]; char tmp[64]; buf[0] = 0; snprintf(tmp, sizeof(tmp), "...
google
android
cgpt_boot
.c
platform/external/vboot_reference/cgpt/cgpt_boot.c
3,934
utf_8
ec0d2207410adb7829a2b3cd415a2c81
#include <errno.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include "cgpt.h" #include "cgpt_params.h" #include "cgptlib_internal.h" #include "vboot_host.h" int CgptGetBootPartitionNumber(CgptBootParams *params) { struct drive drive; int gpt_retval= 0; int retval; if (params == NULL) retur...
google
android
cgpt_nor
.c
platform/external/vboot_reference/cgpt/cgpt_nor.c
6,106
utf_8
cef83a4e93177c284bc820a8f734cdb4
*/ #include <err.h> #include <errno.h> #include <fcntl.h> #include <ftw.h> #include <inttypes.h> #include <linux/major.h> #include <stdbool.h> #include <stdarg.h> #include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <...
google
android
cmd_add
.c
platform/external/vboot_reference/cgpt/cmd_add.c
5,022
utf_8
337294dba85ef03affa439c509e4ac1e
#include <getopt.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s add [OPTIONS] DRIVE\n\n" "Add, edit, or remove a partition entry.\n\n" "Options:\n" " -D NUM Size (in bytes) of the disk where ...
google
android
cmd_legacy
.c
platform/external/vboot_reference/cgpt/cmd_legacy.c
1,785
utf_8
1b2a033599ec61a07e3ed7389b0f9f5c
#include <getopt.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s legacy [OPTIONS] DRIVE\n\n" "Switch GPT header signature to \"CHROMEOS\".\n\n" "Options:\n" " -D NUM Size (in bytes) of the dis...
google
android
cmd_find
.c
platform/external/vboot_reference/cgpt/cmd_find.c
4,520
utf_8
b6b9e2bf0a23654c09f6db8968124247
#include <getopt.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s find [OPTIONS] [DRIVE]\n\n" "Find a partition by its UUID or label. With no specified DRIVE\n" "it scans all physical drives.\n\n" "Op...
google
android
cmd_show
.c
platform/external/vboot_reference/cgpt/cmd_show.c
3,014
utf_8
eadc04027b87251c36b6aa52ab32f034
#define __STDC_FORMAT_MACROS #include <getopt.h> #include <inttypes.h> #include <string.h> #include "cgpt.h" #include "vboot_host.h" extern const char* progname; static void Usage(void) { printf("\nUsage: %s show [OPTIONS] DRIVE\n\n" "Display the GPT table\n\n" "Options:\n" " -D NUM ...
google
android
cgpt_show
.c
platform/external/vboot_reference/cgpt/cgpt_show.c
12,016
utf_8
394d71f36e110ec906d55ddf8fe5cd92
#define __STDC_FORMAT_MACROS #include <string.h> #include "cgpt.h" #include "cgptlib_internal.h" #include "crc32.h" #include "vboot_host.h" /* Generate output like: * * [AB-CD-EF-01] for group = 1 * [ABCD-EF01] for group = 3 (low byte first) * * Needs (size*3-1+3) bytes of space in 'buf' (included the tai...
google
android
cgpt
.c
platform/external/vboot_reference/cgpt/cgpt.c
2,404
utf_8
1a1e5d94b0a18cbf69813db84c5d9801
* * Utility for ChromeOS-specific GPT partitions, Please see corresponding .c * files for more details. */ #include <stdio.h> #include <string.h> #include <unistd.h> #include <uuid/uuid.h> #include "cgpt.h" #include "vboot_host.h" const char* progname; int GenerateGuid(Guid *newguid) { /* From libuuid */ uuid_g...
google
android
cmd_vbutil_firmware
.c
platform/external/vboot_reference/futility/cmd_vbutil_firmware.c
9,769
utf_8
b0e260ec8c481a456b22b0f21a877e13
* * Verified boot firmware utility */ #include <getopt.h> #include <inttypes.h> /* For PRIu64 */ #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "cryptolib.h" #include "futility.h" #include "host_common.h" #include "kernel_blob.h" #include "util_misc.h" #include "vboot_common...
google
android
misc
.c
platform/external/vboot_reference/futility/misc.c
7,737
utf_8
346a33c17b5b654b820e7633730530ff
/* */ #include <errno.h> #ifndef HAVE_MACOS #include <linux/fs.h> /* For BLKGETSIZE64 */ #endif #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <u...
google
android
futility
.c
platform/external/vboot_reference/futility/futility.c
8,046
utf_8
dd3344c3f36d4dcdd842e50d2123d720
/* */ #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include "futility.h" /******************************************************************************/ /* Logging ...
google
android
vb1_helper
.c
platform/external/vboot_reference/futility/vb1_helper.c
23,656
utf_8
82189f699cf4ea4231ca8093b4f7745a
/* */ #include <errno.h> #include <inttypes.h> /* For PRIu64 */ #include <stdio.h> #include <string.h> #include <unistd.h> #include <openssl/rsa.h> #include "file_type.h" #include "futility.h" #include "host_common.h" #include "kernel_blob.h" #include "util_misc.h" #include "vb1_helper.h" /***************************...