Searched refs:cipher (Results 1 – 3 of 3) sorted by relevance
161 private boolean initCipher(Cipher cipher, String keyName) { in initCipher() argument165 cipher.init(Cipher.ENCRYPT_MODE, key); in initCipher()208 private void tryEncrypt(Cipher cipher) { in tryEncrypt() argument210 byte[] encrypted = cipher.doFinal(SECRET_MESSAGE.getBytes()); in tryEncrypt()290 PurchaseButtonClickListener(Cipher cipher, String keyName) { in PurchaseButtonClickListener() argument291 mCipher = cipher; in PurchaseButtonClickListener()
103 Cipher cipher = Cipher.getInstance( in tryEncrypt() local109 cipher.init(Cipher.ENCRYPT_MODE, secretKey); in tryEncrypt()110 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncrypt()
160 Cipher cipher = Cipher.getInstance("AES/CBC/PKCS7PADDING"); in encryptOrDecrypt() local161 cipher.init(isEncrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, key, in encryptOrDecrypt()163 return cipher.doFinal(data); in encryptOrDecrypt()