Searched refs:mDataKey (Results 1 – 3 of 3) sorted by relevance
/development/samples/Vault/tests/src/com/example/android/vault/ |
D | EncryptedDocumentTest.java | 48 private SecretKey mDataKey = new SecretKeySpec(new byte[] { field in EncryptedDocumentTest 76 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testEmptyFile() 105 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testMetadataAndContents() 159 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testNormalMetadataOnly() 179 final EncryptedDocument doc1 = new EncryptedDocument(1, mFile, mDataKey, mMacKey); in testCopiedFile() 180 final EncryptedDocument doc4 = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testCopiedFile() 196 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testBitTwiddle() 216 final EncryptedDocument doc = new EncryptedDocument(4, mFile, mDataKey, mMacKey); in testErrorAbortsWrite()
|
/development/samples/Vault/src/com/example/android/vault/ |
D | EncryptedDocument.java | 89 private final SecretKey mDataKey; field in EncryptedDocument 115 mDataKey = dataKey; in EncryptedDocument() 278 mCipher.init(Cipher.DECRYPT_MODE, mDataKey, ivSpec); in readSection() 320 mCipher.init(Cipher.ENCRYPT_MODE, mDataKey, ivSpec); in writeSection()
|
D | VaultProvider.java | 128 private SecretKey mDataKey; field in VaultProvider 199 mDataKey = new SecretKeySpec(rawDataKey, "AES"); in loadOrGenerateKeys() 224 return new EncryptedDocument(docId, file, mDataKey, mMacKey); in getDocument()
|