Java Code Examples for android.security.keystore.KeyProperties#ENCRYPTION_PADDING_PKCS7
The following examples show how to use
android.security.keystore.KeyProperties#ENCRYPTION_PADDING_PKCS7 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UserAuthenticationLocker.java From cashuwallet with MIT License | 5 votes |
private Cipher getCipher() { String name = KeyProperties.KEY_ALGORITHM_AES + "/" + KeyProperties.BLOCK_MODE_CBC + "/" + KeyProperties.ENCRYPTION_PADDING_PKCS7; try { return Cipher.getInstance(name); } catch (NoSuchAlgorithmException|NoSuchPaddingException e) { return null; } }
Example 2
Source File: PinActivity.java From green_android with GNU General Public License v3.0 | 5 votes |
@TargetApi(Build.VERSION_CODES.M) private Cipher getAESCipher() throws NoSuchAlgorithmException, NoSuchPaddingException { final String name = KeyProperties.KEY_ALGORITHM_AES + '/' + KeyProperties.BLOCK_MODE_CBC + '/' + KeyProperties.ENCRYPTION_PADDING_PKCS7; return Cipher.getInstance(name); }
Example 3
Source File: PinActivity.java From GreenBits with GNU General Public License v3.0 | 5 votes |
@TargetApi(Build.VERSION_CODES.M) private Cipher getAESCipher() throws NoSuchAlgorithmException, NoSuchPaddingException { final String name = KeyProperties.KEY_ALGORITHM_AES + '/' + KeyProperties.BLOCK_MODE_CBC + '/' + KeyProperties.ENCRYPTION_PADDING_PKCS7; return Cipher.getInstance(name); }