Home
last modified time | relevance | path

Searched refs:encryptedChunk (Results 1 – 9 of 9) sorted by relevance

/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
H A DEncryptedChunkTest.java65 EncryptedChunk encryptedChunk = in testEncryptedBytes_forNewlyCreatedObject_returnsCorrectValue() local
68 byte[] returnedBytes = encryptedChunk.encryptedBytes(); in testEncryptedBytes_forNewlyCreatedObject_returnsCorrectValue()
79 EncryptedChunk encryptedChunk = in testKey_forNewlyCreatedObject_returnsCorrectValue() local
82 ChunkHash returnedKey = encryptedChunk.key(); in testKey_forNewlyCreatedObject_returnsCorrectValue()
90 EncryptedChunk encryptedChunk = in testNonce_forNewlycreatedObject_returnCorrectValue() local
93 byte[] returnedNonce = encryptedChunk.nonce(); in testNonce_forNewlycreatedObject_returnCorrectValue()
H A DChunkEncryptorTest.java139 EncryptedChunk encryptedChunk = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_generates12ByteNonce() local
141 byte[] nonce = encryptedChunk.nonce(); in encrypt_generates12ByteNonce()
H A DBackupFileBuilderTest.java609 private ChunksMetadataProto.Chunk createChunkFor(EncryptedChunk encryptedChunk) { in createChunkFor() argument
610 byte[] chunkHash = encryptedChunk.key().getHash(); in createChunkFor()
612 return newChunk(hashCopy, mEncryptedChunkEncoder.getEncodedLengthOfChunk(encryptedChunk)); in createChunkFor()
/aosp12/system/security/identity/
H A DWritableCredential.cpp240 vector<uint8_t> encryptedChunk; in personalize() local
241 status = halBinder_->addEntryValue(chunk, &encryptedChunk); in personalize()
245 encryptedChunks.push_back(encryptedChunk); in personalize()
H A DCredentialData.cpp104 for (const vector<uint8_t>& encryptedChunk : entryData.encryptedChunks) { in saveToDisk() local
105 encryptedChunkArray.add(encryptedChunk); in saveToDisk()
H A DCredential.cpp483 for (const auto& encryptedChunk : eData.value().encryptedChunks) { in getEntries() local
485 status = halBinder_->retrieveEntryValue(encryptedChunk, &chunk); in getEntries()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
H A DKvBackupEncrypterTest.java278 private KeyValuePair decryptChunk(EncryptedChunk encryptedChunk) throws Exception { in decryptChunk() argument
283 new GCMParameterSpec(GCM_TAG_LENGTH_BYTES * Byte.SIZE, encryptedChunk.nonce())); in decryptChunk()
284 byte[] decryptedBytes = cipher.doFinal(encryptedChunk.encryptedBytes()); in decryptChunk()
H A DEncryptedBackupTaskTest.java349 ChunkHash chunkHash, EncryptedChunk encryptedChunk) { in createChunkProtoFor() argument
351 chunkHash, mEncryptedChunkEncoder.getEncodedLengthOfChunk(encryptedChunk)); in createChunkProtoFor()
/aosp12/hardware/interfaces/identity/aidl/vts/
H A DEndToEndTests.cpp432 for (const auto& encryptedChunk : encryptedChunks) { in TEST_P() local
434 ASSERT_TRUE(credential->retrieveEntryValue(encryptedChunk, &chunk).isOk()); in TEST_P()