Searched refs:cipher (Results 1 - 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | CryptoHelper.java | 27 private static final String KEY_CIPHER = "cipher"; 63 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); 64 cipher.init(Cipher.ENCRYPT_MODE, mEncryptionKey); 65 byte[] encryptedBytes = cipher.doFinal(clearBytes); 66 byte[] iv = cipher.getIV(); 89 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); 90 cipher.init(Cipher.DECRYPT_MODE, mEncryptionKey, ivSpec); 91 byte[] decryptedBytes = cipher.doFinal(encryptedBytes); 115 private byte[] createMac(@NonNull byte[] cipher, @NonNull byte[] iv) throws GeneralSecurityException { argument 118 mac.update(cipher); [all...] |
/frameworks/base/services/core/java/com/android/server/locksettings/ |
H A D | SyntheticPasswordCrypto.java | 61 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" 63 cipher.init(Cipher.DECRYPT_MODE, key, new GCMParameterSpec(128, iv)); 64 return cipher.doFinal(ciphertext); 73 Cipher cipher = Cipher.getInstance( 76 cipher.init(Cipher.ENCRYPT_MODE, key); 77 byte[] ciphertext = cipher.doFinal(blob); 78 byte[] iv = cipher.getIV();
|
H A D | LockSettingsService.java | 1047 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" 1050 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, new GCMParameterSpec(128, iv)); 1051 decryptionResult = cipher.doFinal(encryptedPassword); 1356 Cipher cipher = Cipher.getInstance( 1359 cipher.init(Cipher.ENCRYPT_MODE, keyStoreEncryptionKey); 1360 encryptionResult = cipher.doFinal(randomLockSeed); 1361 iv = cipher.getIV();
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | InformationElementUtil.java | 452 // group data cipher suite 455 // pairwise cipher suite count 458 // pairwise cipher suite list 505 private static int parseWpaCipher(int cipher) { argument 506 switch (cipher) { 514 Log.w("IE_Capabilities", "Unknown WPA cipher suite: " 515 + Integer.toHexString(cipher)); 520 private static int parseRsnCipher(int cipher) { argument 521 switch (cipher) { 531 Log.w("IE_Capabilities", "Unknown RSN cipher suit 703 cipherToString(int cipher) argument [all...] |
/frameworks/support/compat/java/android/support/v4/hardware/fingerprint/ |
H A D | FingerprintManagerCompat.java | 205 public CryptoObject(Cipher cipher) { argument 206 mCipher = cipher;
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
H A D | FingerprintManager.java | 238 public CryptoObject(@NonNull Cipher cipher) { argument 239 mCrypto = cipher;
|
Completed in 219 milliseconds