/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 | 394 Cipher cipher = Cipher.getInstance(algorithm, provider); in testAndroidKeyStoreKeysHandledByAndroidKeyStoreProviderWhenDecrypting() local 433 Cipher cipher = Cipher.getInstance(algorithm); in testAndroidKeyStorePublicKeysAcceptedByHighestPriorityProviderWhenEncrypting() local 463 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecrypts() local 515 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEncryptsAndDecryptsInterrupted() local 568 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEncryptsAndDecryptsUsingCipherStreams() local 619 private boolean isDecryptValid(byte[] expectedPlaintext, byte[] ciphertext, Cipher cipher, in isDecryptValid() 704 Cipher cipher = Cipher.getInstance(algorithm, provider); in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired() local 810 Cipher cipher = Cipher.getInstance(algorithm, EXPECTED_PROVIDER_NAME); in testUnlockedDeviceRequiredKeysAreNotInvalidatedByLockRemoval() local 834 Cipher cipher = Cipher.getInstance(algorithm, provider); in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore() local 882 Cipher cipher; in testCiphertextGeneratedByHighestPriorityProviderDecryptsByAndroidKeyStore() local [all …]
|
D | AESCipherNistCavpKatTest.java | 322 Cipher cipher = Cipher.getInstance("AES/" + mode + "/NoPadding"); in runKatTest() local
|
D | KeyGeneratorTest.java | 843 Cipher cipher = Cipher.getInstance(algoTransform, in assertUniqueAesEncryptionForNKeys() local
|
D | ImportWrappedKeyTest.java | 502 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in wrapKey() 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/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 | 270 final Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in initializeCryptoObject() local
|