Home
last modified time | relevance | path

Searched refs:Signature (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DAllowListsTest.java32 import android.content.pm.Signature;
216 Signature signature1 = new Signature(sHexString1); in testSignatureAllowList_checkLatestSignature()
217 Signature signature2 = new Signature(sHexString2); in testSignatureAllowList_checkLatestSignature()
218 doReturn(new Signature[] {signature1, signature2}) in testSignatureAllowList_checkLatestSignature()
255 Signature signature1 = new Signature(sHexString1); in checkGetAppSignatureHashes()
256 doReturn(new Signature[] {signature1}) in checkGetAppSignatureHashes()
274 Signature signature1 = new Signature(sHexString1); in checkGetAppSignatureHashes_multipleSignatures()
275 Signature signature2 = new Signature(sHexString2); in checkGetAppSignatureHashes_multipleSignatures()
276 doReturn(new Signature[] {signature1, signature2}) in checkGetAppSignatureHashes_multipleSignatures()
/packages/modules/Virtualization/compos/compos_key_helper/
Dcompos_key.cpp28 using compos_key::Signature;
37 Result<Signature> sign(const PrivateKey& private_key, const uint8_t* data, size_t data_size) { in sign()
38 Signature result; in sign()
45 bool verify(const PublicKey& public_key, const Signature& signature, const uint8_t* data, in verify()
Dcompos_key.h30 using Signature = std::array<uint8_t, ED25519_SIGNATURE_LEN>; variable
39 android::base::Result<Signature> sign(const PrivateKey& private_key, const uint8_t* data,
42 bool verify(const PublicKey& public_key, const Signature& signature, const uint8_t* data,
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DSignedContextualAdsFixture.java35 import java.security.Signature;
165 Signature ecdsaSigner = getECDSASignatureInstance(); in signContextualAds()
181 private static Signature getECDSASignatureInstance() throws Exception { in getECDSASignatureInstance()
186 Signature ecdsaSign = Signature.getInstance("SHA256withECDSA"); in getECDSASignatureInstance()
/packages/modules/Virtualization/libs/apkverify/src/
Dv3.rs43 signatures: LengthPrefixed<Vec<LengthPrefixed<Signature>>>,
59 pub(crate) struct Signature { struct
115 pub(crate) fn strongest_signature(&self) -> Result<&Signature> { in strongest_signature() argument
134 fn verify_signature(&self, signature: &Signature) -> Result<()> { in verify_signature()
257 impl ReadFromBytes for Signature { implementation
259 Ok(Signature { signature_algorithm_id: buf.read()?, signature: buf.read()? }) in read_from_bytes()
/packages/services/Car/car-lib/src/android/car/content/pm/
DAppBlockingPackageInfo.java23 import android.content.pm.Signature;
80 public final Signature[] signatures;
89 @ConstructorFlags int flags, @Nullable Signature[] signatures, in AppBlockingPackageInfo()
108 signatures = in.createTypedArray(Signature.CREATOR); in AppBlockingPackageInfo()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthDigitalSignPayload.java39 import java.security.Signature;
215 Signature signGen = Signature.getInstance(signatureAlgoName); in IkeAuthDigitalSignPayload()
310 Signature signValidator = Signature.getInstance(signatureAndHashAlgos); in verifyInboundSignature()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DChecksumUtils.java22 import android.content.pm.Signature;
98 private List<byte[]> computeHashesOfAllSignatures(Signature[] signatures) { in computeHashesOfAllSignatures()
104 for (Signature signature : signatures) { in computeHashesOfAllSignatures()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/signature/
DECDSASignatureVerifier.java29 import java.security.Signature;
81 Signature ecdsa = Signature.getInstance(ECDSA_WITH_SHA256_SIGNING_ALGORITHM); in verify()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DVerifyRoleHolderPackageTaskTest.java33 import android.content.pm.Signature;
67 private static final Signature[] TEST_SIGNATURES = new Signature[] { new Signature("1986") };
DVerifyAdminPackageTaskTest.java35 import android.content.pm.Signature;
70 private static final Signature[] TEST_SIGNATURES = new Signature[] { new Signature("1986") };
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/signature/
DECDSASignatureVerifierTest.java39 import java.security.Signature;
67 Signature signature = Signature.getInstance(ECDSA_WITH_SHA256_SIGNING_ALGORITHM); in setup()
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp154 typedef std::pair<ANeuralNetworksOperationType, int> Signature; typedef
345 static Signature getSignature(const HidlModel& model, const V1_3::Operation& operation);
349 std::set<Signature> signatures);
510 Signature RandomPartitioningTest::getSignature(const HidlModel& model, in getSignature()
524 return Signature(operationType, -1); in getSignature()
533 return Signature(operationType, value); in getSignature()
555 TestDriver(const char* name, std::set<Signature> signatures) in TestDriver()
615 const std::set<Signature> mSignatures;
619 std::set<Signature> signatures) { in makeTestDriver()
714 std::set<Signature> signatures; in TEST_P()
[all …]
/packages/modules/Virtualization/libs/dice/open_dice/src/
Dops.rs21 Signature, HASH_SIZE, PRIVATE_KEY_SEED_SIZE, PRIVATE_KEY_SIZE, PUBLIC_KEY_SIZE, SIGNATURE_SIZE,
109 pub fn sign(message: &[u8], private_key: &[u8; PRIVATE_KEY_SIZE]) -> Result<Signature> { in sign() argument
130 pub fn verify(message: &[u8], signature: &Signature, public_key: &PublicKey) -> Result<()> { in verify() argument
/packages/modules/Bluetooth/system/gd/rust/linux/dbus_projection/tests/
Dconversions.rs7 use dbus::Signature;
53 fn signature(&self) -> dbus::Signature<'static> { in signature()
82 fn signature() -> dbus::Signature<'static> { in signature()
83 Signature::from("a{sv}") in signature()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DLibUtils.java26 import android.content.pm.Signature;
61 private static Signature[] sSystemSignature;
220 sSystemSignature = new Signature[]{getSystemSignature(pm)}; in isSystemPackage()
251 private static Signature getFirstSignature(PackageInfo pkg) { in getFirstSignature()
258 private static Signature getSystemSignature(PackageManager pm) { in getSystemSignature()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DAllowLists.java23 import android.content.pm.Signature;
158 Signature[] signatures = signingInfo.getSigningCertificateHistory(); in getAppSignatureHash()
171 Signature currentSignature = signatures[signatures.length - 1]; in getAppSignatureHash()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/vm_attestation/util/
DX509Utils.java27 import java.security.Signature;
138 Signature sig = Signature.getInstance("SHA256withECDSA"); in verifySignature()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DPackageManagerUtil.java23 import android.content.pm.Signature;
78 Signature[] signatures = packageInfo.signatures; in hasSigningCertificateBelowP()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DTestAppBlockingPolicyService.java23 import android.content.pm.Signature;
52 Signature[] signatures; in getAppBlockingPolicy()
/packages/modules/Virtualization/libs/apkverify/tests/data/
DREADME.md11 Verified using v2 scheme (APK Signature Scheme v2): false
12 Verified using v3 scheme (APK Signature Scheme v3): true
13 Verified using v4 scheme (APK Signature Scheme v4): false
/packages/modules/AppSearch/testing/appsindexertests/src/com/android/server/appsearch/appsindexer/
DTestUtils.java45 import android.content.pm.Signature;
63 public static final Signature FAKE_SIGNATURE = new Signature("deadbeef");
110 .thenReturn(new Signature[] {FAKE_SIGNATURE}); in createFakePackageInfo()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DAppBlockingPackageInfoTest.java24 import android.content.pm.Signature;
71 Signature[] signatures; in createInfoSelf()
/packages/apps/Dialer/java/com/android/dialer/oem/
DCequintPackageUtils.java22 import android.content.pm.Signature;
265 Signature[] signatures = packageInfo.signatures; in isCallerIdInstalled()
/packages/modules/OnDevicePersonalization/common/java/com/android/odp/module/common/
DPackageUtils.java32 import android.content.pm.Signature;
89 Signature[] signatures = in getCertDigest()

12345678910>>...12