Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/security/keystore/recovery/
DKeyDerivationParams.java81 public static @NonNull KeyDerivationParams createSha256Params(@NonNull byte[] salt) { in createSha256Params()
94 public static @NonNull KeyDerivationParams createScryptParams( in createScryptParams()
102 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt) { in KeyDerivationParams()
109 private KeyDerivationParams(@KeyDerivationAlgorithm int algorithm, @NonNull byte[] salt, in KeyDerivationParams()
/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/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/services/backup/java/com/android/server/backup/encryption/chunking/cdc/
DHkdf.java51 static byte[] hkdf(byte[] masterKey, byte[] salt, byte[] data) throws InvalidKeyException { in hkdf()
71 private static byte[] hkdfSha256Extract(byte[] inputKeyMaterial, byte[] salt) in hkdfSha256Extract()
DFingerprintMixer.java59 public FingerprintMixer(SecretKey secretKey, byte[] salt) throws InvalidKeyException { in FingerprintMixer()
/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/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/services/tests/servicestests/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/libs/storage/
DObbInfo.cpp26 int32_t flags, size_t saltSize, const uint8_t* salt) : mFileName(fileName), in ObbInfo()
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java209 private BufferedDigester(@Nullable byte[] salt, @NonNull ByteBuffer output) in BufferedDigester()
307 SignatureInfo signatureInfo, byte[] salt, ByteBuffer output) in generateApkVerityDigestAtLeafLevel()
353 @Nullable SignatureInfo signatureInfo, @Nullable byte[] salt, in generateVerityTreeInternal()
387 byte[] salt) { in generateApkVerityHeader()
/frameworks/base/core/java/android/content/res/
DObbInfo.java58 public byte[] salt; field 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/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.java95 String macAlgorithm, final byte[] ikm, final byte[] salt, final byte[] info, int size) { in computeHkdf()
/frameworks/base/libs/androidfw/include/androidfw/
DObbFile.h84 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()
DSecureBox.java301 private static SecretKey hkdfDeriveKey(byte[] secret, byte[] salt, byte[] info) in hkdfDeriveKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockSyntheticPasswordManager.java98 protected byte[] scrypt(byte[] password, byte[] salt, int n, int r, int p, int outLen) { in scrypt()
/frameworks/base/native/android/
Dstorage_manager.cpp92 const unsigned char* salt = obbFile->getSalt(&length); in getObbInfo() local
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java224 byte[] salt; field in SyntheticPasswordManager.PasswordData
1195 protected byte[] scrypt(byte[] password, byte[] salt, int n, int r, int p, int outLen) { in scrypt()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java1291 long salt = getLong(LOCK_PASSWORD_SALT_KEY, 0, userId); in getSalt() local