Home
last modified time | relevance | path

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

/system/update_engine/payload_consumer/
Dpayload_verifier.cc113 brillo::Blob sig_data; in VerifySignature() local
119 sig_data.assign( in VerifySignature()
123 sig_data.assign(signature.data().begin(), signature.data().end()); in VerifySignature()
127 if (VerifyRawSignature(sig_data, sha256_hash_data, &sig_hash_data)) { in VerifySignature()
147 const brillo::Blob& sig_data, in VerifyRawSignature() argument
157 sig_data, public_key.get(), &sig_hash_data)) { in VerifyRawSignature()
180 sig_data.data(), in VerifyRawSignature()
181 sig_data.size(), in VerifyRawSignature()
196 const brillo::Blob& sig_data, in GetRawHashFromSignature() argument
207 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/payload_generator/
Dpayload_signer_unittest.cc113 const string& sig_data = sig.data(); in TEST_F() local
114 ASSERT_EQ(base::size(kDataSignature), sig_data.size()); in TEST_F()
116 EXPECT_EQ(kDataSignature[i], static_cast<uint8_t>(sig_data[i])); in TEST_F()
/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.py507 def _CheckSha256Signature(sig_data, pubkey_file_name, actual_hash, sig_name): argument
519 if len(sig_data) != 256:
522 (sig_name, len(sig_data)))
525 send_data=sig_data)
/system/keymint/ta/src/
Dkeys.rs172 let sig_data = match info.as_ref() { in generate_cert() localVariable
177 let cert = cert::certificate(tbs_cert, &sig_data)?; in generate_cert()