Home
last modified time | relevance | path

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

/system/update_engine/payload_consumer/
Dpayload_verifier.cc114 brillo::Blob sig_data; in VerifySignature() local
120 sig_data.assign( in VerifySignature()
124 sig_data.assign(signature.data().begin(), signature.data().end()); in VerifySignature()
128 if (VerifyRawSignature(sig_data, sha256_hash_data, &sig_hash_data)) { in VerifySignature()
148 const brillo::Blob& sig_data, in VerifyRawSignature() argument
158 sig_data, public_key.get(), &sig_hash_data)) { in VerifyRawSignature()
183 sig_data.data(), in VerifyRawSignature()
184 sig_data.size(), in VerifyRawSignature()
199 const brillo::Blob& sig_data, in GetRawHashFromSignature() argument
210 if (sig_data.size() > 2 * keysize) { in GetRawHashFromSignature()
[all …]
Dpayload_verifier.h68 bool VerifyRawSignature(const brillo::Blob& sig_data,
81 bool GetRawHashFromSignature(const brillo::Blob& sig_data,
/system/update_engine/scripts/update_payload/
Dchecker_unittest.py320 sig_data, sig_asn1_header, argument
336 mock_payload_checker([], send_data=sig_data)
342 sig_data, 'foo', expected_signed_hash, 'bar'))
346 sig_data, 'foo', expected_signed_hash, 'bar')
350 sig_data = 'fake-signature'.ljust(256)
352 self.DoCheckSha256SignatureTest(True, True, sig_data,
358 sig_data = 'fake-signature' # Malformed (not 256 bytes in length).
360 self.DoCheckSha256SignatureTest(False, False, sig_data,
366 sig_data = 'fake-signature'.ljust(256)
368 self.DoCheckSha256SignatureTest(False, True, sig_data,
[all …]
Dchecker.py505 def _CheckSha256Signature(sig_data, pubkey_file_name, actual_hash, sig_name): argument
517 if len(sig_data) != 256:
520 (sig_name, len(sig_data)))
523 send_data=sig_data)
/system/update_engine/payload_generator/
Dpayload_signer_unittest.cc121 const string& sig_data = sig.data(); in TEST_F() local
122 ASSERT_EQ(base::size(kDataSignature), sig_data.size()); in TEST_F()
124 EXPECT_EQ(kDataSignature[i], static_cast<uint8_t>(sig_data[i])); in TEST_F()