Searched refs:encryptedChunk (Results 1 – 9 of 9) sorted by relevance
65 EncryptedChunk encryptedChunk = in testEncryptedBytes_forNewlyCreatedObject_returnsCorrectValue() local68 byte[] returnedBytes = encryptedChunk.encryptedBytes(); in testEncryptedBytes_forNewlyCreatedObject_returnsCorrectValue()79 EncryptedChunk encryptedChunk = in testKey_forNewlyCreatedObject_returnsCorrectValue() local82 ChunkHash returnedKey = encryptedChunk.key(); in testKey_forNewlyCreatedObject_returnsCorrectValue()90 EncryptedChunk encryptedChunk = in testNonce_forNewlycreatedObject_returnCorrectValue() local93 byte[] returnedNonce = encryptedChunk.nonce(); in testNonce_forNewlycreatedObject_returnCorrectValue()
139 EncryptedChunk encryptedChunk = mChunkEncryptor.encrypt(mPlaintextHash, PLAINTEXT_BYTES); in encrypt_generates12ByteNonce() local141 byte[] nonce = encryptedChunk.nonce(); in encrypt_generates12ByteNonce()
609 private ChunksMetadataProto.Chunk createChunkFor(EncryptedChunk encryptedChunk) { in createChunkFor() argument610 byte[] chunkHash = encryptedChunk.key().getHash(); in createChunkFor()612 return newChunk(hashCopy, mEncryptedChunkEncoder.getEncodedLengthOfChunk(encryptedChunk)); in createChunkFor()
240 vector<uint8_t> encryptedChunk; in personalize() local241 status = halBinder_->addEntryValue(chunk, &encryptedChunk); in personalize()245 encryptedChunks.push_back(encryptedChunk); in personalize()
104 for (const vector<uint8_t>& encryptedChunk : entryData.encryptedChunks) { in saveToDisk() local105 encryptedChunkArray.add(encryptedChunk); in saveToDisk()
483 for (const auto& encryptedChunk : eData.value().encryptedChunks) { in getEntries() local485 status = halBinder_->retrieveEntryValue(encryptedChunk, &chunk); in getEntries()
278 private KeyValuePair decryptChunk(EncryptedChunk encryptedChunk) throws Exception { in decryptChunk() argument283 new GCMParameterSpec(GCM_TAG_LENGTH_BYTES * Byte.SIZE, encryptedChunk.nonce())); in decryptChunk()284 byte[] decryptedBytes = cipher.doFinal(encryptedChunk.encryptedBytes()); in decryptChunk()
349 ChunkHash chunkHash, EncryptedChunk encryptedChunk) { in createChunkProtoFor() argument351 chunkHash, mEncryptedChunkEncoder.getEncodedLengthOfChunk(encryptedChunk)); in createChunkProtoFor()
432 for (const auto& encryptedChunk : encryptedChunks) { in TEST_P() local434 ASSERT_TRUE(credential->retrieveEntryValue(encryptedChunk, &chunk).isOk()); in TEST_P()