Lines Matching defs:algorithm
169 // Historical and current algorithm names
1384 private SecretKey buildPasswordKey(String algorithm, String pw, byte[] salt, int rounds) {
1385 return buildCharArrayKey(algorithm, pw.toCharArray(), salt, rounds);
1388 private SecretKey buildCharArrayKey(String algorithm, char[] pwArray, byte[] salt, int rounds) {
1390 SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm);
1401 private String buildPasswordHash(String algorithm, String pw, byte[] salt, int rounds) {
1402 SecretKey key = buildPasswordKey(algorithm, pw, salt, rounds);
1430 private byte[] makeKeyChecksum(String algorithm, byte[] pwBytes, byte[] salt, int rounds) {
1436 Key checksum = buildCharArrayKey(algorithm, mkAsChar, salt, rounds);
1447 boolean passwordMatchesSaved(String algorithm, String candidatePw, int rounds) {
1456 String currentPwHash = buildPasswordHash(algorithm, candidatePw, mPasswordSalt, rounds);
3530 // line 4: name of encryption algorithm
3687 // line 4: name of encryption algorithm [currently only "none" or "AES-256"]
5693 InputStream attemptMasterKeyDecryption(String algorithm, byte[] userSalt, byte[] ckSalt,
5700 SecretKey userKey = buildPasswordKey(algorithm, mDecryptPassword, userSalt,
5726 byte[] calculatedCk = makeKeyChecksum(algorithm, mk, ckSalt, rounds);
5746 if (doLog) Slog.e(TAG, "Needed decryption algorithm unavailable!");
6856 Slog.w(TAG, "No SHA-256 algorithm found!");