Home
last modified time | relevance | path

Searched refs:Cipher (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DCipherConverter.java41 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/
DWifiConfigStoreEncryptionUtil.java38 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()
DInformationElementUtil.java20 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/
DIkeCombinedModeCipher.java30 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()
DIkeNormalModeCipher.java28 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()
DAesXCbcImpl.java28 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()
DIkeCipher.java29 import javax.crypto.Cipher;
82 protected final Cipher mCipher;
98 mCipher = Cipher.getInstance(getAlgorithmName()); in IkeCipher()
DIkeMacIntegrity.java31 import javax.crypto.Cipher;
DIkeMacPrf.java31 import javax.crypto.Cipher;
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java36 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/
DFastPairGattServer.java59 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/
DBluetoothKeystoreService.java55 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/
DPacketUtils.java31 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/
DSystemInterfaceTest.java76 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/
DEapMsChapV2MethodStateMachine.java69 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/
DWifiCarrierInfoManagerTest.java91 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/
DWifiAnnotations.java132 public @interface Cipher {} annotation in WifiAnnotations
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java83 import javax.crypto.Cipher;
875 Cipher cipher = Cipher.getInstance(IMSI_CIPHER_TRANSFORMATION); in encryptDataUsingPublicKey()
876 cipher.init(Cipher.ENCRYPT_MODE, key); in encryptDataUsingPublicKey()