Home
last modified time | relevance | path

Searched refs:encryptionKey (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowProviderServerBasedImpl.java174 private byte[] wrapEscrowKey(byte[] escrowKeyBytes, SecretKey encryptionKey) throws in wrapEscrowKey() argument
195 return AesEncryptionUtil.encrypt(encryptionKey, serverEncryptedBlob); in wrapEscrowKey()
199 public boolean storeRebootEscrowKey(RebootEscrowKey escrowKey, SecretKey encryptionKey) { in storeRebootEscrowKey() argument
202 byte[] wrappedBlob = wrapEscrowKey(escrowKey.getKeyBytes(), encryptionKey); in storeRebootEscrowKey()
DRebootEscrowProviderInterface.java70 boolean storeRebootEscrowKey(RebootEscrowKey escrowKey, SecretKey encryptionKey); in storeRebootEscrowKey() argument
DRebootEscrowProviderHalImpl.java130 public boolean storeRebootEscrowKey(RebootEscrowKey escrowKey, SecretKey encryptionKey) { in storeRebootEscrowKey() argument
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformAdbRestoreTask.java255 byte[] encryptionKey = Arrays.copyOfRange(mkBlob, in attemptEncryptionKeyDecryption()
264 byte[] calculatedCk = PasswordUtils.makeKeyChecksum(algorithm, encryptionKey, ckSalt, in attemptEncryptionKeyDecryption()
269 new SecretKeySpec(encryptionKey, "AES"), in attemptEncryptionKeyDecryption()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformAdbBackupTask.java158 byte[] encryptionKey = new byte[256 / 8]; in emitAesBackupHeader()
159 mUserBackupManagerService.getRng().nextBytes(encryptionKey); in emitAesBackupHeader()
165 SecretKeySpec encryptionKeySpec = new SecretKeySpec(encryptionKey, "AES"); in emitAesBackupHeader()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java754 PlatformEncryptionKey encryptionKey; in generateKeyWithMetadata() local
756 encryptionKey = mPlatformKeyManager.getEncryptKey(userId); in generateKeyWithMetadata()
767 byte[] secretKey = mRecoverableKeyGenerator.generateAndStoreKey(encryptionKey, userId, in generateKeyWithMetadata()
823 PlatformEncryptionKey encryptionKey; in importKeyWithMetadata() local
825 encryptionKey = mPlatformKeyManager.getEncryptKey(userId); in importKeyWithMetadata()
837 mRecoverableKeyGenerator.importKey(encryptionKey, userId, uid, alias, keyBytes, in importKeyWithMetadata()
/frameworks/base/libs/securebox/src/com/android/security/
DSecureBox.java207 SecretKey encryptionKey = hkdfDeriveKey(keyingMaterial, HKDF_SALT, hkdfInfo); in encrypt() local
208 byte[] ciphertext = aesGcmEncrypt(encryptionKey, randNonce, payload, header); in encrypt()