Searched refs:cipher (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/accounts/
H A DCryptoHelper.java27 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/
H A DSyntheticPasswordCrypto.java61 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 DLockSettingsService.java900 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/"
903 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, new GCMParameterSpec(128, iv));
904 decryptionResult = cipher.doFinal(encryptedPassword);
1213 Cipher cipher = Cipher.getInstance(
1216 cipher.init(Cipher.ENCRYPT_MODE, keyStoreEncryptionKey);
1217 encryptionResult = cipher.doFinal(randomLockSeed);
1218 iv = cipher.getIV();
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
H A DInformationElementUtil.java452 // 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/api23/android/support/v4/hardware/fingerprint/
H A DFingerprintManagerCompatApi23.java145 public CryptoObject(Cipher cipher) { argument
146 mCipher = cipher;
/frameworks/support/compat/java/android/support/v4/hardware/fingerprint/
H A DFingerprintManagerCompat.java115 public CryptoObject(Cipher cipher) { argument
116 mCipher = cipher;
/frameworks/base/core/java/android/hardware/fingerprint/
H A DFingerprintManager.java228 public CryptoObject(@NonNull Cipher cipher) { argument
229 mCrypto = cipher;

Completed in 979 milliseconds