| /cts/tests/tests/keystore/src/android/keystore/cts/ |
| D | RSACipherTest.java | 93 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus() local 124 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus() local 151 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() local 181 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus() local 214 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus() local 247 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", EXPECTED_PROVIDER_NAME); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus() local 275 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", EXPECTED_PROVIDER_NAME); in testNoPaddingWithZeroMessage() local 312 Cipher cipher = Cipher.getInstance("RSA/ECB/OAEPWithSHA-256AndMGF1Padding"); in testRsaOaepDecryptWithWrongMGF1DigestFails() local
|
| D | CipherTest.java | 347 Cipher cipher = Cipher.getInstance(algorithm, provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() local 386 Cipher cipher = Cipher.getInstance(algorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting() local 416 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecrypts() local 468 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEncryptsAndDecryptsInterrupted() local 521 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEncryptsAndDecryptsUsingCipherStreams() local 572 private boolean isDecryptValid(byte[] expectedPlaintext, byte[] ciphertext, Cipher cipher, in isDecryptValid() 653 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired() local 728 Cipher cipher = Cipher.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testUnlockedDeviceRequiredKeysAreNotInvalidatedByLockRemoval() local 752 Cipher cipher = Cipher.getInstance(algorithm, provider); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore() local 800 Cipher cipher; in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() local [all …]
|
| D | AESCipherNistCavpKatTest.java | 322 Cipher cipher = Cipher.getInstance("AES/" + mode + "/NoPadding"); in runKatTest() local
|
| D | ImportWrappedKeyTest.java | 505 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in wrapKey() local
|
| D | KeyGeneratorTest.java | 823 Cipher cipher = Cipher.getInstance(algoTransform, in assertUniqueAesEncryptionForNKeys() local
|
| D | AndroidKeyStoreTest.java | 1877 Cipher cipher = Cipher.getInstance(algorithm); in testKeyStore_SetKeyEntry_ReplacedWithSameGeneratedSecretKey() local 2043 String cipher = privateKey.getAlgorithm() + "/NONE/NOPADDING"; in testKeyStore_Encrypting_RSA_NONE_NOPADDING() local 2352 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in testKeyStore_LargeNumberOfKeysSupported_AES() local
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/biometrics/ |
| D | Utils.java | 83 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in initCipher() local 95 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in initAeadCipher() local 145 static byte[] doEncrypt(Cipher cipher, byte[] data) throws Exception { in doEncrypt()
|
| D | CredentialCryptoTests.java | 126 final Cipher cipher = Utils.initCipher(keyName); in testTimedKey() local
|
| /cts/tests/tests/identity/src/android/security/identity/cts/ |
| D | EphemeralKeyTest.java | 189 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in encryptMessageToHolder() local 214 final Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in decryptMessageFromHolder() local
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
| D | AuthenticationBoundKeyTestActivity.java | 265 Cipher cipher = Cipher.getInstance(CIPHER_TRANSFORMATION); in tryEncryptWithLockscreenKey() local 286 Cipher cipher = Cipher.getInstance(CIPHER_TRANSFORMATION); in initFingerprintEncryptionCipher() local 302 private boolean tryEncryptWithFingerprintKey(Cipher cipher) { in tryEncryptWithFingerprintKey()
|
| /cts/hostsidetests/appsecurity/test-apps/KeyStoreManagerTest/GranteeApp/src/android/appsecurity/cts/keystoremanagertest/grantee/ |
| D | KeyStoreManagerGrantTestService.java | 224 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in decryptTextWithSecretKey() local 236 Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); in decryptTextWithPrivateKey() local
|
| /cts/hostsidetests/appsecurity/test-apps/KeyStoreManagerTest/GranterApp/src/android/appsecurity/cts/keystoremanagertest/granter/ |
| D | KeyStoreManagerGrantTest.java | 285 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in encryptTextWithSecretKey() local 297 Cipher cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); in encryptTextWithPublicKey() local
|
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
| D | LskfBoundKeysTest.java | 147 Cipher cipher = Cipher.getInstance( in tryEncrypt() local
|
| D | UnlockedDeviceRequiredKeysTest.java | 205 Cipher cipher = Cipher.getInstance( in tryEncrypt() local
|
| /cts/tests/framework/base/biometrics/src/android/server/biometrics/util/ |
| D | Utils.java | 269 final Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in initializeCryptoObject() local
|