Searched refs:mMacKey (Results 1 – 3 of 3) sorted by relevance
/development/samples/Vault/tests/src/com/example/android/vault/ |
D | EncryptedDocumentTest.java | 52 private SecretKey mMacKey = 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 | 90 private final SecretKey mMacKey; field in EncryptedDocument 116 mMacKey = macKey; in EncryptedDocument() 279 mMac.init(mMacKey); in readSection() 321 mMac.init(mMacKey); in writeSection()
|
D | VaultProvider.java | 129 private SecretKey mMacKey; field in VaultProvider 200 mMacKey = new SecretKeySpec(rawMacKey, "HmacSHA256"); in loadOrGenerateKeys() 224 return new EncryptedDocument(docId, file, mDataKey, mMacKey); in getDocument()
|