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.java69 private Cipher mCipher; field in MainActivity
89 mCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in onCreate()
137 fragment.setCryptoObject(new FingerprintManager.CryptoObject(mCipher)); in onCreate()
156 fragment.setCryptoObject(new FingerprintManager.CryptoObject(mCipher)); in onCreate()
177 mCipher.init(Cipher.ENCRYPT_MODE, key); in initCipher()
214 byte[] encrypted = mCipher.doFinal(SECRET_MESSAGE.getBytes()); in tryEncrypt()