Home
last modified time | relevance | path

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

/system/security/keystore/
Dkeystore.cpp623 size_t encryptedLength = digestedLength + MD5_DIGEST_LENGTH; in writeBlob() local
625 memmove(&mBlob.encrypted[encryptedLength], &mBlob.value[mBlob.length], mBlob.info); in writeBlob()
636 AES_cbc_encrypt(mBlob.encrypted, mBlob.encrypted, encryptedLength, in writeBlob()
641 size_t fileLength = encryptedLength + headerLength + mBlob.info; in writeBlob()
693 ssize_t encryptedLength = fileLength - (headerLength + mBlob.info); in readBlob() local
694 if (encryptedLength < 0) { in readBlob()
700 if (encryptedLength % AES_BLOCK_SIZE != 0) { in readBlob()
704 AES_cbc_encrypt(mBlob.encrypted, mBlob.encrypted, encryptedLength, aes_key, in readBlob()
706 digestedLength = encryptedLength - MD5_DIGEST_LENGTH; in readBlob()
713 digestedLength = encryptedLength; in readBlob()