Searched refs:cipher (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | RSACipherTest.java | 59 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local 60 cipher.init(Cipher.ENCRYPT_MODE, publicKey); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 61 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 63 cipher.init(Cipher.DECRYPT_MODE, privateKey); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 64 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() 89 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() local 90 cipher.init(Cipher.ENCRYPT_MODE, publicKey); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 91 byte[] ciphertext = cipher.doFinal(plaintext); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 92 cipher.init(Cipher.DECRYPT_MODE, privateKey); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() 93 MoreAsserts.assertEquals(plaintext, cipher.doFinal(ciphertext)); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() [all …]
|
D | CipherTest.java | 263 Cipher cipher = Cipher.getInstance(algorithm, provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() local 264 cipher.init(Cipher.ENCRYPT_MODE, key.getKeystoreBackedEncryptionKey()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 265 AlgorithmParameters params = cipher.getParameters(); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 268 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 270 cipher.init(Cipher.DECRYPT_MODE, decryptionKey, params); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 271 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 274 cipher = Cipher.getInstance(algorithm); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 276 cipher.init(Cipher.UNWRAP_MODE, decryptionKey, params); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 278 cipher.init(Cipher.UNWRAP_MODE, decryptionKey); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() 280 assertSame(provider, cipher.getProvider()); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() [all …]
|
D | AESCipherNistCavpKatTest.java | 284 Cipher cipher = Cipher.getInstance("AES/" + mode + "/NoPadding"); in runKatTest() local 288 cipher.init(opmode, key, new IvParameterSpec(testVector.iv)); in runKatTest() 290 cipher.init(opmode, key); in runKatTest() 294 byte[] actualOutput = cipher.doFinal(input); in runKatTest()
|
D | AndroidKeyStoreTest.java | 1942 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local 1943 Cipher encrypt = Cipher.getInstance(cipher); in testKeyStore_Encrypting_RSA_NONE_NOPADDING() 2292 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in testKeyStore_LargeNumberOfKeysSupported_AES() local 2293 cipher.init(Cipher.ENCRYPT_MODE, keystoreKey1); in testKeyStore_LargeNumberOfKeysSupported_AES() 2294 byte[] ciphertext = cipher.doFinal(plaintext); in testKeyStore_LargeNumberOfKeysSupported_AES() 2295 AlgorithmParameters cipherParams = cipher.getParameters(); in testKeyStore_LargeNumberOfKeysSupported_AES() 2296 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES() 2297 cipher.init(Cipher.DECRYPT_MODE, key1, cipherParams); in testKeyStore_LargeNumberOfKeysSupported_AES() 2298 MoreAsserts.assertEquals(plaintext, cipher.doFinal(ciphertext)); in testKeyStore_LargeNumberOfKeysSupported_AES() 2300 cipher = Cipher.getInstance(cipher.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_AES() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | AuthenticationBoundKeyTestActivity.java | 249 Cipher cipher = Cipher.getInstance(CIPHER_TRANSFORMATION); in tryEncryptWithLockscreenKey() local 250 cipher.init(Cipher.ENCRYPT_MODE, loadSecretKey(LOCKSCREEN)); in tryEncryptWithLockscreenKey() 251 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncryptWithLockscreenKey() 270 Cipher cipher = Cipher.getInstance(CIPHER_TRANSFORMATION); in initFingerprintEncryptionCipher() local 271 cipher.init(Cipher.ENCRYPT_MODE, loadSecretKey(FINGERPRINT)); in initFingerprintEncryptionCipher() 272 return cipher; in initFingerprintEncryptionCipher() 286 private boolean tryEncryptWithFingerprintKey(Cipher cipher) { in tryEncryptWithFingerprintKey() argument 289 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncryptWithFingerprintKey()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | ScreenLockBoundKeysTest.java | 147 Cipher cipher = Cipher.getInstance( in tryEncrypt() local 153 cipher.init(Cipher.ENCRYPT_MODE, secretKey); in tryEncrypt() 154 cipher.doFinal(SECRET_BYTE_ARRAY); in tryEncrypt()
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 59574 private final javax.crypto.Cipher cipher 59620 private final javax.crypto.Cipher cipher 84866 private javax.crypto.Cipher cipher 95785 private final org.bouncycastle.crypto.AsymmetricBlockCipher cipher 95826 protected org.bouncycastle.crypto.BlockCipher cipher 96161 private org.bouncycastle.crypto.BlockCipher cipher 97651 org.bouncycastle.crypto.BufferedBlockCipher cipher 98284 private org.bouncycastle.crypto.BlockCipher cipher 98330 private org.bouncycastle.crypto.BlockCipher cipher 98387 private org.bouncycastle.crypto.macs.MacCFBBlockCipher cipher [all …]
|