Home
last modified time | relevance | path

Searched refs:secretKey (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/
DCipherConverter.java114 SecretKey secretKey; in encrypt() local
116 secretKey = (SecretKey) ks.getKey(KEY_STORE_ALIAS, null); in encrypt()
127 secretKey = kpg.generateKey(); in encrypt()
131 cipher.init(Cipher.ENCRYPT_MODE, secretKey); in encrypt()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiConfigStoreEncryptionUtil.java147 SecretKey secretKey = null; in getOrCreateSecretKey() local
154 secretKey = secretKeyEntry.getSecretKey(); in getOrCreateSecretKey()
173 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()
190 return secretKey; in getOrCreateSecretKey()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DPacketUtils.java592 final byte[] secretKey = Arrays.copyOfRange(key, 0, key.length - saltLen); in getCipherText()
593 final byte[] salt = Arrays.copyOfRange(key, secretKey.length, key.length); in getCipherText()
594 secretKeySpec = new SecretKeySpec(secretKey, algoName); in getCipherText()
635 final byte[] secretKey = Arrays.copyOfRange(key, 0, key.length - saltLen); in getCipherText()
636 final byte[] salt = Arrays.copyOfRange(key, secretKey.length, key.length); in getCipherText()
638 final SecretKeySpec secretKeySpec = new SecretKeySpec(secretKey, algoName); in getCipherText()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DIkeMac.java69 SecretKeySpec secretKey = new SecretKeySpec(keyBytes, getAlgorithmName()); in signBytes() local
71 mMac.init(secretKey); in signBytes()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java819 SecretKey secretKey = null; in getOrCreateSecretKey() local
827 secretKey = secretKeyEntry.getSecretKey(); in getOrCreateSecretKey()
844 secretKey = keyGenerator.generateKey(); in getOrCreateSecretKey()
860 return secretKey; in getOrCreateSecretKey()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2MethodStateMachine.java582 SecretKey secretKey = in desEncrypt() local
586 des.init(Cipher.ENCRYPT_MODE, secretKey); in desEncrypt()