Home
last modified time | relevance | path

Searched defs:salt (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/security/keystore/recovery/
DKeyDerivationParams.java80 public static @NonNull KeyDerivationParams createSha256Params(@NonNull byte[] salt) { in createSha256Params()
93 public static @NonNull KeyDerivationParams createScryptParams( in createScryptParams()
101 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt) { in KeyDerivationParams()
108 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt, in KeyDerivationParams()
/frameworks/base/core/java/android/service/displayhash/
DDisplayHashingService.java99 public abstract void onGenerateDisplayHash(@NonNull byte[] salt, in onGenerateDisplayHash()
122 public abstract VerifiedDisplayHash onVerifyDisplayHash(@NonNull byte[] salt, in onVerifyDisplayHash()
125 private void verifyDisplayHash(byte[] salt, DisplayHash displayHash, in verifyDisplayHash()
160 public void generateDisplayHash(byte[] salt, HardwareBuffer buffer, Rect bounds, in generateDisplayHash()
184 public void verifyDisplayHash(byte[] salt, DisplayHash displayHash, in verifyDisplayHash()
DIDisplayHashingService.aidl41 void generateDisplayHash(in byte[] salt, in HardwareBuffer buffer, in Rect bounds, in generateDisplayHash()
53 void verifyDisplayHash(in byte[] salt, in DisplayHash displayHash, in RemoteCallback callback); in verifyDisplayHash()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DPasswordUtils.java53 public static SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) { in buildPasswordKey()
67 public static String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) { in buildPasswordHash()
109 public static byte[] makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, in makeKeyChecksum()
120 private static SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, in buildCharArrayKey()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLockscreenCredentialTest.java270 String salt = "6d5331dd120077a0"; in testPasswordToHistoryHash() local
287 String salt = "6d5331dd120077a0"; in testPasswordToHistoryHashInvalidInput() local
314 String salt = "6d5331dd120077a0"; in testLegacyPasswordToHash() local
327 String salt = "6d5331dd120077a0"; in testLegacyPasswordToHashInvalidInput() local
/frameworks/base/core/java/android/security/
DScrypt.java26 native byte[] nativeScrypt(byte[] password, byte[] salt, int n, int r, int p, int outLen); in nativeScrypt()
29 public byte[] scrypt(byte[] password, byte[] salt, int n, int r, int p, int outLen) { in scrypt()
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java131 public static byte[] generateFsVerityRootHash(@NonNull String apkPath, byte[] salt, in generateFsVerityRootHash()
194 private BufferedDigester(@Nullable byte[] salt, @NonNull ByteBuffer output) in BufferedDigester()
272 @Nullable byte[] salt, ByteBuffer output) in generateFsVerityDigestAtLeafLevel()
293 SignatureInfo signatureInfo, byte[] salt, ByteBuffer output) in generateApkVerityDigestAtLeafLevel()
339 @Nullable byte[] salt, @NonNull int[] levelOffset, @NonNull ByteBuffer output) in generateFsVerityTreeInternal()
368 @Nullable SignatureInfo signatureInfo, @Nullable byte[] salt, in generateVerityTreeInternal()
397 byte[] salt) { in generateApkVerityHeader()
/frameworks/base/core/jni/
Dandroid_content_res_ObbScanner.cpp38 jfieldID salt; member
68 const unsigned char* salt = obb->getSalt(&saltLen); in android_content_res_ObbScanner_getObbInfo() local
Dandroid_security_Scrypt.cpp34 …urity_Scrypt_nativeScrypt(JNIEnv* env, jobject, jbyteArray password, jbyteArray salt, jint N, jint… in android_security_Scrypt_nativeScrypt()
/frameworks/base/core/java/com/android/internal/widget/
DLockscreenCredential.java305 public String passwordToHistoryHash(byte[] salt, byte[] hashFactor) { in passwordToHistoryHash()
313 byte[] passwordToHash, byte[] salt, byte[] hashFactor) { in passwordToHistoryHash()
339 public static String legacyPasswordToHash(byte[] password, byte[] salt) { in legacyPasswordToHash()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DBackupPasswordManagerTest.java193 private void writeV1HashToFile(String password, byte[] salt) throws Exception { in writeV1HashToFile()
199 private void writeHashAndSaltToFile(String hash, byte[] salt) throws Exception { in writeHashAndSaltToFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DMockScrypt.java31 public byte[] scrypt(byte[] password, byte[] salt, int n, int r, int p, int outLen) { in scrypt()
/frameworks/base/tools/obbtool/
Dpbkdf2gen.cpp51 unsigned char salt[SALT_LEN]; in main() local
DMain.cpp64 unsigned char salt[SALT_LEN]; member in PackageInfo
145 const unsigned char* salt = obb->getSalt(&saltLen); in doInfo() local
/frameworks/base/libs/storage/
DObbInfo.cpp26 int32_t flags, size_t saltSize, const uint8_t* salt) : mFileName(fileName), in ObbInfo()
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupPasswordManager.java253 public byte[] salt; field in BackupPasswordManager.BackupPasswordHash
255 BackupPasswordHash(String hash, byte[] salt) { in BackupPasswordHash()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommandDataLoader.java185 private Metadata(byte mode, String data, String salt) { in Metadata()
189 private Metadata(byte mode, byte[] data, String salt) { in Metadata()
203 final String salt; in fromByteArray() local
/frameworks/base/core/java/android/content/res/
DObbInfo.java59 public byte[] salt; field in ObbInfo
/frameworks/base/libs/androidfw/tests/
DObbFile_test.cpp68 unsigned char salt[SALT_SIZE] = {0x01, 0x10, 0x55, 0xAA, 0xFF, 0x00, 0x5A, 0xA5}; in TEST_F() local
/frameworks/base/identity/java/android/security/identity/
DUtil.java123 @NonNull String macAlgorithm, @NonNull final byte[] ikm, @NonNull final byte[] salt, in computeHkdf()
/frameworks/base/libs/androidfw/include/androidfw/
DObbFile.h80 bool setSalt(const unsigned char* salt, size_t length) { in setSalt()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncTask.java497 static byte[] hashCredentialsBySaltedSha256(byte[] salt, byte[] credentialsBytes) { in hashCredentialsBySaltedSha256()
517 private byte[] hashCredentialsByScrypt(byte[] salt, byte[] credentials) { in hashCredentialsByScrypt()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockSyntheticPasswordManager.java100 protected byte[] scrypt(byte[] password, byte[] salt, int n, int r, int p, int outLen) { in scrypt()
/frameworks/base/core/java/android/os/incremental/
DV4Signature.java53 @Nullable public final byte[] salt; // used exactly as in fs-verity, 32 bytes max field in V4Signature.HashingInfo
56 HashingInfo(int hashAlgorithm, byte log2BlockSize, byte[] salt, byte[] rawRootHash) { in HashingInfo()
/frameworks/base/libs/securebox/src/com/android/security/
DSecureBox.java305 private static SecretKey hkdfDeriveKey(byte[] secret, byte[] salt, byte[] info) in hkdfDeriveKey()

12