Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/tests/unit/
Dasn1_decoder_test.cpp27 asn1_context ctx(empty, sizeof(empty)); in TEST() local
29 ASSERT_EQ(nullptr, ctx.asn1_constructed_get()); in TEST()
30 ASSERT_FALSE(ctx.asn1_constructed_skip_all()); in TEST()
31 ASSERT_EQ(0, ctx.asn1_constructed_type()); in TEST()
32 ASSERT_EQ(nullptr, ctx.asn1_sequence_get()); in TEST()
33 ASSERT_EQ(nullptr, ctx.asn1_set_get()); in TEST()
34 ASSERT_FALSE(ctx.asn1_sequence_next()); in TEST()
38 ASSERT_FALSE(ctx.asn1_oid_get(&junk, &length)); in TEST()
39 ASSERT_FALSE(ctx.asn1_octet_string_get(&junk, &length)); in TEST()
44 asn1_context ctx(truncated, sizeof(truncated)); in TEST() local
[all …]
Dpackage_test.cpp90 SHA_CTX ctx; in TEST_F() local
91 SHA1_Init(&ctx); in TEST_F()
92 std::vector<HasherUpdateCallback> hashers{ std::bind(&SHA1_Update, &ctx, std::placeholders::_1, in TEST_F()
97 SHA1_Final(calculated_sha.data(), &ctx); in TEST_F()
/bootable/recovery/applypatch/
Dapplypatch.cpp365 SHA_CTX ctx; in GenerateTarget() local
366 SHA1_Init(&ctx); in GenerateTarget()
367 SinkFn sink = [&patched, &ctx](const unsigned char* data, size_t len) { in GenerateTarget()
368 SHA1_Update(&ctx, data, len); in GenerateTarget()
386 SHA1_Final(patched.sha1, &ctx); in GenerateTarget()
/bootable/recovery/install/
Dverifier.cpp72 asn1_context ctx(pkcs7_der, pkcs7_der_len); in read_pkcs7() local
74 std::unique_ptr<asn1_context> pkcs7_seq(ctx.asn1_sequence_get()); in read_pkcs7()
/bootable/recovery/updater/
Dblockimg.cpp2093 SHA_CTX ctx; in RangeSha1Fn() local
2094 SHA1_Init(&ctx); in RangeSha1Fn()
2112 SHA1_Update(&ctx, buffer.data(), BLOCKSIZE); in RangeSha1Fn()
2116 SHA1_Final(digest, &ctx); in RangeSha1Fn()