Home
last modified time | relevance | path

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

12

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java38 import javax.crypto.Cipher;
57 private Cipher mEncryptCipher;
76 mEncryptCipher = Cipher.getInstance(CIPHER_ALGORITHM); in WifiConfigStoreEncryptionUtil()
103 mEncryptCipher.init(Cipher.ENCRYPT_MODE, mSecretKeyReference); in encrypt()
131 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt()
134 cipher.init(Cipher.DECRYPT_MODE, mSecretKeyReference, spec); in decrypt()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/util/encryption/
DCryptorMicImp.java37 import javax.crypto.Cipher;
140 Cipher cipher; in encrypt()
142 cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt()
161 cipher.init(Cipher.ENCRYPT_MODE, secretKey, new IvParameterSpec(iv)); in encrypt()
182 Cipher cipher; in decrypt()
184 cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt()
198 cipher.init(Cipher.DECRYPT_MODE, secretKey, new IvParameterSpec(iv)); in decrypt()
/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/Virtualization/libs/bssl/tests/
Daead_test.rs62 ReasonCode::Cipher(CipherError::InvalidNonceSize), in aes_256_gcm_fails_to_encrypt_with_invalid_nonce()
80 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_with_wrong_key()
97 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_with_different_ad()
114 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_with_different_nonce()
132 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_corrupted_ciphertext()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DCryptUtils.java31 import javax.crypto.Cipher;
65 Cipher cipher = Cipher.getInstance(TRANSFORMATION); in encrypt()
66 cipher.init(Cipher.ENCRYPT_MODE, getSecretKey()); in encrypt()
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java53 import javax.crypto.Cipher;
593 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt()
597 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt()
647 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt()
653 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java79 import javax.crypto.Cipher;
857 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encryptData()
858 cipher.init(Cipher.ENCRYPT_MODE, secretKey); in encryptData()
880 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decryptData()
882 cipher.init(Cipher.DECRYPT_MODE, secretKey, spec); in decryptData()
/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/services/Car/service/src/com/android/car/bluetooth/
DFastPairGattServer.java65 import javax.crypto.Cipher;
624 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt()
625 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec); in encrypt()
646 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt()
647 cipher.init(Cipher.DECRYPT_MODE, secretKeySpec); in decrypt()
/packages/modules/Virtualization/microdroid_manager/src/
Dinstance.rs41 use openssl::symm::{decrypt_aead, encrypt_aead, Cipher};
145 let cipher = Cipher::aes_256_gcm(); in read_microdroid_data()
191 let cipher = Cipher::aes_256_gcm(); in write_microdroid_data()
/packages/modules/Virtualization/libs/bssl/error/src/
Dcode.rs27 Cipher(CipherError), enumerator
98 ReasonCode::Cipher(e) in from()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppUtils.java49 import javax.crypto.Cipher;
392 Cipher cipher = Cipher.getInstance(AES_CBC_PKCS7_PADDING); in isUnlockedWithinSeconds()
393 cipher.init(Cipher.ENCRYPT_MODE, generateSecretKey(keyStoreAlias, seconds)); in isUnlockedWithinSeconds()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairGattServerTest.java70 import javax.crypto.Cipher;
466 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt()
467 cipher.init(Cipher.ENCRYPT_MODE, key); in encrypt()
477 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt()
478 cipher.init(Cipher.DECRYPT_MODE, key); in decrypt()
/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/IPsec/src/java/com/android/internal/net/eap/message/simaka/
DEapSimAkaAttribute.java39 import javax.crypto.Cipher;
1277 this.encrData = doCipherOperation(plainData, key, iv, Cipher.ENCRYPT_MODE); in AtEncrData()
1296 byte[] decryptedEncr = doCipherOperation(encrData, key, iv, Cipher.DECRYPT_MODE); in getDecryptedData()
1302 Cipher cipherAlgorithm; in doCipherOperation()
1304 cipherAlgorithm = Cipher.getInstance(CIPHER_ALGORITHM); in doCipherOperation()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiAnnotations.java145 public @interface Cipher {} annotation in WifiAnnotations
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java119 import javax.crypto.Cipher;
736 Cipher cipher = mock(Cipher.class); in getEncryptedIdentity_WithRfc4648()
750 Cipher.class).startMocking(); in getEncryptedIdentity_WithRfc4648()
752 lenient().when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentity_WithRfc4648()
803 Cipher cipher = mock(Cipher.class); in getEncryptedIdentityFailed()
808 Cipher.class).startMocking(); in getEncryptedIdentityFailed()
810 lenient().when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentityFailed()
/packages/modules/Virtualization/libs/bssl/src/
Derr.rs140 bssl_sys::ERR_LIB_CIPHER => map_cipher_reason_code(reason).map(ReasonCode::Cipher), in map_library_reason_code()
/packages/modules/AdServices/adservices/libraries/cobalt/proto/
Dencrypted_message.proto46 // Hybrid Cipher using elliptic curve Diffie-Hellman, version 1.

12