Home
last modified time | relevance | path

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

/development/samples/Vault/src/com/example/android/vault/
DSecretKeyWrapper.java46 private final Cipher mCipher; field in SecretKeyWrapper
55 mCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); in SecretKeyWrapper()
99 mCipher.init(Cipher.WRAP_MODE, mPair.getPublic()); in wrap()
100 return mCipher.wrap(key); in wrap()
111 mCipher.init(Cipher.UNWRAP_MODE, mPair.getPrivate()); in unwrap()
112 return (SecretKey) mCipher.unwrap(blob, "AES", Cipher.SECRET_KEY); in unwrap()
DEncryptedDocument.java84 private final Cipher mCipher; field in EncryptedDocument
103 mCipher = Cipher.getInstance("AES/CTR/NoPadding"); in EncryptedDocument()
278 mCipher.init(Cipher.DECRYPT_MODE, mDataKey, ivSpec); in readSection()
287 outbuf = mCipher.update(inbuf, 0, n); in readSection()
296 outbuf = mCipher.doFinal(); in readSection()
320 mCipher.init(Cipher.ENCRYPT_MODE, mDataKey, ivSpec); in writeSection()
329 outbuf = mCipher.update(inbuf, 0, n); in writeSection()
336 outbuf = mCipher.doFinal(); in writeSection()
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DMainActivity.java287 Cipher mCipher; field in MainActivity.PurchaseButtonClickListener
291 mCipher = cipher; in PurchaseButtonClickListener()
302 if (initCipher(mCipher, mKeyName)) { in onClick()
308 fragment.setCryptoObject(new FingerprintManager.CryptoObject(mCipher)); in onClick()
327 fragment.setCryptoObject(new FingerprintManager.CryptoObject(mCipher)); in onClick()