Searched refs:cipher (Results 1 - 13 of 13) 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/core/java/android/hardware/biometrics/ |
H A D | CryptoObject.java | 39 public CryptoObject(@NonNull Cipher cipher) { argument 40 mCrypto = cipher;
|
H A D | BiometricPrompt.java | 250 public CryptoObject(@NonNull Cipher cipher) { argument 251 super(cipher);
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | WrappedKey.java | 68 Cipher cipher; 70 cipher = Cipher.getInstance(KEY_WRAP_CIPHER_ALGORITHM); 76 cipher.init(Cipher.WRAP_MODE, wrappingKey.getKey()); 79 encryptedKeyMaterial = cipher.wrap(key); 97 /*nonce=*/ cipher.getIV(), 190 Cipher cipher = Cipher.getInstance(KEY_WRAP_CIPHER_ALGORITHM); 205 cipher.init( 211 key = (SecretKey) cipher.unwrap(
|
H A D | SecureBox.java | 343 Cipher cipher; 345 cipher = Cipher.getInstance(ENC_ALG); 353 cipher.init(Cipher.DECRYPT_MODE, key, spec); 355 cipher.init(Cipher.ENCRYPT_MODE, key, spec); 362 cipher.updateAAD(aad); 363 return cipher.doFinal(text);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
H A D | RecoverableKeyGeneratorTest.java | 114 Cipher cipher = Cipher.getInstance(KEY_WRAP_ALGORITHM); 115 cipher.init(Cipher.DECRYPT_MODE, mDecryptKey.getKey(), 117 byte[] unwrappedMaterial = cipher.doFinal(wrappedKey.getKeyMaterial()); 128 Cipher cipher = Cipher.getInstance(KEY_WRAP_ALGORITHM); 129 cipher.init(Cipher.DECRYPT_MODE, mDecryptKey.getKey(), 131 byte[] unwrappedMaterial = cipher.doFinal(wrappedKey.getKeyMaterial());
|
H A D | WrappedKeyTest.java | 70 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); 71 cipher.init( 75 SecretKey unwrappedKey = (SecretKey) cipher.unwrap(
|
/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 | 1125 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" 1128 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, new GCMParameterSpec(128, iv)); 1129 decryptionResult = cipher.doFinal(encryptedPassword); 1438 Cipher cipher = Cipher.getInstance( 1441 cipher.init(Cipher.ENCRYPT_MODE, keyStoreEncryptionKey); 1442 encryptionResult = cipher.doFinal(randomLockSeed); 1443 iv = cipher.getIV();
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | InformationElementUtil.java | 461 // group data cipher suite 464 // pairwise cipher suite count 467 // pairwise cipher suite list 514 private static int parseWpaCipher(int cipher) { argument 515 switch (cipher) { 523 Log.w("IE_Capabilities", "Unknown WPA cipher suite: " 524 + Integer.toHexString(cipher)); 529 private static int parseRsnCipher(int cipher) { argument 530 switch (cipher) { 540 Log.w("IE_Capabilities", "Unknown RSN cipher suit 712 cipherToString(int cipher) argument [all...] |
H A D | TelephonyUtil.java | 114 Cipher cipher = Cipher.getInstance(IMSI_CIPHER_TRANSFORMATION); 115 cipher.init(Cipher.ENCRYPT_MODE, key); 116 byte[] encryptedBytes = cipher.doFinal(data);
|
/frameworks/support/compat/src/main/java/androidx/core/hardware/fingerprint/ |
H A D | FingerprintManagerCompat.java | 204 public CryptoObject(@NonNull Cipher cipher) { argument 205 mCipher = cipher;
|
/frameworks/base/core/java/android/hardware/fingerprint/ |
H A D | FingerprintManager.java | 121 public CryptoObject(@NonNull Cipher cipher) { argument 122 super(cipher);
|
Completed in 682 milliseconds