From 5af4b1901dcc1b0654971415e3d8c12eb18b92fd Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Mon, 1 Aug 2016 11:31:43 -0700 Subject: Clean up verifier testcases. A Certificate is a pair of an RSAPublicKey and a particular hash. So v1 and v3 differ in the hash algorithm (SHA-1 vs SHA-256), similarly for v2 and v4. In verifier testcases, we used to load v1/v2 keys with an explicit argument of "sha256" to test the v3/v4 keys. This CL switches to loading v3/v4 keys directly and lets load_keys() to handle that, which is the actual flow we use in practice. Also remove the "fallback to v1 key" in the testcases, which is not the actual behavior. Bug: 30415901 Test: Run the verifier_test component test on device. Change-Id: I3a2baa64826f1b6c4c367a560090df384c4521bb --- tests/testdata/testkey_v5.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/testdata/testkey_v5.txt (limited to 'tests/testdata/testkey_v5.txt') diff --git a/tests/testdata/testkey_v5.txt b/tests/testdata/testkey_v5.txt new file mode 100644 index 000000000..72b4395d9 --- /dev/null +++ b/tests/testdata/testkey_v5.txt @@ -0,0 +1 @@ +v5 {32,{36,250,86,214,202,22,20,147,198,120,2,28,76,190,78,23,106,35,24,96,86,22,186,69,132,93,192,232,0,213,14,103},{222,154,23,13,125,130,22,76,146,185,140,159,138,255,105,143,32,16,27,72,175,145,141,121,233,184,77,24,217,141,132,181}} -- cgit v1.2.3