Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 10 of 10) sorted by relevance

/trusty/user/app/cast-auth/app/test-app/
Dmain.cc282 std::vector<uint8_t> signature(256); in TEST_F() local
283 auto status = _state->srv->SignHash(test_hash, &signature); in TEST_F()
285 ASSERT_EQ(signature.size(), sizeof(test_signature), "signature size"); in TEST_F()
286 for (unsigned int i = 0; i < signature.size(); ++i) { in TEST_F()
287 EXPECT_EQ(signature[i], test_signature[i], "signature diff"); in TEST_F()
301 std::vector<uint8_t> signature(256); in TEST_F() local
302 auto status = _state->srv->SignHash(test_hash, &signature); in TEST_F()
304 ASSERT_EQ(signature.size(), sizeof(test_signature), "signature size"); in TEST_F()
305 for (unsigned int i = 0; i < signature.size(); ++i) { in TEST_F()
306 EXPECT_EQ(signature[i], test_signature[i], "signature diff"); in TEST_F()
/trusty/user/app/confirmationui/src/
Dsecure_input_tracker.h54 const secure_input::Signature& signature,
60 const secure_input::Signature& signature,
Dtrusty_operation.cpp150 auto [in_msg, nCi, signature] = in extendedProtocolHook()
154 rc = input_tracker_.finalizeHandshake(nCi, signature, *hmacKey()); in extendedProtocolHook()
163 auto [in_msg, event, signature] = read(DeliverInputEvent(), in_cmd); in extendedProtocolHook()
168 event, signature, *hmacKey()); in extendedProtocolHook()
Dsecure_input_tracker.cpp93 const Signature& signature, in finalizeHandshake() argument
101 if (*hmac == signature) { in finalizeHandshake()
124 const Signature& signature, in processInputEvent() argument
147 if (!(*hmac == signature)) { in processInputEvent()
/trusty/user/app/gatekeeper/
Dtrusty_gatekeeper.h56 virtual void ComputePasswordSignature(uint8_t* signature,
65 virtual void ComputeSignature(uint8_t* signature,
Dtrusty_gatekeeper.cpp162 void TrustyGateKeeper::ComputePasswordSignature(uint8_t* signature, in ComputePasswordSignature() argument
173 ComputeSignature(signature, signature_length, key, key_length, in ComputePasswordSignature()
183 void TrustyGateKeeper::ComputeSignature(uint8_t* signature, in ComputeSignature() argument
196 memset(signature, 0, signature_length); in ComputeSignature()
197 memcpy(signature, buf, to_write); in ComputeSignature()
/trusty/user/app/cast-auth/app/
Dcast_auth_impl.h29 std::vector<uint8_t>* signature);
Dcast_auth_impl.cc115 std::vector<uint8_t>* signature) { in SignHash() argument
139 signature->resize(expected_size); in SignHash()
140 rc = RSA_private_encrypt(hash.size(), hash.data(), signature->data(), in SignHash()
/trusty/user/base/lib/hwbcc/common/
Dcommon.cpp176 const cppbor::Bstr* signature = bcc_entry->get(3)->asBstr(); in validate_bcc_entry() local
183 CHECK_NOT_NULL(signature); in validate_bcc_entry()
197 signature->value().data(), prev_key.data()); in validate_bcc_entry()
/trusty/user/base/lib/apploader_package/
Dcose.cpp176 std::vector<uint8_t> signature; in signEcDsaDigest() local
177 signature.resize(len); in signEcDsaDigest()
178 unsigned char* p = (unsigned char*)signature.data(); in signEcDsaDigest()
180 return signature; in signEcDsaDigest()
336 const uint8_t* signature, in checkEcDsaSignature() argument
340 BIGNUM_Ptr(BN_bin2bn(signature, kEcdsaValueSize, nullptr), BN_free); in checkEcDsaSignature()
347 BN_bin2bn(signature + kEcdsaValueSize, kEcdsaValueSize, nullptr), in checkEcDsaSignature()