/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/ |
D | CipherConverter.java | 41 import javax.crypto.Cipher; 78 Cipher cipher = getCipherInstance(); in decrypt() 89 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, new GCMParameterSpec(128, iv)); in decrypt() 130 Cipher cipher = getCipherInstance(); in encrypt() 131 cipher.init(Cipher.ENCRYPT_MODE, secretKey); in encrypt() 156 private Cipher getCipherInstance() in getCipherInstance() 158 return Cipher.getInstance( in getCipherInstance()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiConfigStoreEncryptionUtil.java | 38 import javax.crypto.Cipher; 87 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt() 90 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt() 121 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt() 125 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()
|
D | InformationElementUtil.java | 20 import android.net.wifi.WifiAnnotations.Cipher; 1079 private static @Cipher int parseWpaCipher(int cipher) { in parseWpaCipher() 1094 private static @Cipher int parseRsnCipher(int cipher) { in parseRsnCipher() 1374 private String cipherToString(@Cipher int cipher) { in cipherToString()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeCombinedModeCipher.java | 30 import javax.crypto.Cipher; 110 if (opmode == Cipher.ENCRYPT_MODE) outputLen += mChecksumLen; in doCipherAction() 124 Cipher.ENCRYPT_MODE == opmode in doCipherAction() 160 paddedData, additionalAuthData, keyBytes, ivBytes, Cipher.ENCRYPT_MODE); in encrypt() 189 Cipher.DECRYPT_MODE); in decrypt()
|
D | IkeNormalModeCipher.java | 28 import javax.crypto.Cipher; 94 Cipher.ENCRYPT_MODE == opmode in doCipherAction() 111 return doCipherAction(paddedData, keyBytes, ivBytes, Cipher.ENCRYPT_MODE); in encrypt() 129 return doCipherAction(encryptedData, keyBytes, ivBytes, Cipher.DECRYPT_MODE); in decrypt()
|
D | AesXCbcImpl.java | 28 import javax.crypto.Cipher; 44 private final Cipher mCipher; 53 mCipher = Cipher.getInstance(AES_CBC); in AesXCbcImpl() 147 Cipher.ENCRYPT_MODE, new SecretKeySpec(keyBytes, mCipher.getAlgorithm()), iv); in encryptAesBlock()
|
D | IkeCipher.java | 29 import javax.crypto.Cipher; 82 protected final Cipher mCipher; 98 mCipher = Cipher.getInstance(getAlgorithmName()); in IkeCipher()
|
D | IkeMacIntegrity.java | 31 import javax.crypto.Cipher;
|
D | IkeMacPrf.java | 31 import javax.crypto.Cipher;
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | PacketUtils.java | 36 import javax.crypto.Cipher; 607 final Cipher cipher = Cipher.getInstance(algoName); in getCipherText() 608 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCipherText() 650 final Cipher cipher = Cipher.getInstance(algoName); in getCipherText() 651 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCipherText() 690 final Cipher aesCipher = Cipher.getInstance(AES_CBC); in getIcv()
|
/packages/services/Car/service/src/com/android/car/ |
D | FastPairGattServer.java | 59 import javax.crypto.Cipher; 303 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt() 304 cipher.init(Cipher.ENCRYPT_MODE, mSharedSecretKey); in encrypt() 323 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt() 324 cipher.init(Cipher.DECRYPT_MODE, mSharedSecretKey); in decrypt()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 55 import javax.crypto.Cipher; 718 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt() 722 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt() 769 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt() 775 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | PacketUtils.java | 31 import javax.crypto.Cipher; 400 Cipher cipher = Cipher.getInstance(AES_CBC); in getCiphertext() 401 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCiphertext()
|
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/ |
D | SystemInterfaceTest.java | 76 import javax.crypto.Cipher; 306 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in testDecryptProtectedPayload() 308 Cipher.DECRYPT_MODE, in testDecryptProtectedPayload()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapMsChapV2MethodStateMachine.java | 69 import javax.crypto.Cipher; 585 Cipher des = Cipher.getInstance(DES_ALG); in desEncrypt() 586 des.init(Cipher.ENCRYPT_MODE, secretKey); in desEncrypt()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCarrierInfoManagerTest.java | 91 import javax.crypto.Cipher; 570 Cipher cipher = mock(Cipher.class); in getEncryptedIdentity_WithRfc4648() 584 Cipher.class).startMocking(); in getEncryptedIdentity_WithRfc4648() 586 when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentity_WithRfc4648() 613 Cipher cipher = mock(Cipher.class); in getEncryptedIdentityFailed() 618 Cipher.class).startMocking(); in getEncryptedIdentityFailed() 620 when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentityFailed()
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiAnnotations.java | 132 public @interface Cipher {} annotation in WifiAnnotations
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCarrierInfoManager.java | 83 import javax.crypto.Cipher; 875 Cipher cipher = Cipher.getInstance(IMSI_CIPHER_TRANSFORMATION); in encryptDataUsingPublicKey() 876 cipher.init(Cipher.ENCRYPT_MODE, key); in encryptDataUsingPublicKey()
|