Home
last modified time | relevance | path

Searched refs:messageDigest (Results 1 – 15 of 15) sorted by relevance

/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpClient.java144 HkdfMessageDigestNativeRef messageDigest = in decryptObliviousHttpResponse() local
148 byte[] prk = extract(ohttpJniWrapper, messageDigest, secret, salt); in decryptObliviousHttpResponse()
154 ohttpJniWrapper.hkdfExpand(messageDigest, prk, keyContext, aead.keyLength()); in decryptObliviousHttpResponse()
159 ohttpJniWrapper.hkdfExpand(messageDigest, prk, nonceContext, aead.nonceLength()); in decryptObliviousHttpResponse()
227 HkdfMessageDigestNativeRef messageDigest, in extract() argument
231 ohttpJniWrapper.hkdfExtract(messageDigest, secret, salt); in extract()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DPackageUtils.java54 MessageDigest messageDigest; in computeSha256DigestBytes() local
56 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
62 messageDigest.update(data); in computeSha256DigestBytes()
64 return messageDigest.digest(); in computeSha256DigestBytes()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DMigrationUtils.java129 MessageDigest messageDigest; in computeSha256DigestBytes() local
131 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
135 messageDigest.update(data); in computeSha256DigestBytes()
137 return HexEncoding.encodeToString(messageDigest.digest(), /* uppercase= */ true); in computeSha256DigestBytes()
/packages/apps/Dialer/java/com/android/incallui/
DLog.java117 MessageDigest messageDigest; in secureHash() local
119 messageDigest = MessageDigest.getInstance("SHA-1"); in secureHash()
123 messageDigest.update(input); in secureHash()
124 byte[] result = messageDigest.digest(); in secureHash()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/
DCoverArt.java99 byte[] messageDigest = digest.digest(); in getImageHash()
102 for (int i = 0; i < messageDigest.length; i++) { in getImageHash()
103 hexString.append(Integer.toHexString(0xFF & messageDigest[i])); in getImageHash()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
DTranscriptionClientFactory.java104 MessageDigest messageDigest = MessageDigest.getInstance(DIGEST_ALGORITHM_SHA1); in getCertificateFingerprint() local
105 if (messageDigest == null) { in getCertificateFingerprint()
110 byte[] bytes = messageDigest.digest(packageInfo.signatures[0].toByteArray()); in getCertificateFingerprint()
/packages/modules/Permission/service/java/com/android/safetycenter/logging/
DSafetyCenterStatsdLogger.java412 MessageDigest messageDigest; in idStringToLong() local
414 messageDigest = MessageDigest.getInstance("MD5"); in idStringToLong()
419 messageDigest.update(id.getBytes()); in idStringToLong()
420 return new BigInteger(messageDigest.digest()).longValue(); in idStringToLong()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPreviewBitmapTransformation.java84 public void updateDiskCacheKey(MessageDigest messageDigest) { in updateDiskCacheKey() argument
85 messageDigest.update(getId().getBytes()); in updateDiskCacheKey()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DResourceAsset.java160 public void updateDiskCacheKey(MessageDigest messageDigest) { in updateDiskCacheKey() argument
161 messageDigest.update(getCacheKey().getBytes(CHARSET)); in updateDiskCacheKey()
DCurrentWallpaperAssetVN.java191 public void updateDiskCacheKey(MessageDigest messageDigest) { in updateDiskCacheKey() argument
192 messageDigest.update(getCacheKey().getBytes(CHARSET)); in updateDiskCacheKey()
DLiveWallpaperThumbAsset.java342 public void updateDiskCacheKey(MessageDigest messageDigest) { in updateDiskCacheKey() argument
343 messageDigest.update(getCacheKey().getBytes(CHARSET)); in updateDiskCacheKey()
/packages/apps/Dialer/java/com/android/dialer/simulator/service/
DSimulatorService.java175 MessageDigest messageDigest = MessageDigest.getInstance("MD5"); in hasAccessToService() local
180 return isCertificateValid(messageDigest.digest(signature.toByteArray()), this.certificates); in hasAccessToService()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsCompanionService.java179 MessageDigest messageDigest = null; in getPackageCertificateHash() local
181 messageDigest = MessageDigest.getInstance("SHA-256"); in getPackageCertificateHash()
189 messageDigest.update(signature.toByteArray()); in getPackageCertificateHash()
192 return messageDigest.digest(); in getPackageCertificateHash()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DBackupHelper.java1087 MessageDigest messageDigest; in computeSha256DigestBytes() local
1089 messageDigest = MessageDigest.getInstance("SHA256"); in computeSha256DigestBytes()
1094 messageDigest.update(data); in computeSha256DigestBytes()
1096 return messageDigest.digest(); in computeSha256DigestBytes()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java545 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); in readHashFile() local
548 messageDigest.update(dataBuffer, 0, bytesRead); in readHashFile()
551 byte[] messageDigestBytes = messageDigest.digest(); in readHashFile()