Home
last modified time | relevance | path

Searched refs:challenge (Results 1 – 25 of 175) sorted by relevance

1234567

/hardware/interfaces/identity/aidl/vts/
DVtsAttestationTests.cpp70 string challenge = "0123456789abcdef0123456789abcdef"; in TEST_P() local
71 vector<uint8_t> attestationChallenge(challenge.begin(), challenge.end()); in TEST_P()
93 string challenge = "c"; in TEST_P() local
94 vector<uint8_t> attestationChallenge(challenge.begin(), challenge.end()); in TEST_P()
DUtil.h38 AttestationData(sp<IWritableIdentityCredential>& writableCredential, string challenge, in AttestationData()
43 if (!challenge.empty()) { in AttestationData()
44 attestationChallenge.assign(challenge.begin(), challenge.end()); in AttestationData()
DVtsIWritableIdentityCredentialTests.cpp93 string challenge = "NotSoRandomChallenge1NotSoRandomChallenge1NotSoRandomChallenge1"; in TEST_P() local
94 vector<uint8_t> attestationChallenge(challenge.begin(), challenge.end()); in TEST_P()
144 string challenge = "NotSoRandomChallenge1NotSoRandomChallenge1NotSoRandomChallenge1"; in TEST_P() local
145 vector<uint8_t> attestationChallenge(challenge.begin(), challenge.end()); in TEST_P()
214 string challenge = "NotSoRandomChallenge1"; in TEST_P() local
215 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
400 string challenge = "NotSoRandomChallenge1"; in TEST_P() local
401 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
488 string challenge = "NotSoRandomChallenge"; in TEST_P() local
489 test_utils::AttestationData attData(writableCredential, challenge, in TEST_P()
[all …]
/hardware/interfaces/security/keymint/support/fuzzer/
Dkeymint_common.h87 std::string challenge = dataProvider->ConsumeRandomLengthString(kStringSize); in createAuthSetForAttestKey() local
97 .AttestationChallenge(challenge) in createAuthSetForAttestKey()
111 .AttestationChallenge(challenge) in createAuthSetForAttestKey()
130 std::string challenge = dataProvider->ConsumeRandomLengthString(kStringSize); in createAuthorizationSet() local
140 .AttestationChallenge(challenge) in createAuthorizationSet()
152 .AttestationChallenge(challenge) in createAuthorizationSet()
164 .AttestationChallenge(challenge) in createAuthorizationSet()
176 .AttestationChallenge(challenge) in createAuthorizationSet()
/hardware/interfaces/identity/aidl/default/
DFakeSecureHardwareProxy.cpp149 const vector<uint8_t>& challenge, const vector<uint8_t>& applicationId) { in createCredentialKey() argument
156 if (!eicProvisioningCreateCredentialKey(&ctx_, challenge.data(), challenge.size(), in createCredentialKey()
171 const vector<uint8_t>& challenge, const vector<uint8_t>& applicationId, in createCredentialKeyUsingRkp() argument
175 if (!eicProvisioningCreateCredentialKey(&ctx_, challenge.data(), challenge.size(), in createCredentialKeyUsingRkp()
528 uint64_t challenge; in createAuthChallenge() local
529 if (!eicPresentationCreateAuthChallenge(&ctx_, &challenge)) { in createAuthChallenge()
532 return challenge; in createAuthChallenge()
557 uint64_t challenge, uint64_t secureUserId, uint64_t authenticatorId, in setAuthToken() argument
565 return eicPresentationSetAuthToken(&ctx_, challenge, secureUserId, authenticatorId, in setAuthToken()
710 const string& docType, const vector<uint8_t>& challenge, bool includeChallenge, in deleteCredential() argument
[all …]
DFakeSecureHardwareProxy.h43 optional<vector<uint8_t>> createCredentialKey(const vector<uint8_t>& challenge,
47 const vector<uint8_t>& challenge, const vector<uint8_t>& applicationId,
161 bool setAuthToken(uint64_t challenge, uint64_t secureUserId, uint64_t authenticatorId,
197 const vector<uint8_t>& challenge,
202 const vector<uint8_t>& challenge,
/hardware/interfaces/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp160 void check_attestation_record(AttestationRecord attestation, const HidlBuf& challenge, in check_attestation_record() argument
168 EXPECT_EQ(challenge, attestation.attestation_challenge); in check_attestation_record()
267 HidlBuf challenge("challenge"); in TEST_P() local
272 .Authorization(TAG_ATTESTATION_CHALLENGE, challenge) in TEST_P()
289 attestation, challenge, in TEST_P()
314 HidlBuf challenge("challenge"); in TEST_P() local
319 .Authorization(TAG_ATTESTATION_CHALLENGE, challenge) in TEST_P()
336 attestation, challenge, in TEST_P()
373 HidlBuf challenge("challenge"); in TEST_P() local
378 .Authorization(TAG_ATTESTATION_CHALLENGE, challenge) in TEST_P()
[all …]
/hardware/interfaces/security/keymint/aidl/vts/functional/
DSecureElementProvisioningTest.cpp209 array<uint8_t, 16> challenge; in TEST_F() local
210 Status result = tee->getRootOfTrustChallenge(&challenge); in TEST_F()
258 array<uint8_t, 16> challenge; in TEST_F() local
259 Status result = sb->getRootOfTrustChallenge(&challenge); in TEST_F()
322 array<uint8_t, 16> challenge; in TEST_F() local
323 Status result = sb->getRootOfTrustChallenge(&challenge); in TEST_F()
327 result = tee->getRootOfTrust(challenge, &rootOfTrust); in TEST_F()
360 array<uint8_t, 16> challenge; in TEST_F() local
361 Status result = sb->getRootOfTrustChallenge(&challenge); in TEST_F()
371 result = tee->getRootOfTrust(challenge, &rootOfTrust); in TEST_F()
DAuthTest.cpp172 std::optional<HardwareAuthToken> doVerify(uint32_t uid, uint64_t challenge, in doVerify() argument
178 Status status = gk_->verify(uid, challenge, handle, pwd, &rsp); in doVerify()
195 uid, challenge, handle, pwd, in doVerify()
218 authToken.challenge = hwAuthToken->challenge; in doVerify()
230 std::optional<HardwareAuthToken> doVerify(uint32_t uid, uint64_t challenge, in doVerify() argument
233 return doVerify(uid, challenge, handle, std::vector<uint8_t>(pwd.begin(), pwd.end())); in doVerify()
235 std::optional<HardwareAuthToken> doVerify(uint64_t challenge, in doVerify() argument
238 return doVerify(uid_, challenge, handle, pwd); in doVerify()
334 const uint64_t challenge = 42; in TEST_P() local
335 const std::optional<HardwareAuthToken> hat = doVerify(challenge, handle_, password_); in TEST_P()
[all …]
/hardware/interfaces/security/keymint/support/include/remote_prov/
Dremote_prov_utils.h162 IRemotelyProvisionedComponent* provisionable, const std::vector<uint8_t>& challenge);
170 IRemotelyProvisionedComponent* provisionable, const std::vector<uint8_t>& challenge);
178 IRemotelyProvisionedComponent* provisionable, const std::vector<uint8_t>& challenge);
184 IRemotelyProvisionedComponent* provisionable, const std::vector<uint8_t>& challenge);
/hardware/interfaces/gatekeeper/aidl/vts/functional/
DVtsHalGatekeeperTargetTest.cpp48 uint64_t challenge; member
52 GatekeeperRequest() : uid(0), challenge(0) {} in GatekeeperRequest()
87 ret = gatekeeper_->verify(uid_, req.challenge, req.curPwdHandle, req.newPwd, &rsp); in doVerify()
118 void checkVerify(GatekeeperVerifyResponse& rsp, Status& ret, uint64_t challenge, in checkVerify() argument
126 EXPECT_EQ(challenge, rsp.hardwareAuthToken.challenge); in checkVerify()
141 uint64_t challenge, GatekeeperVerifyResponse& verifyRsp, in verifyPassword() argument
149 verifyReq.challenge = challenge; in verifyPassword()
151 checkVerify(verifyRsp, ret, challenge, expectSuccess); in verifyPassword()
/hardware/nxp/keymint/KM300/
DJavacardRemotelyProvisionedComponentDevice.h70 const std::vector<uint8_t>& challenge,
75 const std::vector<uint8_t>& challenge,
82 const std::vector<uint8_t>& challenge, DeviceInfo* deviceInfo,
/hardware/interfaces/security/rkp/aidl/android/hardware/security/keymint/
DIRemotelyProvisionedComponent.aidl221 in byte[] endpointEncryptionCertChain, in byte[] challenge, out DeviceInfo deviceInfo, in generateCertificateRequest() argument
243 byte[] generateCertificateRequestV2(in MacedPublicKey[] keysToSign, in byte[] challenge); in generateCertificateRequestV2() argument
/hardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/current/android/hardware/biometrics/fingerprint/
DISessionCallback.aidl38 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
39 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument
/hardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/1/android/hardware/biometrics/fingerprint/
DISessionCallback.aidl37 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
38 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument
/hardware/interfaces/security/rkp/aidl/aidl_api/android.hardware.security.rkp/current/android/hardware/security/keymint/
DIRemotelyProvisionedComponent.aidl40 …ublicKey[] keysToSign, in byte[] endpointEncryptionCertChain, in byte[] challenge, out android.har… in generateCertificateRequest() argument
41 …teRequestV2(in android.hardware.security.keymint.MacedPublicKey[] keysToSign, in byte[] challenge); in generateCertificateRequestV2() argument
/hardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/4/android/hardware/biometrics/fingerprint/
DISessionCallback.aidl38 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
39 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument
/hardware/interfaces/security/rkp/aidl/aidl_api/android.hardware.security.rkp/3/android/hardware/security/keymint/
DIRemotelyProvisionedComponent.aidl40 …ublicKey[] keysToSign, in byte[] endpointEncryptionCertChain, in byte[] challenge, out android.har… in generateCertificateRequest() argument
41 …teRequestV2(in android.hardware.security.keymint.MacedPublicKey[] keysToSign, in byte[] challenge); in generateCertificateRequestV2() argument
/hardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/2/android/hardware/biometrics/fingerprint/
DISessionCallback.aidl37 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
38 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument
/hardware/interfaces/biometrics/fingerprint/aidl/aidl_api/android.hardware.biometrics.fingerprint/3/android/hardware/biometrics/fingerprint/
DISessionCallback.aidl38 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
39 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument
/hardware/interfaces/biometrics/fingerprint/aidl/android/hardware/biometrics/fingerprint/
DISessionCallback.aidl30 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
35 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument
/hardware/interfaces/biometrics/face/aidl/default/tests/
DFakeFaceEngineTest.cpp35 ndk::ScopedAStatus onChallengeGenerated(int64_t challenge) override { in onChallengeGenerated() argument
36 mLastChallenge = challenge; in onChallengeGenerated()
39 ::ndk::ScopedAStatus onChallengeRevoked(int64_t challenge) override { in onChallengeRevoked() argument
40 mLastChallengeRevoked = challenge; in onChallengeRevoked()
145 FaceHalProperties::challenge({}); in TearDown()
163 ASSERT_EQ(FaceHalProperties::challenge().value(), mCallback->mLastChallenge); in TEST_F()
167 auto challenge = FaceHalProperties::challenge().value_or(10); in TEST_F() local
168 mEngine.revokeChallengeImpl(mCallback.get(), challenge); in TEST_F()
169 ASSERT_FALSE(FaceHalProperties::challenge().has_value()); in TEST_F()
170 ASSERT_EQ(challenge, mCallback->mLastChallengeRevoked); in TEST_F()
/hardware/interfaces/identity/aidl/default/common/
DSecureHardwareProxy.h82 virtual optional<vector<uint8_t>> createCredentialKey(const vector<uint8_t>& challenge,
93 const vector<uint8_t>& challenge, const vector<uint8_t>& applicationId,
178 virtual bool setAuthToken(uint64_t challenge, uint64_t secureUserId, uint64_t authenticatorId,
216 const vector<uint8_t>& challenge,
221 const vector<uint8_t>& challenge,
/hardware/interfaces/gatekeeper/1.0/vts/functional/
DVtsHalGatekeeperV1_0TargetTest.cpp49 uint64_t challenge; member
53 GatekeeperRequest() : uid(0), challenge(0) {} in GatekeeperRequest()
101 uid_, req.challenge, req.curPwdHandle, req.newPwd, in doVerify()
148 void checkVerify(GatekeeperResponse &rsp, uint64_t challenge, in checkVerify() argument
156 EXPECT_EQ(challenge, auth_token->challenge); in checkVerify()
172 hidl_vec<uint8_t> &passwordHandle, uint64_t challenge, in verifyPassword() argument
180 verifyReq.challenge = challenge; in verifyPassword()
182 checkVerify(verifyRsp, challenge, expectSuccess); in verifyPassword()
/hardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/current/android/hardware/biometrics/face/
DISessionCallback.aidl38 void onChallengeGenerated(in long challenge); in onChallengeGenerated() argument
39 void onChallengeRevoked(in long challenge); in onChallengeRevoked() argument

1234567