Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java360 public final EspCipher cipher; field in PacketUtils.EspHeader
389 EspCipher cipher, in EspHeader() argument
395 this.cipher = cipher; in EspHeader()
398 if (cipher instanceof EspCipherNull && auth instanceof EspAuthNull) { in EspHeader()
402 if (cipher instanceof EspAeadCipher && !(auth instanceof EspAuthNull)) { in EspHeader()
422 cipher instanceof EspAeadCipher ? ((EspAeadCipher) cipher).icvLen : auth.icvLen; in length()
424 payload.length, cipher.ivLen, cipher.blockSize, icvLen * 8); in length()
439 espPayloadBuffer.put(cipher.getCipherText(nextHeader, payload, spi, seqNum)); in addPacketBytes()
607 final Cipher cipher = Cipher.getInstance(algoName); in getCipherText() local
608 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCipherText()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java87 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt() local
90 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt()
91 encryptedData = new EncryptedData(cipher.doFinal(data), cipher.getIV()); in encrypt()
121 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt() local
125 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()
126 decryptedData = cipher.doFinal(encryptedData.getEncryptedData()); in decrypt()
DInformationElementUtil.java1585 private static @Cipher int parseWpaCipher(int cipher) { in parseWpaCipher() argument
1586 switch (cipher) { in parseWpaCipher()
1595 + Integer.toHexString(cipher)); in parseWpaCipher()
1600 private static @Cipher int parseRsnCipher(int cipher) { in parseRsnCipher() argument
1601 switch (cipher) { in parseRsnCipher()
1622 + Integer.toHexString(cipher)); in parseRsnCipher()
1882 private String cipherToString(@Cipher int cipher) { in cipherToString() argument
1883 switch (cipher) { in cipherToString()
/packages/modules/adb/pairing_auth/tests/
Daes_128_gcm_test.cpp28 std::unique_ptr<Aes128Gcm> cipher; in TEST() local
29 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(nullptr, 42)); }, ""); in TEST()
34 std::unique_ptr<Aes128Gcm> cipher; in TEST() local
35 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(material, 0)); }, ""); in TEST()
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/common/bluetooth/fastpair/
DAesEcbSingleBlockEncryption.java74 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in doEncryption() local
75 cipher.init(mode, new SecretKeySpec(secret, "AES")); in doEncryption()
76 return cipher.doFinal(data); in doEncryption()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java697 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt() local
701 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt()
703 .setEncryptedData(ByteString.copyFrom(cipher.doFinal(data.getBytes()))) in encrypt()
704 .setInitVector(ByteString.copyFrom(cipher.getIV())).build(); in encrypt()
748 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt() local
754 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()
755 decryptedDataBytes = cipher.doFinal(protobuf.getEncryptedData().toByteArray()); in decrypt()
/packages/services/Car/service/src/com/android/car/bluetooth/
DFastPairGattServer.java577 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt() local
578 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec); in encrypt()
579 return cipher.doFinal(data); in encrypt()
599 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt() local
600 cipher.init(Cipher.DECRYPT_MODE, secretKeySpec); in decrypt()
601 return cipher.doFinal(encryptedData); in decrypt()
/packages/apps/RemoteProvisioner/tests/unittests/src/com/android/remoteprovisioner/unittest/
DSystemInterfaceTest.java319 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in testDecryptProtectedPayload() local
320 cipher.init( in testDecryptProtectedPayload()
324 cipher.updateAAD(buildEncStructure(protectedHeaders, new byte[0])); in testDecryptProtectedPayload()
326 byte[] protectedData = cipher.doFinal(encryptedContent); in testDecryptProtectedPayload()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairGattServerTest.java466 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt() local
467 cipher.init(Cipher.ENCRYPT_MODE, key); in encrypt()
468 return cipher.doFinal(payload); in encrypt()
477 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt() local
478 cipher.init(Cipher.DECRYPT_MODE, key); in decrypt()
479 return cipher.doFinal(encrypted); in decrypt()
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
DPacketUtils.java400 Cipher cipher = Cipher.getInstance(AES_CBC); in getCiphertext() local
401 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCiphertext()
402 byte[] encrypted = cipher.doFinal(getByteArrayFromBuffer(paddedPayload)); in getCiphertext()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java590 Cipher cipher = mock(Cipher.class); in getEncryptedIdentity_WithRfc4648() local
606 lenient().when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentity_WithRfc4648()
607 when(cipher.doFinal(any(byte[].class))).thenReturn(permanentIdentity.getBytes()); in getEncryptedIdentity_WithRfc4648()
634 Cipher cipher = mock(Cipher.class); in getEncryptedIdentityFailed() local
641 lenient().when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentityFailed()
642 when(cipher.doFinal(any(byte[].class))).thenThrow(BadPaddingException.class); in getEncryptedIdentityFailed()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiCarrierInfoManager.java924 Cipher cipher = Cipher.getInstance(IMSI_CIPHER_TRANSFORMATION); in encryptDataUsingPublicKey() local
925 cipher.init(Cipher.ENCRYPT_MODE, key); in encryptDataUsingPublicKey()
926 byte[] encryptedBytes = cipher.doFinal(data); in encryptDataUsingPublicKey()
/packages/inputmethods/LatinIME/dictionaries/
Den_US_wordlist.combined.gz1dictionary=main:en_us,locale=en_US,description=English (US),date ...
Den_GB_wordlist.combined.gz1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...