Home
last modified time | relevance | path

Searched refs:encryptedBytes (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DEncryptedChunk.java41 public static EncryptedChunk create(ChunkHash key, byte[] nonce, byte[] encryptedBytes) { in create() argument
44 return new EncryptedChunk(key, nonce, encryptedBytes); in create()
51 private EncryptedChunk(ChunkHash key, byte[] nonce, byte[] encryptedBytes) { in EncryptedChunk() argument
54 mEncryptedBytes = encryptedBytes; in EncryptedChunk()
68 public byte[] encryptedBytes() { in encryptedBytes() method in EncryptedChunk
DChunkEncryptor.java74 byte[] encryptedBytes; in encrypt()
76 encryptedBytes = cipher.doFinal(plaintext); in encrypt()
82 return EncryptedChunk.create(/*key=*/ plaintextHash, nonce, encryptedBytes); in encrypt()
DLengthlessEncryptedChunkEncoder.java38 writer.writeBytes(chunk.encryptedBytes()); in writeChunkToWriter()
43 return chunk.nonce().length + chunk.encryptedBytes().length; in getEncodedLengthOfChunk()
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java65 byte[] encryptedBytes = cipher.doFinal(clearBytes); in encryptBundle()
67 byte[] mac = createMac(encryptedBytes, iv); in encryptBundle()
70 encryptedBundle.putByteArray(KEY_CIPHER, encryptedBytes); in encryptBundle()
81 byte[] encryptedBytes = bundle.getByteArray(KEY_CIPHER); in decryptBundle()
83 if (!verifyMac(encryptedBytes, iv, mac)) { in decryptBundle()
91 byte[] decryptedBytes = cipher.doFinal(encryptedBytes); in decryptBundle()
/frameworks/av/media/libstagefright/mpeg2ts/
DHlsSampleDecryptor.cpp181 size_t encryptedBytes = (remainingBytes / AES_BLOCK_SIZE) * AES_BLOCK_SIZE; in processAAC() local
187 status_t ret = decryptBlock(encrypted, encryptedBytes, AESInitVec); in processAAC()
193 offset += encryptedBytes; in processAAC()
194 remainingBytes -= encryptedBytes; in processAAC()
235 size_t encryptedBytes = (remainingBytes / AES_BLOCK_SIZE) * AES_BLOCK_SIZE; in processAC3() local
243 status_t ret = decryptBlock(encrypted, encryptedBytes, AESInitVec); in processAC3()
249 offset += encryptedBytes; in processAC3()
250 remainingBytes -= encryptedBytes; in processAC3()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DChunkEncryptorTest.java134 assertThat(chunk1.encryptedBytes()).isNotEqualTo(chunk2.encryptedBytes()); in encrypt_whenInvokedAgain_generatesNewCiphertext()
154 byte[] decrypted = cipher.doFinal(chunk.encryptedBytes()); in encrypt_decryptedResultCorrespondsToPlaintext()
DEncryptedChunkTest.java68 byte[] returnedBytes = encryptedChunk.encryptedBytes(); in testEncryptedBytes_forNewlyCreatedObject_returnsCorrectValue()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTelephonyUtil.java186 byte[] encryptedBytes = cipher.doFinal(data); in encryptDataUsingPublicKey()
188 return Base64.encodeToString(encryptedBytes, 0, encryptedBytes.length, encodingFlag); in encryptDataUsingPublicKey()