Home
last modified time | relevance | path

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

/development/samples/Vault/src/com/example/android/vault/
DEncryptedDocument.java85 private final Mac mMac; field in EncryptedDocument
104 mMac = Mac.getInstance("HmacSHA256"); in EncryptedDocument()
279 mMac.init(mMacKey); in readSection()
286 mMac.update(inbuf, 0, n); in readSection()
294 section.assertMac(mMac.doFinal()); in readSection()
321 mMac.init(mMacKey); in writeSection()
331 mMac.update(outbuf); in writeSection()
338 mMac.update(outbuf); in writeSection()
342 section.setMac(mMac.doFinal()); in writeSection()